Discussion Locked

Page break in printing

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I use RichText box to print reports.So how can i send a command to break current page and start printing in new page?

3 replies

by -keyteck

Seems like you're using VB...

Use the CommonDialog Control to set the printer.
CommonDialog1.ShowPrinter

Use this to print the contents of the RichTextbox.
RichTextbox.SelPrint Printer.hDC

Use this command to start a new page.
Printer.NewPage

When Done use.
Printer.EndDoc

-Walter

This discussion is closed to new replies.