Solved

Landscape or Portrait printing

Posted on 1997-12-09
2
445 Views
Last Modified: 2013-11-20
I am writing an application using VC++1.52.  I need to print some reports in lanscape and some reports in portrait.  Is it possible to change the oritentation on the fly without any user intervention?

Thanks
0
Comment
Question by:mtgcpc
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1311925
Yes, you can modify the DEVMODE structure to force the orientation to be either landscape or portrait. If you are using PrintDlg to get the printer dialog settings, then the PRINTDLG structure that is returned has the DEVMODE structure embedded.
0
 

Author Comment

by:mtgcpc
ID: 1311926
Thank You
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 35
Replacement selected text 2 62
format the code in java 6 94
Way to decrease size of apk file 9 69
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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