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, July 25, 2013 6:46:17 AM(UTC)
tbecker82

Groups: Registered
Posts: 37


Hello

I am currently using AnnPrinter to print out my images and annotations and this is working great.
What I want to do is in addition to printing out the image is print some text at the bottom of the page that is supplied by the user.
How can I add this in?  The only idea I had would be to override the AnnPrinter.Print() function but I since I can't see the internal details of this function
I am not sure how to go about doing this.

I am new to windows printing so please forgive my ignorance.

Thanks

Tony
 

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 : Sunday, July 28, 2013 3:51:11 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


Tony,

Do you mean that the user will insert the text value and the application will place that text at the bottom of the page? If yes, You can achieve this by adding a text annotation object to the container before passing it to the Print() method, and place the annotation text object at the bottom of the page.

If that is not what you want, please send me more details about what you're doing and what your requirements are.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Friday, August 2, 2013 9:59:17 AM(UTC)
tbecker82

Groups: Registered
Posts: 37


Mohamed,

I've included an image of what I was thinking.  I want to be able to write out additional text to the print document directly,
not tack it on as an additional annotation.  Right now using the AnnPrinter.Print() function the only thing that will be printed is the image and
any associated annotations to a single page.  I wanted to reserve a section of the page for writing out additional information.
I wasn't sure if this is possible using your libraries or not.

Thanks

Tony
tbecker82 attached the following image(s):
Demo.jpg
 
#4 Posted : Sunday, August 4, 2013 3:33:33 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


Tony,

Since you don't want to use our annotations to add the extra text, let the AnnPrinter print method ends printing then use the "DrawString" method. To do that, try the following:

1. Open our "Automation demo" source code, you can find it under:
[LEADTOOLS ]\Examples\DotNet\CS
2. Open the "MainForm.cs" file.
3. At the end of the "_printDocument_PrintPage" function, add this line:
e.Graphics.DrawString("This is a test string", new Font("Arial", 28), new SolidBrush(Color.Purple), new PointF(0.0F, e.PageBounds.Height * 95 / 100));
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#5 Posted : Tuesday, August 20, 2013 7:08:16 AM(UTC)
tbecker82

Groups: Registered
Posts: 37


Thank you for the suggestion Mohamed, I will give it a try.

Tony
 
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.073 seconds.