How to pop-up print preview

Hi,

I would like to start the print preview function by making some call in the code. Like the call is made when user chooses the print-preview in file menu.

Thanks, Tomas
tko092397Asked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
pView->PostMessage(WM_COMMAND, ID_FILE_PRINT_PREVIEW);
0
 
jclanzCommented:
hello,
Send a message to the application like this
AfxGetMainWnd()->SendMessage(WM_COMMAND,ID_FILE_PRINT_PREVIEW);
regards, jean-claude
0
 
chensuCommented:
Oops, jclanz, I didn't see your comment. Sorry.
0
All Courses

From novice to tech pro — start learning today.