Home » Developer & Programmer » Forms » Forms6i - How to dynamically change name of Report run from Forms
Forms6i - How to dynamically change name of Report run from Forms [message #84444] |
Tue, 16 March 2004 10:59  |
Fred
Messages: 34 Registered: August 1999
|
Member |
|
|
I have helped in trying to convert from forms 3.0 to forms 6i. The forms I am dealing with used to be able to modify the printer queue name for each file but does not work anymore. In fact it comes up with a T01340065 type number for the print queue job name once in a while (instead of ARCSHED2). We print several different invoices using the same report file, but at the printer we need to know which color invoice we need to use. Any ideas on how to do this? Is there a report name parameter I can change on the fly?
Code used is...
if not Id_Null(pl) then
Destroy_Parameter_List(Pl);
end if;
Pl := Create_Parameter_List('tmpData');
Add_Parameter(Pl, 'PF_CO', TEXT_PARAMETER, CO_TEMP);
Add_Parameter(Pl, 'P_RUN_DATE', TEXT_PARAMETER, :TODAYS_DATE);
Add_Parameter(Pl, 'PARAMFORM', TEXT_PARAMETER,'NO');
Add_Parameter(Pl, 'DESTYPE', TEXT_PARAMETER,'PRINTER');
Add_Parameter(Pl, 'DESFORMAT', TEXT_PARAMETER,'WIDE180');
Add_Parameter(Pl, 'BATCH', TEXT_PARAMETER,'YES');
Add_Parameter(Pl, 'MODE', TEXT_PARAMETER,'CHARACTER');
-- Add_Parameter(Pl, 'PAGESIZE', TEXT_PARAMETER,'14X11');
Add_Parameter(Pl, 'BACKGROUND', TEXT_PARAMETER,'YES');
Add_Parameter(Pl, 'Name', TEXT_PARAMETER,'CASHEDIT');
Run_Product(REPORTS,'ARCSHED2',SYNCHRONOUS,RUNTIME,FILESYSTEM, pl, null);
MESSAGE ('Cash Report Complete ...', NO_ACKNOWLEDGE);
|
|
|
|
Goto Forum:
Current Time: Wed Mar 05 21:43:15 CST 2025
|