On Dec 15, 2006, at 8:30 AM, [EMAIL PROTECTED] wrote:
Does anyone have an idea of how I can print styled text and three pictures?
You would do this in the same way that you would draw to the graphics object of a canvas, but using the graphics object representing the printer, as returned by the functions OpenPrinter() or OpenPrinterDialog(). Take a look at the examples under OpenPrinter Function in the Language Reference and also under Graphics, which show printing text using DrawString. An object of the Graphics class has the properties needed for styling, for example bold, italic, forecolor, underline... Notice that in using the DrawString method, ie., g.DrawString(myText, X, Y), you are positioning the items of text onto a page using X, Y coordinates.
Similarly with your three pictures. You would print them where you wish using the DrawPicture method, which gives you the ability to locate the picture by X, Y coordinates and also the ability to scale (and crop).
This approach gives you considerable control over the composition of your printed page, and you can design your page on a Canvas, then use the same code to print.
As an alternative to drawing your styled text using DrawString, you can create the text in a styled, multiline editfield and use the StyledTextPrinter method to print the text as a block, then DrawPicture for the pictures.
Best, Jack _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
