Solved

Printing Through CHTMLView in MSDN 'MFCIE' example

Posted on 2000-04-22
1
390 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
Comment Utility
Override the ID_FILE_PRINT command and do the following.

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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now