To solve the problem add the resource file afxprint.rc located in the msc/include directory. The best place to insert it is in the rc2 file in the res directory under your project. // // TESTAPP.RC2 - resources Microsoft Visual C++ does not edit directly // #ifdef APSTUDIO_INVOKED #error this file is not editable by Microsoft Visual C++ #endif //APSTUDIO_INVOKED #includeReply
Originally posted by: Macky
It seems that you can print just one page
Originally posted by: Jack
I put all the code in a lib and when I execute the program I got a crash while doing RUNTIME_CLASS(CViewPrintPreview).
Any idea ?
ReplyOriginally posted by: Mark Donoghue
Seems like the change to ViewPrev.cpp in .NET caused this to break.
Anybody else had a similar problem - any workaround?
ViewPrev.cpp in VS.NET has been fairly heavily modified and moved to ATLMFC.
ReplyOriginally posted by: situ
It will be perfect if having possibility to use keyboard flesh in your preview window for scrollbar.
ReplyOriginally posted by: salina
hi
thank you for u code, It has been very helpful.
l just have a problem, my dialog box can be enter value by user, so if l just want to print out text method. how can change from a dialog with button, staics, or list box to a text method that l want?
thank you
ReplyOriginally posted by: Sujit
How can I get Landscape page Orientation in Print as well as Print Preview?
ReplyOriginally posted by: Sunita
Hi, I have a dialog based application. I have added the WM_COMMAND, ID_FILE_PRINT. But when I click on the print button in print preview. Nothing happens.. I tried using the PreTranslate but nothing happens. Seem liks ID_FILE_PRINT not being caught. It goes straight into CViewPrintPreview::OnEndPrintPreview .. what am I doing wrong? What should be done.
It is several dialog before in the final dialog the user can preview or print the document.
Please help if possible.
Thanks
ReplyOriginally posted by: sikander Rafiq
Plz help me how i can show exact preview which exactly draw the things on its place which is shown by OnPaint func.
Hi
I have read ur article on net. I want to ask one question.
I have a CView class and in its OnPaint func, i created one ractangle and draw texts
and called OnFilePrintPreview of CView, but it can't show actual preview
Thanks for your kind co-operation
Sikander
Originally posted by: DongJiang
It's very good,thank you.
But when I linked with MFC static lib,
when running an ERROR happened: Cannot find dialog template named.