Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I need a Code To Get Size of The Printed Document . Ex: If I Give a Print of MS-Word Document of 2kb, program should give Output as Size of the Document is 2kb....please help me .
Posted
Updated 10-Oct-11 21:14pm
v2
Comments
Chandrasekharan P 11-Oct-11 3:44am    
ftell function should help you get the size.
Madhu Nair 11-Oct-11 5:20am    
When did you want the document size , before printing ?
If so, just open the file and check the file size.
Or after the document sent to printer ?
Mohibur Rashid 11-Oct-11 22:24pm    
Are you working for this for printing server? If so, you wont get actual document size. because, Whenever we send something to print we open a handler of device context(HDC) and then we create the image in the device context and the document get printed with the information...
Emilio Garavaglia 12-Oct-11 3:39am    
The saved document and the printed document have different data format, so the size may be very different. please clarify your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900