Solved

Printing from CFormView or CDialog based applications

Posted on 2004-03-30
2
320 Views
Last Modified: 2013-11-20
Hello everybody and I'd appreciate your help, suggestions, and/or comments on the following:

I have a viewform-based application and I need to do some printing. I don't need to print the whole form, but just some area, enclosed withing a CRect object, where I'm doing some text and graphical output. I used CFromView expecting to utilize OnPrint and other functions provided by MFC, but as far as I understand I need to override this function in order to print anything... and I'm not sure how. I found a source on Code Guru site but unfortunatelly it doesn't work for me... I have a print view, which I actually don't need, and a printer just spits out my sheets of paper without printing anything :((

I would appreciate your suggestions.
0
Comment
Question by:Yurich
2 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 100 total points
ID: 10723977
0
 
LVL 21

Author Comment

by:Yurich
ID: 10751421
thanks for your reply. i have found a couple of more sources on the net and combined with this one, i could get what i needed. in the example you advice me, i didn't quite understood the reason of using MM_LOMETRIC since it's not flexible and doesn't give you a real size of your controls... nevertheless, i rather used MM_ANISOTROPIC map mode with setting window and viewport extents... there are more question but it's a different story. thanks again
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Title # Comments Views Activity
Perl Awk Need Help 3 129
has77  challenge 9 92
withoutTen challenge 14 132
Bartender label printing - switch on and off graphics 3 56
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 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