By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,199 Members | 1,474 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,199 IT Pros & Developers. It's quick & easy.

How to caculate the numbers of pages

P: n/a
ad
There are some uses in my windows 2003 domain.
The can print with a printer in a pc.
How can I caculate the numbers of pages of a users?
Nov 12 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2007-11-11 15:38:15 -0800, "ad" <fl****@wfes.tcc.edu.twsaid:
There are some uses in my windows 2003 domain.
The can print with a printer in a pc.
How can I caculate the numbers of pages of a users?
What C# code are you using to get the list of users?

What C# code are you using to print the list of users?

If the answer to those question is "I'm not using C# code", then this
is the wrong newsgroup for your question.

Otherwise, your question needs to include at a minimum enough code to
illustrate what you're doing so that a proper answer can be provided
that is pertinent to your code.

As a general answer: if you know how you're printing the list of users,
you can measure the size of the data printed for each user, and you can
compare that to the size of a page given you when printing to calculate
how many users can be printed on a page, and thus how many pages you'll
need to print all the users.

Unfortunately, I haven't yet found a way to get a Graphics instance
from a printer driver without actually printing, so it's difficult to
measure the printed data exactly until you're actually printing.
Please post back here if you find a way around that problem. :)

Pete

Nov 12 '07 #2

P: n/a
You need to write a priner driver or something that intercepts print jobs
and then examine the print job to count the number of pages in each job.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"ad" <fl****@wfes.tcc.edu.twwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
There are some uses in my windows 2003 domain.
The can print with a printer in a pc.
How can I caculate the numbers of pages of a users?

Nov 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.