?
Solved

Printing Through CHTMLView in MSDN 'MFCIE' example

Posted on 2000-04-22
1
Medium Priority
?
430 Views
Last Modified: 2013-11-20
Hi All,
I have developed an application on the MSDN -MFCIE sample on demostrating how to write an internet explorer like application using MFC CHtmlView. However, the the print button invokes the PrintDialog prompting the users to key in printer information. How can I override that, such that print button uses the default printer settings and default printer to print out the active site. In other words everytime the user presses the print button/print menu, I want the application to print all pages to the default printer, without prompting the user for printer information.

Thanks
Cheers
0
Comment
Question by:noname000
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 400 total points
ID: 2740400
Override the ID_FILE_PRINT command and do the following.

this->ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL);
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Loops Section Overview
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question