Problem Printing Report From Oracle Alert
I cannot get it to print. I have an Oracle Alert which spawns a concurrent program which runs an Oracle Report. The report runs but does not print since there seems to be no way in which to pass the number of copies to Oracle Reports.
This is probably not a supported feature but does anyone know of a solution to this problem?
The environment is Oracle Applications 10.7SC.
Thanks, Larry
What forms-version do you use?
Similar Messages
-
How to print report From Oracle form directly on printer
Hi,
I am running report from form and output should be directly printed on printer.
Database: 11g Release2
Forms version : 11.1.2
Report version : 11.1.2
OS: windows 7 professional 32 Bit
Written following code:
declare
pl_id ParamList;
varno number;
x VARCHAR2(150);
y NUMBER;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
repid := FIND_REPORT_OBJECT('SALEBILLNEW'); -- report object name
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'copies',TEXT_PARAMETER,'1');
Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'Character');
Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'YES');
Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.coname);
Add_Parameter(pl_id,'VCOde',TEXT_PARAMETER,:block50.code);
Add_Parameter(pl_id,'VOURBILLNO',TEXT_PARAMETER,:BLOCK50.FROMBILL);
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'PRINTER') ;
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'OKI MICROLINE 391 TURBO (COPY1) on NILESH-PC') ; --default printer name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_inorasrv-pc_asinst_3');
y := LENGTH ('rep_adminserver_inorasrv-pc_asinst_3') + 2;
x := RUN_REPORT_OBJECT (repid, pl_id);
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/rwservlet/getjobid'||SUBSTR(x,y)||'?server=rep_adminserver_inorasrv-pc_asinst_3&userid=scott/tiger@winorasr');
Destroy_parameter_list('tmpdata');
end;
Above code giving following error:
REP-52251: The output of job ID 111 requested on Thu Oct 18 18:37:20 IST 2012 cannot be retrieved.<P>REP-51026: No output is generated for job 111.
Need help..
Thanks in advance.Hi,
I have change the printer name to OKI
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, '\\Nilesh-pc\OKI') ;
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'dflt.prt');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\Nilesh-pc\OKI');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
code which i have posted above unable to reach at default printer and gives following error
The report generated successfully but distribution to destinations failed.
Modified above code to take default printer from registry.
Added below code
rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'rtn_defaultPrinter') ;
It is giving error
CLIENT_WIN_API_ENVIRONMENT.Read_Registry must be declare.
Edited by: parapr on Oct 20, 2012 10:47 PM -
How to send a character mode report from Oracle Form 10g to a printer.
how sending a character mode report from Oracle 10g report to a printer.
I'm sending to a printer located in the network
i have theses parameter report
desformat = prtname
desname=??????
destype= ?????
mode=character
i would like to preview the report before to send to a printer
sldsACCOUNTING SYSTEM
2006-2007 From Date : 01-JUL-06
Printed On : Friday August 31 2007 11:13 AM To Date : 30-SEP-07
G A/C. Code 99-99-9999 Description: xxxxxxxxxxxxx H
-- DOC. # -- -- DATE -Chq/Slip# ---------- N A R R A T I O N -- -- DEBIT -- -- CREDIT -- -- BALANCE --
Opening Balance: -999,999,999.00 Cr.
G *** Total *** 0.00 0.00 -999,999,999.00H
================= ================= =================
when i run character mode report in browser then display this output properly
but sir problem is that when i print the report
G(use for bold)
is not working
means not print in bold format in printer
same character print G
do you have any idea when i print through browser to printer G for bold purpose its work to printer ? -
How to print BIP reports from Oracle Forms?
Hi all,
I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
Any idea/suggestions how we can go about this?
Thanks in advance for your time.
YahyaYahya,
via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
Regards
Rainer -
Problems in create graphical report from Oracle FSG xml output using BIP
We are trying to create graphical reports from Oracle Financial Statement Generator (FSG) xml output. I personally have extensive exposure working with XML (BI) Publisher but until recently I have never tried to use the BIP charting wizard to create graphical reports from FSG xml output out of EBS 11i/R12.
I created an SR with Oracle but they had to create an enhancement request for this issue. Does anyone know or have any idea on how we can accomplish this. The charting wizard pops up but the xml tags available do not make any sense.
If anybody has any idea please send me an email at [email protected]
Thanks,
LeoTry some thing like following
http://oraclebizint.wordpress.com/2008/03/10/oracle-bi-ee-101332-sending-reports-to-non-obi-users-delivery-manager-api-of-bi-publisher/ -
Print report from client machine without showing in screen
Hi guys!!
I m using (forms10g+ 10gAS). I want to Print report from client machine without showing in the screen/monitor.
Currently I m generating report in pdf format. From the pdf I m printing the document.
But my requirements is to print directly to the printer without showing preview
Thanks in advance
MokaremMaybe this will help:
http://forums.oracle.com/forums/thread.jspa?messageID=1209371�
Gary -
Calling Report From Oracle Forms
Hi
I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
Thanks.As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
Adi -
Dear Experts,
I would like to print directly from SAP through tcode CXR0 : system- list - print is grey.
I have checked if authorization is missing from nsu53 but my authorization already successful.
Please advice me how to print report from CXR0 and what is the authorization object?
Thank you.Hi,
your problem is not related to authorizations. The section System -> List works only if you have a list displayed on your screen.
Cheers -
Calling reports from oracle forms 9i
Hi
I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
declare
pl_id2 ParamList;
pl_name2 VARCHAR2(30) := 'liste2';
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
begin
pl_id2 := get_parameter_list(pl_name2);
if (Id_Null(pl_id2) )THEN
pl_id2 := Create_Parameter_List(pl_name2);
IF NOT Id_Null(pl_id2) THEN
add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
END IF;
end if;
IF NOT Id_Null(pl_id2) THEN
if(:mois is not null) then
v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
message(v_rep);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
ELSE
message('Error when running report');
END IF;
end;
the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
Rq: the report my_report is running very well in report builder.
does someone see where is the problem so can help me??
thanx.Hi,
This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
and check the detailed error occured.
This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
Regards,
-Bulent -
How to invoke crystal reports from Oracle forms 11g R2 along with passing p
How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
how to pass parameters to crystal report, please help.how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
cheers -
Call Oreacle report from Oracle form
Hi,
I need call a Oracle report from Oracle Form and found the the following procedure from this forum. I have 2 parameters 'start_date' and 'end_date' passing to called report. The following example just have onle parameter
'departmentno' passing. Is that mean I need to call add_parameter twice like the following?
add_parameter(plid, ''start_date' , TEXT_PARAMETER,:control.start_date);
add_parameter(plid, ''end_date' , TEXT_PARAMETER,:control.end_date);
In the following example:
add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
Thanks for clarification!!
Michael
PROCEDURE pass_parameter
IS
plid paramlist;
the_param varchar2(15) := 'tmpdata';
BEGIN
plid := get_parameter_list(the_param);
/* check if 'tmpdata' exists */
IF NOT id_null(plid) THEN
destroy_parameter_list(plid);
END IF;
/* if it does destroy it */
plid := create_parameter_list(the_param);
/* create it afresh */
add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
/* associate the param in the form with the param in the report */
add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
/* to suppress the parameter form displaying */
run_product(REPORTS, /* product name */
'formrep.rdf', /* Oracle Reports module */
SYNCHRONOUS, /* communication mode */
RUNTIME, /* execution mode */
FILESYSTEM, /* location of the Reports module */
plid, /* handle to the parameter list */
null
END;this my code on when_button_press
declare
rec_grp recordgroup;
col1 groupcolumn;
col2 groupcolumn;
col3 groupcolumn;
col4 groupcolumn;
col5 groupcolumn;
col6 groupcolumn;
col7 groupcolumn;
col8 groupcolumn;
pl_id paramlist;
i number :=1;
begin
rec_grp := find_group('emp_rec');
if not id_null(rec_grp) then
delete_group(rec_grp);
end if;
rec_grp := create_group('emp_rec');
col1 := add_group_column('emp_rec','Empno',CHAR_COLUMN,8);
col2 := add_group_column('emp_rec','Ename',CHAR_COLUMN,30);
col3 := add_group_column('emp_rec','job',CHAR_COLUMN,15);
col4 := add_group_column('emp_rec','Mgr',CHAR_COLUMN,8);
col5 := add_group_column('emp_rec','Hiredate',DATE_COLUMN,10);
col6 := add_group_column('emp_rec','Sal',CHAR_COLUMN,10);
col7 := add_group_column('emp_rec','comm',CHAR_COLUMN,10);
col8 := add_group_column('emp_rec','Deptno',CHAR_COLUMN,4);
loop
go_block('emp_r');
go_record(i);
add_group_row(rec_grp,i);
set_group_char_cell('emp_rec.empno',i,:emp_r.empno);
set_group_char_cell('emp_rec.ename',i,:emp_r.ename);
set_group_char_cell('emp_rec.job',i,:emp_r.job);
set_group_char_cell('emp_rec.mgr',i,:emp_r.mgr);
set_group_date_cell('emp_rec.Hiredate',i,:emp_r.Hiredate);
set_group_char_cell('emp_rec.sal',i,:emp_r.sal);
set_group_char_cell('emp_rec.comm',i,:emp_r.comm);
set_group_char_cell('emp_rec.deptno',i,:emp_r.deptno);
i := i + 1;
exit when :system.last_record='TRUE';
end loop;
pl_id := get_parameter_list('para1');
if not id_null(pl_id) then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list('para1');
add_parameter(pl_id,'Q_EMP',DATA_PARAMETER,'emp_rec');
add_parameter(pl_id,'paramform',text_parameter,'no');
run_product(REPORTS,'D:\ora\daily.RDF',synchronous,runtime,filesystem,pl_id,NULL);
end;
---------and this is my reprot query----------
select Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,Deptno
from emp
where empno=:emp_rec
order by empno;
but it show error at run time
Rep-1340
plzz solve this problem to me
fahad -
I have a small problem printing reports which exist of 1 page.
1st report is printed OK
2nd one is bad
3rd one is bad
4rd one is bad
5th is OK again... and so further.
When I choose a different printer, all prints are OK. When I print from another PC on the same printer, all prints are OK.
I assume some settings are disturbing the prints; can anyone suggest where I should take a look?are you using a dot matrix printer or a laser printer?
-
How to run a report from oracle 10g form in .csv format
dear all,
how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
i'm using
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
Please Help..i have already tried.
but the report show in htm or html format. that file will not save into csv. please help. -
Calling Report from Oracle form 11g
I am new to Forms 11g, trying to call report from Oracle forms 11g .
I want to call report from oracle forms, but its giving error.
Below is the code
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if
rep_status = 'FINISHED'
then
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
else
message ( 'error while running reports-object ' || error_text );
message ( ' ' );
clear_message;
end if;
end;
Above code giving following error :
Unable to connect to report server RptSvr
I think my report servername is wrong
Where to find report server name in 11g.
I am Using weblogic server, so can i give weblogic server name
Thanks in advance.
Edited by: parapr on Aug 17, 2012 1:52 AM
Edited by: parapr on Aug 17, 2012 3:21 AMHi,
You have to have the report server
a. Installed and configured
b. Running.
See
http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
Cheers, -
Calling a report from oracle form 10g
how to call a report from oracle form 10g
Please see the link:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
Maybe you are looking for
-
Hot deployment of Plugin on OIM cluster
Does someone know , how to deploy(re-register) the plugin(event Handler ,schedule Task etc.) on OIM cluster in real time. I have observed that when i do re-register the plugin(after any code changes etc.) from one of the nodes of the cluster, the n
-
My Zen 2gb wont even start up anymore
Hello,?When i inserted my Creative Zen 2GB and was planning on removing some music from it..i picked out the music folders and pressed <delete>, so it started deleting, but at some point it didn't go on for 0 minutes so i did?<ctrl> + <alt> + <delete
-
Server version: Windows server 2008 R2 Ent. Structure of DHCP scopes: Two DHCP server 50% to 50% all allocation for per scopes. Question: Sometimes the DHCP server allocate the IP address at the same time to the a strange MAC address per IP address
-
Problems of having a large table (columns and rows).
hi people, can anyone give a list of problems that i will be facing when i have a large table(columns/rows). My table generate 5 lakhs record in a year and it keeps growing. if the answers is labourous, pls give the link of the web-site where i can d
-
Hi all, Am horning my skill on linux box so could any one help me with the script for starting up 10g database and oem on linux. Am also aware you could bind the script to a user (oracle) so each time the user logs on after shutdown these services ar