This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, October 30, 2008 8:48:48 AM(UTC)
Groups: Registered
Posts: 2
I am trying to print programmatically using the COM object in my .Net application. I am following the example provided in the help file ...
hDC = ePrint.CreateSaveDC(...)
ePrint.StartDoc hDC, "Test"
RichTextBox1.SelPrint hDC
ePrint.EndDoc hDC
ePrint.DeleteDC hDC
Since there is no RichTextBox control in .Net, how will I print the content of the file... When I remove the line RichTextBox1.SelPrint hDC... an empty page gets printed???
Please suggest
Thanks
Dabi
#2
Posted
:
Friday, October 31, 2008 11:25:30 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
One way to address this would be to create a graphics object of your device context, and then draw on it. That would give something for the printer to work with instead of a blank page.
The DotNet actually does have a RichTextBox control. You can find documentation for it here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.aspx
There also appears to be a work-around available for printing from the DotNet RichTextBox here:
http://msdn.microsoft.com/en-us/library/ms996492.aspx
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.