Click here to Skip to main content
15,925,723 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving printer options Pin
Ryan Binns5-May-05 18:09
Ryan Binns5-May-05 18:09 
GeneralRe: Saving printer options Pin
crowbarcberg6-May-05 2:44
crowbarcberg6-May-05 2:44 
GeneralRe: Saving printer options Pin
PJ Arends6-May-05 5:47
professionalPJ Arends6-May-05 5:47 
GeneralRe: Saving printer options Pin
PJ Arends6-May-05 6:45
professionalPJ Arends6-May-05 6:45 
GeneralRe: Saving printer options Pin
crowbarcberg6-May-05 9:14
crowbarcberg6-May-05 9:14 
GeneralRe: Saving printer options Pin
PJ Arends6-May-05 10:59
professionalPJ Arends6-May-05 10:59 
GeneralRe: Saving printer options Pin
crowbarcberg6-May-05 11:15
crowbarcberg6-May-05 11:15 
GeneralRe: Saving printer options Pin
PJ Arends6-May-05 13:46
professionalPJ Arends6-May-05 13:46 
Have a look at CWinApp::SelectPrinter, it may be better suited for you if you are using only one printer for all your documents (or have only one SDI document).

I have multiple documents that can be printed to different printers at different times with different formats, all without any user input, so I could not use CWinApp's built in printer support.

There is one thing I did miss telling you is the DEVMODE extra data (dmDriverExtra member). If you do not correctly save that data you may be loosing some information.

Otherwise the code you posted looks fine. You will just have to step through your code in the debugger to see if there is anything going amiss.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralRe: Saving printer options Pin
crowbarcberg6-May-05 15:31
crowbarcberg6-May-05 15:31 
GeneralRe: Saving printer options Pin
crowbarcberg13-May-05 6:22
crowbarcberg13-May-05 6:22 
GeneralRe: Saving printer options Pin
crowbarcberg13-May-05 6:30
crowbarcberg13-May-05 6:30 
GeneralRe: Saving printer options Pin
PJ Arends13-May-05 9:11
professionalPJ Arends13-May-05 9:11 
GeneralVS 6.0 - service pack info Pin
john john mackey5-May-05 10:23
john john mackey5-May-05 10:23 
GeneralRe: VS 6.0 - service pack info Pin
Kevin McFarlane5-May-05 10:30
Kevin McFarlane5-May-05 10:30 
GeneralRe: VS 6.0 - service pack info Pin
Anonymous5-May-05 10:43
Anonymous5-May-05 10:43 
GeneralRe: VS 6.0 - service pack info Pin
Kevin McFarlane5-May-05 12:05
Kevin McFarlane5-May-05 12:05 
GeneralRe: VS 6.0 - service pack info Pin
David Crow6-May-05 4:25
David Crow6-May-05 4:25 
GeneralSound Led Pin
RickyC5-May-05 9:26
RickyC5-May-05 9:26 
GeneralRe: Sound Led Pin
Ravi Bhavnani5-May-05 10:07
professionalRavi Bhavnani5-May-05 10:07 
GeneralRe: Sound Led Pin
RickyC5-May-05 10:09
RickyC5-May-05 10:09 
QuestionHow to change the different view in the CSplitterWnd Pin
wwwht5-May-05 9:03
wwwht5-May-05 9:03 
AnswerRe: How to change the different view in the CSplitterWnd Pin
David Crow5-May-05 9:40
David Crow5-May-05 9:40 
GeneralUsing WinPCap Pin
sarmed5-May-05 8:04
sarmed5-May-05 8:04 
GeneralRe: Using WinPCap Pin
CodeBeetle26-May-05 6:50
CodeBeetle26-May-05 6:50 
Questiondo u know the differences between command.com and cmd.exe? Pin
includeh105-May-05 7:57
includeh105-May-05 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.