Solved

Print without preview

Posted on 2004-03-31
5
203 Views
Last Modified: 2010-04-01
i want to print without preview, using VC++. Please help ,if possible please show source code.
Thanks in advance.
0
Comment
Question by:bringmetoyourworld
5 Comments
 
LVL 7

Expert Comment

by:jj819430
ID: 10727416
That preview is done on purpose for the end user.... (good thing i think)
What are you trying to do?
Print a file of what type
Have scheduled print jobs?
etc
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 250 total points
ID: 10727972
Plz refer to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_CView.3a3a.OnPreparePrinting.asp

"DoPreparePrinting does not display the Print dialog box for a preview job. If you want to bypass the Print dialog box for a print job, check that the m_bPreview member of pInfo is FALSE and then set it to TRUE before passing it to DoPreparePrinting; reset it to FALSE afterwards."


-Lakshman
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

708 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

15 Experts available now in Live!

Get 1:1 Help Now