PRINTING DIRECTLY FROM THE FORM [message #207972] |
Thu, 07 December 2006 10:28 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
rcorpus
Messages: 3 Registered: December 2006 Location: Mexico/Monterrey
|
Junior Member |
![el_raymon%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
Hi
I'm try to print a report directly from Forms I mean when I excecute a report I need to it be printing. I use this lines:
ADD_PARAMETER(LIST_ID,'DESTYPE',TEXT_PARAMETER,'PRINTER');
ADD_PARAMETER(LIST_ID,'DESNAME',TEXT_PARAMETER,'//INB/CARTA/'||V_FILENAME);
ADD_PARAMETER(LIST_ID,'DESFORMAT',TEXT_PARAMETER,'NO');
The error that ir shows is REP-0713 Invalid printer name..... specified by parameter DESNAME
Mi printer is on Forms server.
Please helpe.
Ramon.
|
|
|
|
|
Re: PRINTING DIRECTLY FROM THE FORM [message #208076 is a reply to message #207972] |
Fri, 08 December 2006 01:40 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kbhujendra@rediffmail.com
Messages: 26 Registered: June 2006 Location: Hyderabad,India
|
Junior Member |
![kbhujendra%40yahoo.com](/forum/theme/orafaq/images/yahoo.png) ![kbhujendra@gmail.com](/forum/theme/orafaq/images/google.png)
|
|
Hi,
From Metalink:
You can resolve the problem following these steps:
1 - In Reports Builder you must select Tools-> Parameter Form Builder;
2 - Here you must select Destype and Desname parameters;
3 - Run Report;
4 - When the Parameter Form page appears, you must set
Destination Type=Printer.
This will automatically change the Destination Name parameter
to the Printer Name.
Example : \\RM-PRINT\rm-floor3-04
5 - You must copy this name (CTRL+C);
6 - Then in Forms Builder you must go into trigger that fires the
report.
7 - Paste print name (CTRL+V) into DESNAME parameter.
In this example, the name 'rm-floor3-01' was wrong.
Use '\\RM-PRINT\rm-floor3-04' as shown below.
DECLARE
pl_id ParamList;
BEGIN
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'No');
Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER, 'Printer');
Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER,'\\RM-PRINT\rm-floor3-04');
run_product(REPORTS,'prova.rdf',SYNCHRONOUS,RUNTIME,FILE);
END;
Now you do not get error REP-713 because you have specified correct the printer name.
Thanks,
Bhujendra
|
|
|
|
|