Solved

Printing from CFormView or CDialog based applications

Posted on 2004-03-30
2
292 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
Comment Utility
0
 
LVL 21

Author Comment

by:Yurich
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 74
notReplace  challenge 53 102
fizzArray2 challenge 1 55
MaxSpan challenge 9 65
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now