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

Printing landscape not working -- Two items

Status
Not open for further replies.

ssilver

Programmer
Apr 21, 2001
17
US
1.) My client has changed to Windows 2000 and certain Pdox forms that contain OPAL code to determine how the reports are printed out is having a problem. I'm referring to orientation. Certain reports that were being printed out landscape under my code control are coming out in portrait format. I really don't know whether that's a Win 2000 problem or something else.
ALSO --
2.) When this client has his report initially on the screen and then wants to print it out, he cannot depress the "Modify Printer Setup" button of the "File -- Printer Setup" choice in the report menu. I have no problem with this on my system which runs on Win 98.

Can anyone help?

Thanks,

Stan
ssilver@compuserve.com
 
I have struggled with this problem for years and have never found a good solution. We are still at Paradox8, but this has been a bug ever since the first Paradox for Windows. One workaround I use is to use the PrintReportInfo command to set the printer options via code, though on some systems this works, on others it will not!!!

PrinterGetOptions(prnArray)
prnArray["Orientation"]=2
If not PrinterSetOptions(prnArray,True) then
errorShow("Could not set printer options.")
endIf
;Verify Change...
PrinterGetOptions(prnArray)
If prnArray["Orientation"]=1 then
msgstop("ERROR","Could Not Auto-Change Orientation. Select Print Report then click on the Printer Properties Button.")
else
beep()
message ("Now Landscape")
sleep(2000)
endif

See if this helps at all.

Regan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top