Link to home
Start Free TrialLog in
Avatar of tko092397
tko092397

asked on

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
Avatar of jclanz
jclanz

hello,
Send a message to the application like this
AfxGetMainWnd()->SendMessage(WM_COMMAND,ID_FILE_PRINT_PREVIEW);
regards, jean-claude
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops, jclanz, I didn't see your comment. Sorry.