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, December 14, 2006 10:04:02 AM(UTC)

pramod  
pramod

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

 

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, December 15, 2006 12:28:28 PM(UTC)

GregR  
GregR

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.

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