?
Solved

MFC Print Preview Inside a DLL

Posted on 1998-09-29
5
Medium Priority
?
397 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
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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

862 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