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!

Printing envelop rotated 90 degr.

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
I am wondering how I can effect the direction of the text on an envelop I like to print.
I did some experiments with hacking the report orientation=0 / orientation=1 in the field 'str', 1st record.
As a result the direction of the paper rotates but not the entire text on it, just the papersize.

Although I am using VFP9SP2 I still use the oldfashioned report-generator.
Is changing to the reportlistener the only solution to achieve my goal?

TIA
-Bart
 
When I spoke about reportlistener I did underlisted example which comes from the helpfile where test is my testreport.
But maybe it's my lack of knowledge of the reportlistener that I used wrong terms?

SET REPORTBEHAVIOR 80
#DEFINE PRINT_MODE 0
REPORT FORM test OBJECT TYPE PRINT_MODE
LOCAL loRef
loRef = _oReportOutput[TRANSFORM(PRINT_MODE)]
? loRef.OutputType && will be 0
? loRef.PageTotal && will be the total of pages

-Bart
 
You are using the OBJECT clause, so that is enforcing reportbehavior 90.
OBJECT oReportlistenerobject is only one way to use the object assistet report engine,
specifying a TYPE you are using one of the reportlisteners embedded in REPORTOUTPUT.APP, that's all.

Nevertheless the quote from the help holds true, this clause has precedence over what reportbehavior you set initially. Reportlisteners don't work with the legacy reportbehavior, therefore whatever you set as Reportbehavior is overridden the moment you use the object assisted mode of the REPORT FORM command.

There are even more ways to use reportlisteners, directly and indirectly.

Bye, Olaf.
 
Olaf I don t doubt your right.
I just posted my last one to inform about how I came to my conclusion.
For know I feel the thread my considered as closed.
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top