Click here to Skip to main content
15,900,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I use the ReportViewDlg to show the report in the custom control (see number 3 in my initial post).

I think the pDC is correct. Here is the function where I inserted the DrawText that prints OK.
void CReportView::OnPrint(CDC* pDC, CPrintInfo* pInfo) 
{
  CReportDoc* pDoc = GetDocument();
  ASSERT_VALID(pDoc);
  pDoc->Draw(pDC); // This does not print anything
 
  CRect printArea;
  printArea.SetRect(0, 0, pDC->GetDeviceCaps(HORZRES), pDC->GetDeviceCaps(VERTRES));
  pDC->DrawText("My Test is OK.", printArea, DT_NOPREFIX | DT_WORDBREAK); // This prints OK
   
  CScrollView::OnPrint(pDC, pInfo);
}

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 
AnswerRe: Please HELP me for the Pseudocode for this one: Pin
Maximilien9-Jun-08 5:26
Maximilien9-Jun-08 5:26 
JokeRe: Please HELP me for the Pseudocode for this one: Pin
David Crow9-Jun-08 7:05
David Crow9-Jun-08 7:05 
GeneralRe: Please HELP me for the Pseudocode for this one: Pin
Maximilien9-Jun-08 7:07
Maximilien9-Jun-08 7:07 

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.