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