Solved

Landscape or Portrait printing

Posted on 1997-12-09
2
448 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
[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:
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

Industry Leaders: 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. …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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