This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, December 14, 2006 10:04:02 AM(UTC)
Groups: Registered
Posts: 3
I created a TIF from PDF file, there are 2 pages in a file. I am using RasterImagePrinter 's PRINT() method. At a time it prints only 1 page. What can I do to print all the pages of TIF file at one time?
Thanks in advance.
Regards
Pramod
#2
Posted
:
Friday, December 15, 2006 12:28:28 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
The PrintDocument you originally use to start the printing process does not know that your RasterImage has multiple pages, it only thinks it has one. This is why you call the RasterImagePrinter.Print() method inside of the PrintDocument_PrintPage event. If your image has multiple pages, adding this code to the end of your event after you have callled the RasterImagePrinter.Print() method should do the trick:
If RasterImageViewer1.Image.Page < RasterImageViewer1.Image.PageCount Then
e.HasMorePages = True
RasterImageViewer1.Image.Page += 1
Else
e.HasMorePages = False
End If
e is the event args for the Event.
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.