Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Barbara Peisch
  Where is Barbara Peisch?
 Oceanside
 California - United States
 Barbara Peisch
 To: Le Glode
  Where is Le Glode?
 Grasse
 France
 Le Glode
 Tags
Subject: RE: change orientation in reports ???
Thread ID: 78597 Message ID: 78605 # Views: 72 # Ratings: 2
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Thursday, October 06, 2005 3:13:23 AM         
   


> Hi, is it possible to change orientation of some pages in a report. I actually want to print the first page in portrait than the other pages in landscape.
> Thanks a lot


I've got just the thing for you. Go to www.peisch.com/downloads.html and download the file called SetPrtProps.zip. That's a PRG based class that allow you to programmatically change printer properties. You would want to use it as follows:
SET PROCEDURE TO SetPrinterProperties
loSetProps = CREATE("SetPrintProperties")
loSetProps.SetProperty(DM_ORIENTATION,DMORIENT_PORTRAIT)
REPORT FORM MyReport To... RANGE 1,1
loSetProps.SetProperty(DM_ORIENTATION,DMORIENT_LANDSCAPE)
REPORT FORM MyReport To... RANGE 2

The DM_ constants come from the WINDOWS.H file, which is included in the download. The download also includes a program called PrintTest.prg that shows examples of how to use the class.

-BP
www.peisch.com

ENTIRE THREAD

change orientation in reports ??? Posted by Le Glode @ 10/5/2005 10:49:23 PM
RE: change orientation in reports ??? Posted by Barbara Peisch @ 10/6/2005 3:13:23 AM
RE: change orientation in reports ??? Posted by Le Glode @ 10/6/2005 5:06:06 PM
RE: change orientation in reports ??? Posted by Jerry Kahn @ 2/1/2012 4:56:07 PM
RE: change orientation in reports ??? Posted by Jerry Kahn @ 3/9/2012 4:10:42 PM