473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to caculate the numbers of pages

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
2 1791
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Scott David Daniels | last post by:
Kind of fun exercise (no good for British English). def units(value, units='bytes'): magnitude = abs(value) if magnitude >= 1000: for prefix in Scott.Daniels@Acm.Org
2
by: Will | last post by:
I have a 1 page report which I want to print numerous copies of. The number of copies will be specified by the user. My problem is that I want each report to print the copy number of number of...
3
by: Jamie Pittman via AccessMonster.com | last post by:
I am currently working on a project to take an employees time for a day and and if over 8 hours it would move those extra hours to overtime row amd not caculate into regular time. I started to use...
5
by: KenLee | last post by:
help: how can I change from "//localhost:numbers/" to just "//localhost/"? I can see the web pages using "//localhost:numbers/" instead of ""//localhost/". I use asp.net 2.o. and windows 2000....
4
by: Nick | last post by:
hi, guys I don't know where should I put this post, because this is a general question, not really a c# question. The question is how to caculate the real distance between two geographical...
2
by: John Kotuby | last post by:
Hi all, I am working on what I "thought" was a Web Project in VS 2005 using VB. I have published the site to an IIS server in our office for testing. When I hit a runtime error I get a basically...
3
by: nautonnier | last post by:
This may have been covered before but I didn't find anything after doing a google search. Does VS.NET 2005 have a way to put build or version numbers within aspx pages? I'm envisioning an...
4
by: Blue Streak | last post by:
Hello, Folks! Does anyone know of a website that lists the local phone number formats for each country? TIA...
13
by: cj2 | last post by:
pages = 1 pages.tostring gives me "1" pages+1.tostring gives me "2.0" Why did it add the ".0" on there? I was looking for "2" and this screws me up. Actually this is what I was doing. In...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.