Tuesday, 27 August 2013

RichTextBoxPrintCtrl Printing Issue

RichTextBoxPrintCtrl Printing Issue

This is my first posting and my programmer status is keen amateur.
I have created a c# Form RichTextBoxPrintCtrl editor with print capability
via a printDialog and printDocument control. Before I print I want to
determine the page size (based on the number of characters) per print
page. The code which calls the RichTextBoxPrintCtrl dll to get this info
is:
checkPrint = richTextBoxPrintCtrl1.Print(checkPrint, textEnd, e); with e
being the printDocument PrintPageEventArgs.
The only way I can see to do this appears to be to actually print the
document.
Is there a way to capture the printDocument PrintPageEventArgs and use
them in the above code without actually printing?
The reason I want to do this is to have the ability to use the page from
and page to facility within the printDialog. Any help would be
appreciated.

No comments:

Post a Comment