Solved

Print without preview

Posted on 2004-03-31
5
205 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is the purpose of protos  and PARAMS in the readline library 3 67
Socket Programming (Unix) 8 127
Dynamically allocate memory 9 58
Why isn't object file created? 6 57
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 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