Re: wxPrint
- Posted by Matt Lewis <matthewwalkerlewis at gm?il?com> Oct 03, 2007
- 640 views
Brian Clark wrote: > > Can someone post a simple (non-win32lib) example of printing to a printer? > Also, I saw wxHtmlEasyPrinting in the wxWidgets doc. How can I get this > wrapped > for use in wxEuphoria? I'll add wxHtmlEasyPrinting to the top of the TODO list. It should make the next release--looks like a fairly simple class. Printing is broken in the current version of wxEuphoria. In the next release (or, if you build from the head of the svn repository) you could do the following (trivial, hello world print example):
include wxeud.e function my_print( atom printout, integer page_num, atom dc ) wx_puts( {printout, 10, 10, dc }, "Hello, World" ) return 1 end function constant printout = create( wxPrintout, {"Hello World", routine_id( "my_print" )}), printer = create( wxPrinter, get_print_data( create( wxPrintDialog, {} ) ) ) set_page_info( printout, 1, 1 ) ? start_print( printer, 0, printout, 1 )
Matt