I plan to display the PrintDialog, and want to be able toread what options were selected, like landscape or portrait, From-to pages, number of copies, how can I do this,.
Some sample code would be really great.
Take Care
paulina
Printable View
I plan to display the PrintDialog, and want to be able toread what options were selected, like landscape or portrait, From-to pages, number of copies, how can I do this,.
Some sample code would be really great.
Take Care
paulina
I also see whne I Select Print fomr MS Word I see a different Dialog then what I see when I select Print from MS PowerPoint which in turn is different from what I see when I select Print from MS Outlook.
How can I do something similar as well, as basically I will be printing all these dccuments from my application as well.
Pauli
Help!!!!!
Are you planning to use MFC's printing fx ?Quote:
Originally Posted by paulina_lui
I can use MFC, all I need to do is know what options were selected by the user after they hit on the OK button on the Print dialog, and I wan to display different dialogs as Windows does for different applications, wht I dont know is it because each of them have their own implementation like PowerPoint,MS WOrd, MS Outlook or is there a common dialog which can be customized depending on the file type.
Thanks!
Pauli
Check this on MSDN:
"HOWTO: Customize the Common Print Dialog Box"
Also, check CPrintDialog class. It has a member variable m_pd which you can use to check for certain settings. Also, I think using the hdc in that, you can use GetDevNode to get other settings..
But is there a way to show diffferent Print Dialog/Options as various applicaions or will I have to do that myself, as I have to take the print optios and see what was selected.
One way is to customize it.. my previous post has a article info on that. Other way is , in case your print dialog is a major departure from the std ones, to write your own dialog. But then you have to do some minimum things like populating the printers etc. and allow user to select printer . For that u need to enumerate the installed printers. Then you need to use all this information and the other info, like pages, orientation etc and fill in the proper structure when you configure the printer for printing.
Well.. all this is a highly involved work I beleive. You should look at the MSDN articles on printing. Don't look at the MFC ones , but from the SDK documentation. Look for EnumPrinters, GetPrinter, CreateDC and such functions.
This is as far as my understanding goes.. I may be wrong and there may be simpler ways..