Click here to Skip to main content
15,881,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WaitForMultipleObjects not waiting Pin
Joe Woodbury9-Jun-08 15:31
professionalJoe Woodbury9-Jun-08 15:31 
GeneralRe: WaitForMultipleObjects not waiting Pin
wjeanveau9-Jun-08 17:10
wjeanveau9-Jun-08 17:10 
Questionreading bits from file Pin
botnet9-Jun-08 11:06
botnet9-Jun-08 11:06 
AnswerRe: reading bits from file Pin
Jijo.Raj9-Jun-08 18:38
Jijo.Raj9-Jun-08 18:38 
GeneralRe: reading bits from file Pin
achainard10-Jun-08 2:45
achainard10-Jun-08 2:45 
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 
Hi all,

I am writing an MFC program (VC++ 6) that generates a report and supposedly able to print it out. The report is fine, but somehow it prints a blank page to the printer. After days of debugging the code, I still cannot locate the problem. This is why I can't simply post the problematic code here, I don't know which part is the problem! (Please forgive me if this is really not the right way to ask)

Here I created a (much) simplified code that simulates my problem. It could be because:
1. It is SDI-based program, but I deleted the CDocument class since I don't need it.
2. I use Easy! Reports (http://www.codeproject.com/KB/miscctrl/easyreports.aspx[^]) to generate the report
3. The report is shown using a custom control (http://www.codeproject.com/KB/docview/dfv.aspx[^])
4. Lastly, I am trying to print without using doc/view framework (http://www.codeproject.com/KB/printing/printing_wo_docview.aspx[^])

Could anyone please help me here. From what I understand, all I have to do is prepare the device context for printing (using number 4 above) and send it to the report generator function (number 2). Yet, it prints a blank page.

If anyone could please take a glance and point me to the right direction, I would really appreciate it. Thanks.

Download link: http://rs324.rapidshare.com/files/121245334/TestReport.zip[^]
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 
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 

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.