Solved

PRINT AND PRINT PREVIEW

Posted on 1998-11-05
1
193 Views
Last Modified: 2013-11-20
Hi experts,
  Environment : VC++ 5.0 ,  MFC 4.0,  NT 4.0
  Question    : By OnDraw I m drawing a big picture
    using CDC :: Draw-function...s .The size of the
    picture is more than A4 size paper .
    Now I want to print the picture in A4 size paperS
    without changing the scale of the actual picture .
    i.e , I want the printout of the picture as 2D array
    of A4 size paperS .And the same I want to see in  
    print preview .  
0
Comment
Question by:tamil
1 Comment
 
LVL 2

Accepted Solution

by:
cyrilbdt earned 200 total points
ID: 1324248
In your print function set DC:
1. If you are in MM_ANISOTROPIC ot MM_ISOTROPIC set dimension of view to A4 (using SetViewportExt and SetWindowExt).
2. Move coord origin in starting point you want(SetViewportOrg).
3. Call OnDraw with this modified DC
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

18 Experts available now in Live!

Get 1:1 Help Now