Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, October 30, 2008 8:48:48 AM(UTC)

Dabi  
Dabi

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

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, October 31, 2008 11:25:30 AM(UTC)

Walter  
Walter

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.
LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.111 seconds.