|
-
August 4th, 2004, 02:09 PM
#1
How to read print options selected
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
-
August 4th, 2004, 02:42 PM
#2
One more thing
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
-
August 5th, 2004, 01:59 PM
#3
-
August 5th, 2004, 02:01 PM
#4
 Originally Posted by paulina_lui
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
Are you planning to use MFC's printing fx ?
-
August 5th, 2004, 04:32 PM
#5
Well
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
-
August 5th, 2004, 04:51 PM
#6
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..
-
August 6th, 2004, 01:35 PM
#7
thanks!
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.
-
August 6th, 2004, 01:43 PM
#8
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..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|