Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Landscape Mode? 1

Status
Not open for further replies.

openthinking

Programmer
May 17, 2004
4
US
I have several report that needs to be printed in the landscape mode. How can I force the report to be printed in the landscape mode?

Thanks
 
1. If you are using the report designer, select
VFP Menu->FILE->PageSetUP and set the Landscaoe mode and proceed to build your report form.

2. If you are doing the report header hacking then..

SELECT 0
USE myReport.FRX ALIAS myReport
LOCATE

REPLACE Expr WITH "ORIENTATION=0" && for Portrait and
REPLACE Expr WITH "ORIENTATION=1" && for Landscape

But if you may have other printer settings and only want to change the orientation.. then you can make a string search and parse the above orientation and save it.

After the REPLACEMENT make sure you close the opened report table..as in..
USE IN myReport
Then proceed to fire the report.


Another easier suggestion is to use two different report formats and use the right one based on the users choice. This could be appropriate, since the format of the positions of contents could vary based on the style chosen. In this case, you can hack the report header and keep opnly the orientation in the Expr field.

Regarding report hacking look into my FAQ

How to hack FRX file to strip printer driver information
faq184-581

:)



____________________________________________
ramani - (Subramanian.G) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top