Print Preview in Dialog
-
Hi friends, I developed a dialog application. I want the content to be displayed in "Print Preview" view. I tried it by calling the OnFilePrintPreview() fn. But its aborting. Plz anybody help me out to solve the problem.. Thanks.
Reagards Shiva
-
Hi friends, I developed a dialog application. I want the content to be displayed in "Print Preview" view. I tried it by calling the OnFilePrintPreview() fn. But its aborting. Plz anybody help me out to solve the problem.. Thanks.
Reagards Shiva
PrintPreview is quite less problematic than printing in paper. BTW if you say that is aborting but you give wether the exact error nor a code snippet... it will be pretty difficult to help you. There are very good programmers here, but AFAIK there are no mediums or telepats in forum.
Greetings. -------- M.D.V. ;) 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
-
Hi friends, I developed a dialog application. I want the content to be displayed in "Print Preview" view. I tried it by calling the OnFilePrintPreview() fn. But its aborting. Plz anybody help me out to solve the problem.. Thanks.
Reagards Shiva
Hi, This OnFilePrintPreview() is available in CView or VEditView. But u can`t use it directly in a Dialog. If you want you have to Create a Dialog with Print Preview Option, inherited from CDialog Class.
Thanks and Regards. SANTHOSH V
-
PrintPreview is quite less problematic than printing in paper. BTW if you say that is aborting but you give wether the exact error nor a code snippet... it will be pretty difficult to help you. There are very good programmers here, but AFAIK there are no mediums or telepats in forum.
Greetings. -------- M.D.V. ;) 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
CFrameWnd* pFrameWnd=(CFrameWnd*)AfxGetThread()->m_pMainWnd; { CPrintPreviewView* pView=(CPrintPreviewView*)pFrameWnd->GetActiveView(); pView->OnFilePrintPreview(); } Now im getting the preview, but the prgm hangs.. whats the problem? :(
Reagards Shiva
-
CFrameWnd* pFrameWnd=(CFrameWnd*)AfxGetThread()->m_pMainWnd; { CPrintPreviewView* pView=(CPrintPreviewView*)pFrameWnd->GetActiveView(); pView->OnFilePrintPreview(); } Now im getting the preview, but the prgm hangs.. whats the problem? :(
Reagards Shiva
I guess an unended bucle. Or a reiterative call to OnDraw without end. Or something like this... This code seems to be ok, can you show what you are doing to print contents in the preview?
Greetings. -------- M.D.V. ;) 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