Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading bits from file Pin
botnet10-Jun-08 13:09
botnet10-Jun-08 13:09 
AnswerRe: reading bits from file Pin
krmed10-Jun-08 6:08
krmed10-Jun-08 6:08 
QuestionBlank printout to printer Pin
Joe Smith IX9-Jun-08 7:04
Joe Smith IX9-Jun-08 7:04 
AnswerRe: Blank printout to printer [modified] Pin
Nelek9-Jun-08 8:12
protectorNelek9-Jun-08 8:12 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 8:33
Joe Smith IX9-Jun-08 8:33 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 8:59
protectorNelek9-Jun-08 8:59 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 9:22
Joe Smith IX9-Jun-08 9:22 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 9:34
protectorNelek9-Jun-08 9:34 
I don't have VC++ installed in this laptop so it is difficult for me to compile/debug. I am just answering by heart (I can have errors).

I have taken a look into your code and...

bPrintingOK &= dc.StartDoc(&docinfo);
bPrintingOK &= dc.StartPage();
((CReportView*)theApp.m_pReportView)->OnPrint(&dc, &Info);
//
//
bPrintingOK &= dc.EndPage();
((CReportView*)theApp.m_pReportView)->OnEndPrinting(&dc, &Info);


Why are you mixing a dialog to set printing parameters but then printing from your other view? Wouldn't be easier to set parameters and print directly there?

Chris' article is to print within a dialog. So, as you said, using a DrawText in the dialog prints it works.

Sending DCs and pInfos from one place to another is not so good idea. I think the problem can be there

Regards.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.

GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 9:53
Joe Smith IX9-Jun-08 9:53 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 10:02
protectorNelek9-Jun-08 10:02 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 10:18
Joe Smith IX9-Jun-08 10:18 
GeneralRe: Blank printout to printer Pin
Nelek9-Jun-08 10:32
protectorNelek9-Jun-08 10:32 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 16:44
Joe Smith IX9-Jun-08 16:44 
GeneralRe: Blank printout to printer Pin
Nelek11-Jun-08 8:16
protectorNelek11-Jun-08 8:16 
NewsRe: Blank printout to printer Pin
bulg9-Jun-08 11:13
bulg9-Jun-08 11:13 
GeneralRe: Blank printout to printer Pin
bulg9-Jun-08 11:21
bulg9-Jun-08 11:21 
GeneralRe: Blank printout to printer Pin
Joe Smith IX9-Jun-08 16:29
Joe Smith IX9-Jun-08 16:29 
QuestionHelp me! Pin
youareabigboy9-Jun-08 6:03
youareabigboy9-Jun-08 6:03 
QuestionRe: Help me! Pin
CPallini9-Jun-08 6:57
mveCPallini9-Jun-08 6:57 
JokeRe: Help me! Pin
Nelek9-Jun-08 7:56
protectorNelek9-Jun-08 7:56 
AnswerRe: Help me! Pin
Nelek9-Jun-08 9:52
protectorNelek9-Jun-08 9:52 
AnswerRe: Help me! Pin
Hamid_RT9-Jun-08 20:28
Hamid_RT9-Jun-08 20:28 
QuestionPlease HELP me for the Pseudocode for this one: Pin
ajakp9-Jun-08 4:43
ajakp9-Jun-08 4:43 
QuestionRe: Please HELP me for the Pseudocode for this one: Pin
Maximilien9-Jun-08 4:45
Maximilien9-Jun-08 4:45 
AnswerRe: Please HELP me for the Pseudocode for this one: Pin
ajakp9-Jun-08 5:03
ajakp9-Jun-08 5:03 

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.