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?
Number of printed pages of the spooled job
Number of printed pages of the spooled job
|
|
Feb 9 2006, 10:52 AM, updated 20y ago
Show posts by this member only | Post
#1
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
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? |
|
|
|
|
|
Feb 9 2006, 07:48 PM
Show posts by this member only | Post
#2
|
|
Elite
1,828 posts Joined: Jan 2003 |
|
|
|
Feb 9 2006, 08:00 PM
Show posts by this member only | Post
#3
|
|
Elite
1,828 posts Joined: Jan 2003 |
QUOTE(shinchan^^ @ Feb 9 2006, 10:52 AM) When you are printing a documents You need to obtain the printer handle and the status.there is value in the spool manager that display the total number of pages how do i get this value from the registry? (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. |
|
|
Feb 10 2006, 08:46 AM
Show posts by this member only | Post
#4
|
![]() ![]() ![]() ![]()
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. 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....(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. |
|
|
Feb 10 2006, 11:07 AM
Show posts by this member only | Post
#5
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
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: | 0.0208sec
1.20
5 queries
GZIP Disabled
Time is now: 23rd December 2025 - 12:42 PM |