Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Number of printed pages of the spooled job

views
     
TSshinchan^^
post Feb 9 2006, 10:52 AM, updated 20y ago

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


When you are printing a documents
there is value in the spool manager that display the total number of pages

how do i get this value from the registry?
anthony_yio
post Feb 9 2006, 07:48 PM

........
Group Icon
Elite
1,828 posts

Joined: Jan 2003


QUOTE(shinchan^^ @ Feb 9 2006, 10:52 AM)
When you are printing a documents
there is value in the spool manager that display the total number of pages

how do i get this value from the registry?
*
I doubt you can get that information in the registry especially stuff that are real time like this one.





anthony_yio
post Feb 9 2006, 08:00 PM

........
Group Icon
Elite
1,828 posts

Joined: Jan 2003


QUOTE(shinchan^^ @ Feb 9 2006, 10:52 AM)
When you are printing a documents
there is value in the spool manager that display the total number of pages

how do i get this value from the registry?
*
You need to obtain the printer handle and the status.

(I assume you are a VB programmer)

Check

http://www.merrioncomputing.com/Programming/WatchPrinter.htm

If you are calling from C++, it even more straightforward.

calapia
post Feb 10 2006, 08:46 AM

On my way
****
Senior Member
692 posts

Joined: Dec 2005


QUOTE(anthony_yio @ Feb 9 2006, 08:00 PM)
You need to obtain the printer handle and the status.

(I assume you are a VB programmer)

Check

http://www.merrioncomputing.com/Programming/WatchPrinter.htm

If you are calling from C++, it even more straightforward.
*
yea yea...i guess there is one library file name windows.h which include all the other library file such as winspool.h... try find in the msdn online regarding the winspool.h will help u get the value u wanted....
TSshinchan^^
post Feb 10 2006, 11:07 AM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


okok thanks

actually i got batches of access reports needed to be printed programmatically into pdf

i managed to set the pdf filename for each reports and now i need to set the total pages in the file name as well

current solution is programmatically
preview the report get the total pages, close the report, then print to pdf

but this method eventually makes the system hang, imagine hungreds or reports and thousands of pages to be run.



 

Change to:
| Lo-Fi Version
0.0123sec    0.71    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 07:00 PM