Kbase P20903: How to set page orientation with Crystal Reports from 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/30/2003 |
|
Status: Verified
GOAL:
How to set page orientation with Crystal Reports from 4GL
GOAL:
How to set page orientation in a report from 4GL using Crystal Reports dll.
FIX:
/*This uses sample use craxdrt.dll */
DEF VAR vCRapplication AS COM-HANDLE NO-UNDO.
DEF VAR vCRreport AS COM-HANDLE NO-UNDO.
CREATE "CrystalRuntime.Application" vCRapplication.
CREATE "CrystalRuntime.Report" vCRreport.
/* Open the report */
vCRreport = vCRapplication:OpenReport("myReport.rpt") NO-ERROR.
/* Page setup */
/* Possible value for PaperOrientation
0 DefaultPaperOrientation
1 Portrait
2 landscape. */
vCRreport:PaperOrientation = 2 .
/* Print the report */
vCRreport:printout(TRUE).