Home » Developer & Programmer » Reports & Discoverer » how can i send print command from form to print a report?
how can i send print command from form to print a report? [message #129785] Tue, 26 July 2005 12:32 Go to next message
shum
Messages: 17
Registered: July 2005
Junior Member
hello sir,

i want to ask that
how can i send print command from form to print a report?

please its urgent i need it for my final project
Re: how can i send print command from form to print a report? [message #134673 is a reply to message #129785] Fri, 26 August 2005 02:10 Go to previous message
Leo007
Messages: 15
Registered: June 2005
Junior Member
Hi shum,

use this to view the report called from forms on Screen:
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'SCREEN');

or this one to send it directly to the default printer:
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'PRINTER');

If you want to print it to a specific printer use this:
add_parameter(pl_id, 'DESNAME', TEXT_PARAMETER, printername);

Leo
Previous Topic: Discoverer Viewer4i Logon Error invalid Applications GWYUID
Next Topic: abort report when no data found
Goto Forum:
  


Current Time: Tue Nov 26 09:08:18 CST 2024