Printing Crystal Reports from UDO form
I want to open a Crystal report from an addon. I've already found [the following thread|http://forums.sdn.sap.com/thread.jspa?threadID=2039424&start=0&tstart=0] and the [mentioned blog post|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/26720], and applied the solutions given there, but setting the parameters still does not work.
The report is opened, but the report gives me the message "Input string was not in a correct format", and asks for the parameter. When I enter the parameter, the report shows correctly.
My form is an UDO form loaded from XML, ObjectType set to my UDO. According to the latest answers, this ObjectType setting is the problem.
My code is the following:
Setting the form (the report is already imported into SAP, its DocCode is RCRI0002):
AddOn.Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SetPrinter);
SAPbobsCOM.ReportTypesService rptTypeService = (SAPbobsCOM.ReportTypesService)
SAPbobsCOM.ReportTypeParams rptParams = (SAPbobsCOM.ReportTypeParams)
rptParams.TypeCode = "RCRI";
SAPbobsCOM.ReportType updateType = rptTypeService.GetReportType(rptParams);
updateType.DefaultReportLayout = "RCRI0002";
SboForm.ReportType = "RCRI";
the eventlistener function:
public void SetPrinter(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
BubbleEvent = true;
if (eventInfo.ReportTemplate == "RCRI" && eventInfo.ReportCode == "RCRI0002")
eventInfo.LayoutKey = "21"; //Set the key of the layout - hardcoded for testing
I work on version 8.81 PL08
Has anyone found a solution? Is there a solution on higher patch?
OK, so we returned to this problem, and now I managed to make it work on 8.82 PL11. And now I can't remember anymore how I tried it back then. Maybe I did not use the [email protected] parameter in the Crystal report.
November 30, -0001
View Thread Other 2 Replies on scn.sap.com
Anyhow, it looks like it works now.
Dear Experts, I want to open a Crystal report from an addon. I've already found [the following thread|http://forums.sdn.sap.com/thread.jspa?threadID=2039424&start=0&tstart=0] and the [mentioned blog post|http://www.sdn.sap.com/irj/scn/weblogs?blog
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 y
Hi everyone, I am trying to call a crystal report from Oracle Forms 10G. I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file. Can someone please send me the code to do this and also th
Hi i'm trying to print crystal report layout from sap b1. when i preview the report as pdf file, i have the option to choose Fit in size option and then the layout print O.k with out any margins that been cut. The problem start when i'm trying to pri
Dear All, i want print crystal report without preview. when i click print button i want show printer list install in that computer. so user can choose which printer that use to print. I means like if we printing document from office, we can choose th
I have uploaded my form to the app server and compiled to Linux. I have copied my RDF file to the reports_path/demo directory. I can run the report via a link from our portal using the URL as follows: /reports/rwservlet?report=IndRpt.rdf&desformat=pd
Hi friends, I have activated 0CR_FIAA_M20_Q0007 Crystal Reports from Business Content Ext BW and I have configurated BW_Publisher services in BW but I do´t see reports in /CRYSTAL/RPTADMIN. I check RFC connection and it´s ok Here I can´t get a role a
Hi experts, How Can I call Crystal report from R3?Hi Bill, Can you please be specific and could you please provide the steps Thank youRead other 5 answers
Hi, We recently upgraded our systems (all client and server) to SP2.7 in order to solve a problem with saving Crystal Reports to BW. Now we are experiencing a new error when trying to publish a Crystal Report from BW to BOE (either all in one step f
I'm looking for step-by-step instructions on how to launch a Crystal Report from a Microsoft Access application (for a dummy like me). My Crystal Report uses a connection to the Access database as the data. I have Microsoft Access 2002 with Microsoft
Hi, I am trying to call crystal report from JSP using the JRC. But i am getting the Error as 'Logon Failed'. my web.xml entry is <env-entry> <env-entry-name>jdbc/Test</env-entry-name> <env-entry-value>!oracle.jdbc.driver.OracleDriv
Hi Everyone, I am facing an issue with opening the crystal report from SAP BW Role menu(SAP GUI). The issue is only with the BW Users who are connecting to the Client systems through VPN. All the settings are done perfectly in the Transaction /CRYS
Hi Everybody, I am trying to show a Crystal Report in the SAP enterprise Portal. The Report resides in BW, so I do not want to go through BOE or OpenDocument command. All threads I found on SDN relate to showing a crystal report from the BOE in the S
Hi, I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report. Maybe we nee
Dear Experts, I have one problem and I need to Delete all the Crystal PLD's and Crystal Reports from SAP B1. I can delete a PLD or Report using delete option from Report and layout manager or layout designer. But I need to select delete option for ea
Hi, I'm installing SAP Integration Kit XI 3.1 SP3 with IIS. I am able to publish reports from BW to BOE but not able view them from BW. I followed the documentation to use report/report_view.aspx to define the viewer application in Content Administ
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 tempora
Hi all, I recently had to print information of a UDO which I have on a new form. I searched through the forum and found different solutions, but none that used the new "integrated" crystal reports viewer. So I came up with this workaround, which
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 repor
Number Type field on crystal report printed in Exponential form when digits in this field are more than 17.Hi Jay, The same issue is addressed in the K-Base article c2005336. This is the limitation in Crystal, If you have more than 15 digits of numbe