Solved

Printing Through CHTMLView in MSDN 'MFCIE' example

Posted on 2000-04-22
1
393 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 100 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 32
sumDigits challenge 9 148
withoutTen challenge 14 121
canBalance challenge 34 84
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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