Petzold's books Program Windows with C# (VB.NET) have printing examples
showing the basics. You will se a lot of discussion on printing in the
archives of microsoft.public.dotnet.framework.drawing.
Printing is done via a PrintDocument subclass or by just adding an
OnPrintPage handler to the base class.
Basically EndDoc is when you return from the last OnPrintPage call with
HasMorePages = false.
Empty line is done by simply advancing the y coordinate by the linespacing
value.
End Page is when you return from OnPrintPage and NewPage is when
HasMorePages = true at this time.
This is much like printing in the older versions of C++ using a hDC used to
be. You just go to locations on the page and draw things there.
Ron Allen
"G.Esmeijer" <ge****@nomail.nl> wrote in message
news:41**********************@dreader2.news.tiscal i.nl...
Friends,
Coming from VB6 i have problems finding the right methods for printing.
ending a line of text to the printer seems to ask a lot of code in c#
while it was relatiely easy in vb.
How do I in c# :
- Enddoc
- empty line
- endpage
- newPage
Are there any good examples. Maybe a collection of functions, may a class
that has all the goodies in it to do the normal straight forwad printing
stuff.
Hope tat someone can help me
Thanks in advance.
gerrit Esmeijer