How to caculate the numbers of pages

  • Thread starter Thread starter ad
  • Start date Start date
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?
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top