Solved

Printing from CFormView or CDialog based applications

Posted on 2004-03-30
2
334 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
[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
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

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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…

634 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