its urgent pleaseeeeeeeee :( [message #134419] |
Wed, 24 August 2005 17:52 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ribha
Messages: 17 Registered: August 2005 Location: pakistan
|
Junior Member |
|
|
hello sir,
well i have some problems
i pass parameters from FORM to REPORT and i want to take print out of that REPORT without viewing it.
i have PRINT Button on Form and i write following code to pass parameter but i dont know how to send print command directly to Printer without viewing report
DECLARE
pid ParamList;
pname VARCHAR2(10):='tempdata';
BEGIN
pid :=Get_Parameter_List(pname);
if Id_null(pid) then
pid :=Create_Parameter_List(pname);
else
Destroy_Parameter_List(pid);
pid :=Create_Parameter_List(pname);
end if;
Add_Parameter(pid,'EMP_NUMBER',TEXT_PARAMETER,to_char(:empno));
Add_Parameter(pid,'EMP_NAME',TEXT_PARAMETER,:ename);
Add_Parameter(pid,'EMP_JOB',TEXT_PARAMETER,:job);
Add_Parameter(pid,'PARAMFORM',TEXT_PARAMETER,'NO');
RUN_Product(REPORTS,'C:\Documents and Settings\shumaila\My Documents\Report2',SYNCHRONOUS,RUNTIME,FILESYSTEM,pid,'NULL');
END;
and then print it and i m not using network printer i m using Local printer
please tell me how can i do it
|
|
|
|
Re: its urgent pleaseeeeeeeee :( [message #134474 is a reply to message #134429] |
Thu, 25 August 2005 02:28 ![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) |
ribha
Messages: 17 Registered: August 2005 Location: pakistan
|
Junior Member |
|
|
well it's not working can you tell me what is DESTYPE and DESNAME. and i use HP Deskjet 3740 Series so what i wrote Printer name field
Add_Parameter(pid, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
Add_Parameter(pid, 'DESNAME', TEXT_PARAMETER, 'HP3740');
can any one help me.....
|
|
|
|
|
|
|