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
#error this file is not editable by Microsoft Visual C++
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?
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.
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
Plz help me how i can show exact preview which exactly draw the things on its place which is shown by OnPaint func.