Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Number of pages printed
Started by j3nsen888 at 02-23-2007 15:01. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  02-23-2007, 15:01
j3nsen888 is not online. Last active: 8/25/2007 8:45:44 PM j3nsen888

Not Ranked
Joined on 02-06-2007
Posts 6
Number of pages printed
Reply Quote
Is there a way to determine programatically, as ePrint prints, how many pages it has printed and whether the print job was successful?

Thanks!
   Report 
  02-26-2007, 4:21
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: Number of pages printed
Reply Quote
Hello,

You can determine the number of printed pages programmatically by checking the GetPagesPrinted property for the current job.
Also, to check the status for each file being saved, you need to check the SaveStatusEvent event. To enable firing this event, the user must set the value of the EnableSaveStatusEvent property to VARIANT_TRUE before starting the print job.
Also, you can check the JobInfoEvent event to check the status of the print job (the start and the end of the print job). To enable firing this event, the user must set the value of the EnableJobInfo property to VARIANT_TRUE before starting the print job.

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  05-13-2007, 0:44
j3nsen888 is not online. Last active: 8/25/2007 8:45:44 PM j3nsen888

Not Ranked
Joined on 02-06-2007
Posts 6
Re: Number of pages printed
Reply Quote
Hello,

I have followed the example from the tutorial and enabled jobinfo by doing this:

ePrintEvents.EnableJobInfo(PRINTER_NAME) = True

The function I have implemented is from the help file and the function is called ePrintEvents_JobInfoEvent and I am calling it twice before the job starts with: ePrintEvents_JobInfoEvent(PRINTER_NAME, 0, 1)

And when the job ends with: ePrintEvents_JobInfoEvent(PRINTER_NAME, 0, 2)

I, however, am always getting pages printed = 0.

Do you know why this would happen?

Thanks.
   Report 
  05-16-2007, 11:41
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: Number of pages printed
Reply Quote
Hello,

To get the number of the pages, you may try to use and check the EMFEvent event (IEPrint). This event occurred for every page printed using the LEADTOOLS ePrint. You can use a counter variable inside the EMFEvent event to count the printed pages.

To enable firing this event, you must set the value of the EnableEMFEvent property to VARIANT_TRUE before start printing the print job.
For more information, please read the following topic in the LEADTOOLS ePrint 5 COM help file:
- EMFEvent event (IEPrint)

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » ePrint API » Re: Number of pages printed

Powered by Community Server, by Telligent Systems