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 in Powerbuilder

Status
Not open for further replies.

Cardioes

Programmer
Jan 16, 2012
11
US
(I tried posting this earlier, but the topic did not show up)

Greetings Tek-Tiks,


Is there a way to print a report and control what the filename would be? I would like to be able to store that file name in a variable. I suppose it is a simple inquiry, but I can't seem to be able to find a way to do it.

Any help would be appreciated.
 
When you say 'print' do you mean sending something to a printer or saving it to a file and then printing the file? If you are sending the job to the printer and you want to control the name of the job (which shows in the print queue) you do that by setting the DocumentName property ( dw.object.print.documentname ). If you want to name the file it's the Filename property (dw.object.print.filename). If filename is an empty string the job gets sent to the printer.

Matt

"Nature forges everything on the anvil of time"
 
Matt,

Thank you very much for your assistance =).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top