PDA

View Full Version : Validating Printing Parameters


faizan
June 17th, 2008, 02:46 AM
I need to ask one thing about printing mechanism. There are some functions available to print a PDF file. There is a slient printing method named Print and PrintWithDialog available for printing with Foxit dialog box.

Instead of silent printing, I want to use Foxit print dialog box for printing. Is there a way to get selected printer name, number of copies etc on OK button event before printing? I need to validate user entered/selected printing information before printing. Kindly update me.

Regards,
Faizan

faizan
June 18th, 2008, 11:44 PM
Any solution?

hartstein
June 20th, 2008, 08:03 AM
I needed to perform a similar function in order to read the scale mode on the printer dialog. You can use the findwindowex windows call to get the windows handle of the print dialog, and then various dialog calls (getdlgitemint, getdlgitemtext) to return the values in the dialog. The resource ids can be obtained via the windows spy application