?
Solved

Print without preview

Posted on 2004-03-31
5
Medium Priority
?
209 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

771 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