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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot print landscape orientation via OPAL in ver. 7/8/9

Printing

Cannot print landscape orientation via OPAL in ver. 7/8/9

by  ExCorel  Posted    (Edited  )
This is a known problem in versions 7\8\9.
The problem is with the PrinterOptionInfo method, so instead of using this method :

1) Users can try putting PrinterGetInfo in the INIT method of a form, or use the following code which prints (in this example) a report called CLIENT.RSL in
landscape orientation.

var
r report
rpi reportPrintInfo
endVar

rpi.orient = PrintLandscape

; Note -- the file extension is optional
rpi.name = "CLIENT.RSL"
r.print( rpi )

Also, this routine works well for with P7 or P8 under NT and Win98.

var
myRpt Report
rptInfo reportPrintInfo
prnOptions printerOptionInfo
printInfo dynArray[] anyType
endVar
rptInfo.name = "someRptName.rsl"
prnOptions.orientation = printLandscape
printerGetOptions(printInfo)
printerSetOptions(prnOptions)
myRpt.print(rptInfo)
printerSetOptions(printInfo) ;returns printer settings

2) There have been instances where customers have used this code and *still* have not been able to print to Landscape. Using SENDKEYS to print, solved the problem in most cases.

3) Try adding a second instance of the printer driver. Point it to the same printer using the same driver, but make it's paper type/size 8.5x11 landscape. When you
need to print to landscape paper, print to the new driver via a different pushbutton method.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top