Solved

PRINT AND PRINT PREVIEW

Posted on 1998-11-05
1
211 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
[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
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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

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…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

630 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