|
|
|
Re: How I control the Print job from Oracle Report [Most most urgent] [message #138956 is a reply to message #138952] |
Mon, 26 September 2005 00:15 |
del_sandy
Messages: 22 Registered: February 2005 Location: Delhi
|
Junior Member |
|
|
Hi,
You can use this code........
declare
user varchar2(50);
plid paramlist;
Begin
user:=get_application_property(username);
plid :=create_parameter_list('Parmlist');
/* Either You can user Your User table or particular username to restrict Print permission, USERNAME1, USERNAME2 are the users to them you granted print report.*/
if user not in ('USERNAME1','USERNAME2',......) then
add_parameter('Parmlist','DISABLEPRINT',text_parameter,'YES');
end if;
..................
Your other parameters.
....................
run_product(reports,'ReportName',synchronous,runtime,filesystem,'Parmlist',null);
destroy_parameter_list('Parmlist');
end;
Chears
Sandy
|
|
|
|
Re: How I control the Print job from Oracle Report [Most most urgent] [message #493868 is a reply to message #138671] |
Thu, 10 February 2011 04:56 |
|
anwar0302
Messages: 8 Registered: February 2011 Location: Dhaka
|
Junior Member |
|
|
Hi,
Excellent solution, except a problem. User cannot control page numbers to print (i.e, page 1-10 bla bla bla). Or cannot choose printers other than default one. Basically, this solution sends the report to the printer assuming that user requests to print all pages to the default printer. I tried with the parameter PRINTJOB = YES to show the printjob dialog box. Can anyone help me on this?
-Anwar
|
|
|