Print BI Publisher Report from SIM
Hi.
Can I set some parameters in the report link .xdo in SIM for print a report?
I want to print a report in XSL-XML (from XSL template) format by default!! (and NOT in XML Data BI Publisher).
Like: /folder/name_report/name_report.xdo?_xt=XMLDIRECT&_xf=txml.
Thank you.
R.
I think you can create a default printer in BI that would print any report that is scheduled in BI. In windows you would be required to share the printer using IIS on linux you would be required to share the same using a CUPS server
Similar Messages
-
Printing BI Publisher report from OAF Page WITHOUT Preview or Save Option
I have a requirement to print a BI Publisher Report on the invoke of a Button from a OAF Page. I have followed the method suggested in the below link to integrate OAF and BI Publisher.-
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
In this scenario, I already developed Data Definition (XML) and Template (RTF) for the report and a self service page with 'Generate PDF' button. When the button is clicked the template is getting filled with the data from the database and displaying the PDF output. A dialog box with 'Open/Save/Cancel' appears before the PDF document is shown.
But my requirement is to avoid this dialog box and Save option so when the button is clicked the document has to be directly sent to the printer.
Is there anyway to achieve this? Please help as this is very urgent..
Thanks,
NarenNaveen,
You need to read the documentation here:
http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
All of the information you need is in these:
Administration and Developer's Guide
Report Designer's Guide
JavaDocs
With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
For an example that should be very close to what you need to do, see the comments section of this page:
http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
Find the comment titled: "Alternative: BlobDomain from data template"
The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
Kurz -
Printing BI Publisher report from OAF Page
We have a requirement to display a BI Publisher Report on the invoke of a Button/Link from a OAF Page. One way to achieve this without invoking a concurrent program is by following the method described in the link below :-
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
In the current scenario, we already have developed Data Definition (XML) and Template (RTF) for the report and is used too. We want to use the same Data Definition and Template but invoke from a OAF Page. Is there a way to achieve this?
In the method mentioned in the above link, we would have to create many VO's to generate the XML, since the XML needed in our case is a detailed one, we would need to create many VO's to achieve this. Hence looking out for a way in which we can invoke the Data Definition (XML) already registered in the BI Publisher.
Any inputs to achieve this would be helpful.
Regards
NaveenNaveen,
You need to read the documentation here:
http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
All of the information you need is in these:
Administration and Developer's Guide
Report Designer's Guide
JavaDocs
With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
For an example that should be very close to what you need to do, see the comments section of this page:
http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
Find the comment titled: "Alternative: BlobDomain from data template"
The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
Kurz -
Run BI Publisher report from an application directly to a printer.
Dear All,
I have an HTML page (with JavaScripts),
I want to Run BI Publisher report from this page directly to a printer. (and send parameters).
Can anyone help me, and send me Demo URL or Demo code to do this?
Regards,
TovitTovit
you are going to have build out a servlet that the page can call. The servlet will need to implement the supported web services to schedule a report. The schedule can include the delivery options ie to a printer. So you would create a schedule that runs the report immediately via the scheduler and then to the printer.
I dont currently have any servlet demos but the services are pretty well covered in the user docs.
check them out and give it a try, if you get stuck let me know
Tim -
Invoking XML Publisher Report from PL/SQL
Hi,
I have a PL/SQL procecedure which invokes the Concurrent Request for the XML Publisher Report. This one finishes with a warning and I get 'Unable to publish output' when I try to view the output. Exact Error: "Unable to find the published output for this request "
But if I run the same report using Concurrent program, the Report executes with no error. Also the desired output is coming. I am not sure where I am doing wrong in code.
My code which invokes the XML Publisher Report (from PL/SQL package)is something like this:
declare
x boolean;
l_no_of_copies varchar2(45);
l_printername varchar2(45);
l_print_style varchar2(45);
l_result boolean;
y number;
begin
x := fnd_request.add_layout (template_appl_name => 'XXTMG', template_code => 'XXT_5001_BOL_T', template_language => 'EN', template_territory => 'US', output_format => 'XML');
l_no_of_copies := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_NO_OF_COPIES');
l_printername := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_PRINTER');
l_print_style := NULL; --For setting the Printer Options
l_result := fnd_request.set_print_options (l_printername, l_print_style, l_no_of_copies, TRUE, 'N');
l_result := fnd_request.add_printer (l_printername, 0);
y := fnd_request.submit_request ('XXTMG', 'XXT_5001_BOL', '', TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'), FALSE, 'CH-120079') ;
end;
Please let me know where I might be going wrong
ThanksHi Sumit,
You can try with this code:
exec dbms_application_info.set_client_info(org_id)
exec fnd_global.APPS_INITIALIZE(user_id,resp_id,appl_id);
declare
x boolean;
l_no_of_copies varchar2(45);
l_printername varchar2(45);
l_print_style varchar2(45);
l_result boolean;
y number;
begin
x := fnd_request.add_layout ('XXTMG' --template_appl_name
,'XXT_5001_BOL_T' --template_code
,'en' --template_language
,'US' --template_territory
,'XML' --output_format
if (x=TRUE) then
y := fnd_request.submit_request (
'XXTMG' --application
,'XXT_5001_BOL' --program
,SYSDATE --start_time
,FALSE --sub_request
,'CH-120079' --argument1 (Program's Parameter)
if y>0 then
dbms_output.put_line('Request ID '||y);
end if;
end if; --if (x=TRUE) then
end;
Make sure that program has only one input parameter. If program has other parameters then you can pass those parameters like argument1, argument2... etc.
Now you can see this submited request in your application using your user id. If you able to see your request in concurrent request then you can add printer parameters in this programs.
You don't need to pass all 100 parameters.
I am executing many programs/reports using this code.
Thanks
Ravi
[email protected]
Message was edited by:
Ravi Tripathi -
Call Xml Publisher report from Jdeveloper
Hi,
I am first time integrating XML publisher with Jdevloper.
I need to call xml publisher report from Jdeveloper.
I followed all steps from anilpassi link for sample
its showing error while tring to open pdf file
Error:
Adobe Reader could not find 'EmpReport[1].pdf' because it is either not a supported file type or because the file has been damaged.
Please help ,i m stuvk because of this error.
below is the code
EmpCO :
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModuleImpl am =
(OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
am.invokeMethod("initEmpVO");
// am.invokeMethod("getEmpDataXML");
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModuleImpl am =
(OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
if ("GenerateReport".equals(pageContext.getParameter(EVENT_PARAM)))
System.out.println("event fired");
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary =
(DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response =
(HttpServletResponse)sessionDictionary.selectValue(null,
"HttpServletResponse");
try
System.out.println("inside try");
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=EmpReport.pdf";
response.setHeader("Content-Disposition", contentDisposition);
response.setContentType("application/pdf");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream =
new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
//Generate the PDF Report.
TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
APP_NAME, TEMPLATE_CODE,
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF, null,
pdfFile);
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
catch (IOException e) {
System.out.println("Exception1"+e);
} catch (SQLException e) {
System.out.println("Exception2"+e);
} catch (XDOException e) {
System.out.println("Exception3"+e);
pageContext.setDocumentRendered(false);
EmpAMImpl:
public void initEmpVO() {
EmpVOImpl vo = getEmpVO1();
if (vo == null) {
MessageToken errTokens[] =
{ new MessageToken("OBJECT_NAME", "EmpVO1") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
} else {
vo.executeQuery();
public XMLNode getEmpDataXML() {
OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
XMLNode xmlNode =
(XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
return xmlNode;
Please help !!Hi,
I tried the way suggested by Anil in the above link as well today, but still am getting the same error while openning the pdf .
Dont know why it shows error that either the file is not a supported file type or because the file is damaged.
Please suggest way to solve this error or some other way of calling xml report from OAF page.
Edited by: user13573749 on Apr 10, 2011 9:59 PM -
Submitting a XML Publisher Report from JSP page
Hello,
We have need to submit a XML Publisher report from Quoting/iStore module in Oracle Ebusiness. The out put should be viewable in PDF format and user should be able to print. can anyone pls help on how this can be achieved.
TIAReally appreciate your response. Can you pls give little more details.
1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
Appreciate any help -
Error publishing reports from BW
Hi,
I am facing some issues while publishing reports from BW system. I have taken care of all the settings mentioned in Integration Kit guide. We are using BOXI 3.1 SP3 OS:windows 2008 (64-bit)
The error that we are getting is:
"0000000001 An error occurred when retrieving the role metadata for YBW_BO_CONTENT_PUBLISHER. Returned with RFC code 18 and message: See RFC trace file or SAP system log for more details"
I have enabled the trace also, still not able to find the root cause.
Need help urgently. Thanks.
Amit TewatiaHi Startos,
I have matched the auth. as per the admin guide, everything is fine with the role. I have checked the trace file logs, part of which is below:
"Starting up callback server at 10.239.30.2 sapgw00 with prog-id SEGIDC8BBB5A3
GetRfcHandle() returned with handle 0
Connection cloning failed. Message: See RFC trace file or SAP system log for more details
ERROR: .\job_defs.cpp 52: l_rfcDownloadRoleMdata failed with return code l_rcRfc = 18 Exception:
Leaving job processor CPubJobGetRoleMetaData(YBW_BO_CONTENT_PUBLISHER)"
No idea why it calling this IP. This is not the IP of our BW server. please suggest where to check for this.
Regards,
Amit -
BW - EP Connection to Publish Reports From BW
We have implemented Enterprise Portal 6, and are running BW 3.5
I have been trying set up the connection between the 2 systems, so that I can publish reports from BW to EP
SSO between EP and BW is working - I can create a BW iview, or run a BW transaction without having to sign on again to the BW server.
I have checked the RFC connection from BW to EP using transaction SM59, and it all seems to be working fine.
When I am in the Web Application Designer in BW, there appears the option to Publish to Enterprise Portal 6.0. I can see the destination that I created to point to EP, but I can't see any roles/folders etc within the portal.
I have been through all of the documents that I have found in SAPHelp on configuring the connection, but have still had no luck.
Does anyone have any suggestions? Are there some permissions that I need to set up on either BW or EP before this will work?
Thanks in advance for any assistance.
Regards
RichardThanks very much for your assistance!!
Deepu:
Thanks for pointing me to the note - that looks like it could be helpful - I need to talk to our basis adminstrator about a couple of things, and he is away for a couple of weeks, so this problem will probably be on hold for a bit now.
Ashwin:
Thanks - I've checked the SSO to BW, and can see all of the BW reports in the BW repository in EP. My personal folders are all set up, but are empty.
I really appreciate your help on this guys. I'll try the changes in the OSS note (but won't be able to do this for a while), and will let you know if it is successful.
Regards
Richard
PS. I'm really sorry, but I don't seem to be able to allocate points for your answers - there are no radio buttons displaying on the screen for some reason - I'll see if I can contact SDN to get this sorted out. -
Failed to commit objects to server. Error while publishing reports from BW
Hi,
I am getting below error while publishing reports from BW to BO.
"0000000001 Unable to commit the changes to Enterprise. Reason: Failed to commit objects to server : #Duplicate object name in the same folder."
Anyone having any solution for this. Thanks in advance.Hi Amit
It would be great if you could add a little info about how you solved this issue. Others might run into similar situations - I just did:-(
Thank you:-) -
Unable to print xml publisher report in excel format in R12
Hi All,
We are unable to print xml publisher report in excel format in R12. We were able to see the excel output but it's printing junk characters while printing and it's printing without any issue with PDF format.
Please let me know how to fix this issue.
Thanks,
RajaHi Raja,
I presume you have gone through the debugging process of testing your template locally first to get the expected result.....
If yes, this note might probably be helpful "Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly (Doc ID 404512.1)"
Good Luck,
Lamine Balde -
Open BI Publisher Report From Standard Report Link
I am having problems opening a bi publisher report from a colomn link in a standard report.
My standard report is
select reg_id, frg_no
from my_tableThen in the REG_ID column, I place the following in the URL link.
javascript:popupURL('BI_URL.Guest/MERCURY/FORM73/FORM73/FORM73.xdo?_xpt=1&P_REG_ID=&#REG_ID.&_xt=FORM73_xf=rtf');Once I click on the link the BI Publisher report opens in a pop up window, but does not display any data, ie, it does not recognise #REG_ID.
Any help appreciated
GusSolved it
Gus -
How to generate XML Publisher report from PLSQL Stored Procedure in APPS
Hi,
I have concurrent program of type PLSQL Stored procedure.I need to generate XML Publisher report from the same.I have changed the output of the concurrent program as "XML" but when I tried running it,the XML tags are not generated.Due to this I am unable to create the template.Its a urgent issue.
Please help me out .
Thanks in advance.
KaveriHi Kaveri
Sadly there is nothing magic about that output field. The only program type that you can flip it to XML and then magically get XML is for Oracle Reports. For plsql you will need to recode the plsql to generate XML rather than text that you have now.
You have some options, best option first:
1. Move the sql to a data template - check the user guide and blog for help or
2. Use SQL XML or XMLGEN (not great for large datasets) or
3. Use dbms_output.put_line and write the XML file manually - not performant at all
Regards, Tim -
Displaying xml publisher report from adf page.
I am using jdev 10.1.3.3
I have an requirment of displaying an xml publisher report on click of command button.
any suggestion.how this can be achived.
according to my understanding.
if we create a folder in our web server which oc4j in our case.and we transfer the xml report through FTP in that folder.can we able to pick the report from that folder.
can we display or call that report.please let me know??
Is that possible.????????????
any help would be helpfullReally appreciate your response. Can you pls give little more details.
1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
Appreciate any help -
Deploying BI publisher report from OEM plug-in
Hi!
I am a bit confused about how to deploy & access BI publisher report from the plugin I develop
I've found only the http://docs.oracle.com/cd/E24628_01/doc.121/e25161/bi_pub.htm and am a bit confused
What I did:
1) Integrated BI publisher with OEM
2) Developed a BI publisher report
3) Downloaded 2 files : xdoz and xdmz (DataModel & report)
4) made folder structure
/bipublisherreports/
/EM_Datamodels
5)packed into jar
jar cf myjar.jar ./bipublisherreports
6)put jar into ../oms/reports/emreports
7)written report.xml (in ../oms/reports/) file:
<?xml version = '1.0' encoding = 'UTF-8' ?>
<BIPublisherReports
xmlns="http://<what ip is here???>/DataCenter/BIPublisherReport">
<ReportFile relativePath="emreports" fileName="myjar.jar"/>
</BIPublisherReports>
The plug-in does not pass validation...
cvc-elt.1: Cannot find the declaration of element 'BIPublisherReports'. for the MDS id report
Error is ungooglable =(
Can anybody help or point to some clear doc?cd /tmp
mkdir STAGE
cd STAGE
mkdir bipublisherreports
cd bipublisherreports
mkdir EM_Datamodels [notice the underscore]
mkdir "My Sample Report" [notice, the quotes are necessary since the directory name contains spaces]
The datamodel needs to go in the following directory:
-------------- "bipublisherreports/EM_Datamodels/My Datamodel.xdmz" [there is an underscore between EM & Datamodels]
The reports go in a report directory, for example:
--------------- "bipublisherreports/My Sample Report/My Report.xdoz" [use spaces here wherever you prefer]
Make sure your report refers to the datamodel in the right location. So, in BIP, when editing the report, use the above folder names, under the 'Enterprise Manager Cloud Control' shared folder.
For example, your BIP catalog will look like this:
Shared Folders
---Enterprise Manager Cloud Control
-------- EM_Datamodels
-------------- My Datamodel
-------- My Sample Report
-------------- My Report
You then create a jar file with this:
cd /tmp/STAGE
jar cvf myemreports.jar bipublisherreports
Now, you need to make your bip reports part of your plugin source code.
You put your report.xml in your sysman/metadata/bipublisherreport [note the singular] directory.
For example:
<BIPublisherReports
xmlns="http://www.oracle.com/DataCenter/BIPublisherReport">
<ReportFile relativePath="emreports" fileName="myemreports.jar"/>
</BIPublisherReports>
You then create a subdirectory, sysman/metadata/bipublisherreport/emreports
And you put your myemreportrs.jar file here.
You then rebuild your opar using standard EM procedures.
When a customer later on instals your plugin, the BIP reports that go with the plugin are installed into the EM database repository automatically.
they can simply do this to deploy the bi publisher reports from em to BIP at any point:
emcli deploy_bipublisher_reports -plugind="my.sample.plugin" -pluginversion ="12.1.0.3.0" [-force]
The -force operation overwrites the reports.
See the complete help text like this:
emcli help deploy_bipublisher_reprorts
If they have not yet configured BIP with the configureBIP script, this deploy step happens automatically when they run configureBIP.
Maybe you are looking for
-
Using ReportViewer Controls in a jsp application calling Reporting Services using Web Services
Hi, I am invoking RS web services to render reports, using Apache Axis to generate stub classes from Reporting Service WSDL. Please let me know if I can integrate Report Viewer control in the jsp where I am writing the report output. Else do I have
-
How to get a SQL-String from a (Prepared)Statement?
Hi, I have these three lines of code: PreparedStatement stmt = connection.prepareStatement("select * from mytable where username= ?"); stmt.setString(1, "user"); ResultSet rs = stmt.executeQuery(); Now, I want to log all SQL-Statements with log4J. lo
-
could you please put a fast shortcut in the toolbar to un/check "Allow pages to choose their own colors,..." from Options> Content> Colors>
-
Send status mail on every fish passess or fails
Hi All, I am using send mail option in FDM and it is working fine. However, i want mail to be sent on each workflow status. for instance - if import is sucessful, mail to be sent on this - if import fails, failure notification mail with error log to
-
MacBook throttle down from Bad Battery
Hi. I have a 2006 MacBook 2.0Ghz Core Duo. Is a nearly dead battery the same as running the computer without a battery at all on AC in regards to CPU throttle down? From what I have read, if only the AC is used and the battery is removed, the CPU wil