?
Solved

MFC Print Preview Inside a DLL

Posted on 1998-09-29
5
Medium Priority
?
378 Views
Last Modified: 2013-11-20
I "badly" need print preview inside an MFC DLL. The DLL provides Windows printing services for a class of applications. The print preview won't be in the release build, just during debug (sort of paper saver :-)

Concrete code samples please.  I'm not that expert in MFC doc/view.
0
Comment
Question by:ealva
[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 3

Expert Comment

by:zhongbing
ID: 1322673
if you use the doc/view template, then then print preview will be a give feature from the app wizard. if you don't use the template and want it in a dll, then the full print preview function need hard work
0
 
LVL 3

Expert Comment

by:plaroche
ID: 1322674
Print Preview won't guarantee a working print operation.  There are some differences that might show up on a real printer.  There's nothing like printing to a real printer, in the meantime you might use something like a fax application that installs as a printer. You will be able to view the printed documents onscreen.
You could also install a postscript printer and print to file, then view the file with a postscript viewer.  All those solutions will require less work than your own print preview and be more efficient in proving your code.
0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1322675
MFC Print Preview in a DLL is the same as in an app, i.e. must like in a Doc/View application, inside the View.
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 400 total points
ID: 1322676
There's nothing hard about PrintPreview in a DLL at all!  If you think that things the AppWizard doesn't do for you are hard, then you're in the wrong business.

See the DLLHUSK sample (right on the product CD!) for an example of how to put a view into a DLL. The sample is trivially enhanced to provide Print-Preview in the DLL-based CView-derived class.

B ekiM

0
 

Author Comment

by:ealva
ID: 1322677
Thanks. I really do not think it's hard (I did not even say it), but I do know it will take some time, which I have little right now. Anyway, I'm glad a real guru answered my question. Please forgive my laziness.

0

Featured Post

Independent Software Vendors: 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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

801 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