Solved

Print without preview

Posted on 2004-03-31
5
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

730 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