Print without preview

i want to print without preview, using VC++. Please help ,if possible please show source code.
Thanks in advance.
bringmetoyourworldAsked:
Who is Participating?
 
lakshman_ceConnect With a Mentor Commented:
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
 
jj819430Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.