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!

non-standard size reports

Status
Not open for further replies.

alvinmcg

Technical User
Oct 21, 2003
24
US
I have some reports which are on larger format pages. Each time I want to run the report, I must go into the printer setup and reselect the correct paper tray. Is there a shortcut so this is automatic?

Happy Thanksgiving

alvinmcg
 
See the PrinterOptionInfo type in your help files. You can set the printers tray, paper size etc. in code before you print the report. (Using the printerSetOptions method with the PrinterOptionInfo type. )

Hope this helps




 
I have added the following to the pushbutton method and I get an error when printing the report. Error shows up in the print que. Any suggestions?

Code:
var
   prnOptions  	   PrinterOptionInfo
   strReportName   String;// tmp handle to report name
   rHandle	   Report;// tmp handle to report being opened
endVar

   ;// Print file in Landscape mode
   prnOptions.Orientation = prnLandscape

   ;// Assign report file name
   ;//
   strReportName = "Bonds, Open Details.rsl"

   ;// Print the report
   ;//
   if NOT rHandle.print(strReportName) then
	msgStop("Error opening " + strReportName, "Please make sure the report exists and try again.")
	endIf
 
What kind of error do you get? What does the error say?

Remove the 'if not' statement and see what paradox says is going wrong.

The more we know the more we can help.
 
The error now appears to have been with the printer. I just reran the report and it printed to the printer. However, the report still prints in portrait format.

I would like to set this up to avoid this 25 page report from being inadvertantly printed in the wrong format and being thrown away.

Thank you for your help and advice.
 
alvinmcg,

What version of Paradox are you using? Some of them have more trouble than others with printer setup. And the same code doesn't produce the same results in each version.

Lynn
 
You'll find that in Paradox 9 (and apparently 7+8) the printer setup code does not always work in the way you want it to. See the FAQ section of Paradox at this site.

I beleive the i saw a way to fix the landscape/potrait problem there.

Hope this helps

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top