Embedding Crystal Reports with parameters in web page
Hi,
I have created a sample report file and configured it with a parameter field. On embedding this report file in the web page, as expected I am prompted to enter value for the parameter. After entering value and clicking OK, CrystalReportViewerServlet delegates the call to the custom JDBC connector implementation which is the data provider. However, the web page doesnu2019t show the retrieved resultset but shows a page with some text like this:
{"update":{"children":[{"children":[
{"args":{"curPage":1,"numPages":"1"},"cons":"bobj.crv.newSelectPageControl"},{"args":{"searchText":""},"cons":"bobj.crv.newSearchTextControl"}
],"cons":"bobj.crv.newToolbar"},{"args":{"displayDrilldownTab":true,"initTabIdx":0},"children":[{"args":{"isMainReport":true,"label":"Main Report","viewStateId":"1"},"children":[{"args":{"content":"\r\n
On debugging I could see, that the parameter value from the prompt is correctly passed from the CrystalReportViewerServlet to the custom Connector (i.e., the sql query is updated with the parameter value) and the connector fetches the data also.
I also tried embedding another .rpt file with few parameter fields configured (where user input values are just passed to the details section of the report for display). However on running this web page also I get the same error.
Report files with no parameter fields configured are working fine when embedded in web page.
Any thoughts would be appreciated.
Regards,
Ria
I would take a look at running our simple [sample application |http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/307224d2-3d11-2c10-fe86-d87bab901bee&overridelayout=true]that views reports to see if you have the issue there.
Similar Messages
-
Crystal report with Parameters failed on Sybase
I have created the report in crystal report 2008 which accept the parameter. I have used the SybaseServer provider. The report worked fine in Crystal report designer. However when I run the same report through the .net application it fails saying "Logon Failed." I have set the connection like
foreach (CrystalDecisions.Shared.IConnectionInfo reportConnectionInfo in reportDocument.DataSourceConnections)
if (useTrustedConnection)
reportConnectionInfo.SetConnection(dbServerName, databaseName, true);
else
reportConnectionInfo.SetConnection(dbServerName, databaseName, userId, password);
The above code work for SQL Server but failed with Sybase.First make sure you have SP 2 for CR 2008;
https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
Next, I'm not sure if the connection you want to use is trusted or not. If it is, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b021e47e-be1d-2b10-c6b2-efa9db3abd6b] article. If it is not, see the code documented in the following resources to log on to the database;
sample apps;
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
(see vbnet_win_dbengine)
Article;
https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true
(the above applies to most versions of CR)
Also, see the following article for general help on db connectivity:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Edited by: Ludek Uher on Jan 4, 2010 6:57 AM -
Exporting Crystal Reports with embedded Xcelsius content to PDF
Hi,
I have a crystal report with an embedded xcelsius chart. I would like to schedule this report using Crystal Server 2008, sending it monthly as a PDF file attached to an email. But after exporting the report through Crystal Server, the xceslsius content is just blank. Shouldn't this be working?What is the version of Adobe Reader? Adobe Reader 9 should be there.Also check whether you have Flash Palyer/ flash Active X control installed.
If you can view the dashboard after exporting it to PPT,it means you have Flash Player installed. You need to try with Adobe Reader 9. -
Any tool to search Crystal Reports with embedded SQL
We have hundreds of Crystal Reports with embedded sql statements which have been developed over the years. Is there any tool which will allow us to scan all of the reports to see which ones might use a certain table, or is using a "group by" clause, or whatever ?
We'd prefer to not have to open each report to view the embedded sql.
Any thing that will extract the sql for us and dump it to a file ??
We have the reports as regular disk files, but they are also published to our Business Objects Enterprise XI R2 system (just an fyi in case there's an option on that side).Hi Wayne
There is a sample ras sdk code here that might be if use to you
Link: [https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/402f2b94-da66-2b10-c598-de0d4b6058dc] -
Connecting Crystal reports with dashboards and passing parameters
Hi ,
Can anyone have any document on Connecting Crystal reports with dashboards and passing parameters.
I would appreciate for this.
Thank You.Hi Ganesh,
You can refer the following links for connecting Crystal reports with dashboards:
Dashboard integration in Crystal Reports using flash variables | Clariba Blog
https://websmp102.sapag.de/~sapidp/011000358700001426732009E/Xcelsius_EmbeddingInCR2008.pdf
http://events.asug.com/2012BOUC/0315_Integrating_SAP_Dashboards_into_SAP_Crystal_Reports.pdf
Regards,
Renu -
Post Author: nl11087
CA Forum: JAVA
A single quote/apostrophe in string parameter passed to a Crystal Report with Command datasource connecting to a SQL Server database, using sqljdbc driver does not escape the special character correctly. When doing a preview in the Crystal Reports IDE it allows you to escape the input parameter as expected and work correctly, but through the JRC component it fails. For string parameters without special sql server characters I experience no problems at all. When replacing the Command with a direct table there is also no problem.
Reproduction:
1. create a database db1, create a table table1 with a String type column col1.
2. Create new report Report1.rpt, create a connection to above, Add Command using 'SELECT col1, col2, col3 FROM table1 WHERE col1 = '{?Par1}' . Add a parameter field Par1 : String
3. In your java stand alone application using JRC add the parameter Par1 with a value "Jon Doe's Value" containing a single apostrophe. Export to PDF. (I also tried MSWord and this failed too, similar behavior). Additionally, in another test try to replaceAll("'","''") to escape it, preventing the code to break, but now it does not retrieve the expected row anymore and you end up with an empty report.
Exception StackTrace:
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
Caused by: com.crystaldecisions.reports.formatter.formatter.c: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
... 17 more
Caused by: com.crystaldecisions.reports.dataengine.be: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.nr(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.bn(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.bp(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.aa(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
... 23 more
Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.n: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.reportdefinition.datainterface.p.a(Unknown Source)
... 35 more
Caused by: com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.queryengine.driverImpl.o.eC(Unknown Source)
at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.ap.ea(Unknown Source)
at com.crystaldecisions.reports.queryengine.ap.h(Unknown Source)
at com.crystaldecisions.reports.queryengine.ap.dV(Unknown Source)
at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.bc.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
at com.crystaldecisions.reports.queryengine.ae.cy(Unknown Source)
at com.crystaldecisions.reports.queryengine.ae.cz(Unknown Source)
at com.crystaldecisions.reports.queryengine.b1.bc(Unknown Source)
... 36 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 's'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement$StatementExecutionRequest.executeStatement(Unknown Source)
at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
... 48 more
- JRCAgent3 detected an exception: An error occured while exporting the report
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)Post Author: nl11087
CA Forum: JAVA
A single quote/apostrophe in string parameter passed to a Crystal Report with Command datasource connecting to a SQL Server database, using sqljdbc driver does not escape the special character correctly. When doing a preview in the Crystal Reports IDE it allows you to escape the input parameter as expected and work correctly, but through the JRC component it fails. For string parameters without special sql server characters I experience no problems at all. When replacing the Command with a direct table there is also no problem.
Reproduction:
1. create a database db1, create a table table1 with a String type column col1.
2. Create new report Report1.rpt, create a connection to above, Add Command using 'SELECT col1, col2, col3 FROM table1 WHERE col1 = '{?Par1}' . Add a parameter field Par1 : String
3. In your java stand alone application using JRC add the parameter Par1 with a value "Jon Doe's Value" containing a single apostrophe. Export to PDF. (I also tried MSWord and this failed too, similar behavior). Additionally, in another test try to replaceAll("'","''") to escape it, preventing the code to break, but now it does not retrieve the expected row anymore and you end up with an empty report.
Exception StackTrace:
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
Caused by: com.crystaldecisions.reports.formatter.formatter.c: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
... 17 more
Caused by: com.crystaldecisions.reports.dataengine.be: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.nr(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.bn(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.bp(Unknown Source)
at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.aa(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
... 23 more
Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.n: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.reportdefinition.datainterface.p.a(Unknown Source)
... 35 more
Caused by: com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: Incorrect syntax near 's'.
at com.crystaldecisions.reports.queryengine.driverImpl.o.eC(Unknown Source)
at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.ap.ea(Unknown Source)
at com.crystaldecisions.reports.queryengine.ap.h(Unknown Source)
at com.crystaldecisions.reports.queryengine.ap.dV(Unknown Source)
at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.bc.if(Unknown Source)
at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
at com.crystaldecisions.reports.queryengine.ae.cy(Unknown Source)
at com.crystaldecisions.reports.queryengine.ae.cz(Unknown Source)
at com.crystaldecisions.reports.queryengine.b1.bc(Unknown Source)
... 36 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 's'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement$StatementExecutionRequest.executeStatement(Unknown Source)
at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
... 48 more
- JRCAgent3 detected an exception: An error occured while exporting the report
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source) -
How to call PDF Report with parameters in jdeveloper 10.1.3
Hi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frankHi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frank -
Where is the parameter panel on the embedded Crystal Report preview in Visu
Where is the parameter panel on the embedded Crystal Report preview in Visual Studio?
I found a tweet on google about this.. but the link is invalid.. and I could not find the article on SDN.
KB #1486469 - Where is the parameter panel on the embedded Crystal Report preview in Visual Studio? http://tinyurl.com/22thlcg
How do I the show parameter dialog in either WPF or Winforms viewer of Visual Studio 2010.
Parameters are not even visible in the Parameters Side panel. It is empty too..
I see two classes ParameterPrompting and ParameterPrompt both, on initialization throws exception.. even to manually invoke them...
Is it permanently removed?Hello,
Seems like a reported Bug.
Please check:
Re: CRVS2010 - Hide Group Tree and Parameter Panel
A possible woraround but you need to change as per your need:
CRVS 2010 BETA - WPF Viewer - How to hide SidePanel?
Hope it helps.
Thanks. -
ADF how can i execute a query with parameters when the page renders
hi
i am using ADF web 11g
i need to execute a query with parameters when the page renders
thankshello,
I'm a fan of Java code, I really am.
But when you use ADF, you decided to move to a more declarative environment.
So why not do it declarative, the adf way?
In your pagedef insert a action binding.
This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
Create an invokeAction in your pagedef and set the condition.
This example refreshes(Action 2 is execute query) the data.
First the method binding:
<action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
<invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
-Anton
PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming. -
Does BOXI support crystal reports with parameter references in formulas?
I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
I can run the report successfully in CRXI Developer. The formulas use the correct values from the parameters entered during execution and everything looks good.
I then deploy the report to Business Objects Enterprise XI. I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
When I run the report using the Crystal Report Viewer, I get the following error message:
Error in File Forecasting.rpt:
Error in formula <Report Format>.
'if (not isNull({?FORMAT_ID} ) ) then
This field name is not known.
Details: errorKind
This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula. If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
Thanks,
Tim H.Hi,
In Crystal Reports under File -> Report Options >check convert Null Values to default > Verify on first refresh > Verify stored procedures on first refresh.
This corrected the issue by allowing the query engine time to locate those columns and map them to the query being sent by the report.
The convert null values was added because those field were being used in the record selection and grouping.
Regards,
Vinay -
Crystal Report with Classis ASP
I am new to both, ASP and Crystal Report, please keep that in mind while replying.
The goal is to use classic ASP to design a webpage through which invoke crystal report, pass parameters, run CR get report and display it in the PDF format.
So I downloaded trial version, for time being, and started learning ASP and CR. While browsing through this forum, I found a code which is supposed to help me in this. I downloaded and tweaked a little, but it is not working. The code is same copied in many forums, people claiming that it is working, but not for me.
The code is divided in various files. Here it goes.
SimpleReportViewer.asp - this is the file called first in browser
<%@ LANGUAGE="VBSCRIPT" %>
<%
reportname = "SimplePreviewReport.rpt"
%>
<!-- #include file="AlwaysRequiredSteps.asp" -->
<!-- #include file="MoreRequiredSteps.asp" -->
<!-- #include file="SmartViewerActiveX.asp" -->
Now here is the file - AlwaysRequiredSteps.asp
If Not IsObject (session("oApp")) Then
Set session("oApp") = Server.CreateObject("CrystalReports14.ObjectFactory.1")
End If
Path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(Path, 1) <> "\" And Len(Path) <> 0)
iLen = Len(Path) - 1
Path = Left(Path, iLen)
Wend
If IsObject(session("oRpt")) then
Set session("oRpt") = nothing
End if
On error resume next
Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1)
If Err.Number <> 0 Then
Response.Write "Error Occurred creating Report Object: " & Err.Description
Set Session("oRpt") = nothing
Set Session("oApp") = nothing
Session.Abandon
Response.End
End If
session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False
session("oRpt").DiscardSavedData
I am not typing in more code, as the error I am getting is in code above.
Now when I execute this code in IE, the error I am getting is
"Error Occurred creating Report Object: Object doesn't support this property or method"
Please help, any kind of help in getting this running will greatly appreciatedLet's start with:
"So I downloaded trial version,..."
What version of CR? As far as I know only CR 2008 is available at this time as a trial version download. And that is where your problems start.
In order for you to code Classic ASP with CR, you must use the Report Designer Component (RDC). RDC has been retired in CR 2008. Last version of CR to include the RDC was CR XI R2 (11.5). Patch support for CR XI R2 terminated about a year ago and any support terminates June 30 of this year. E.g.; RDC and thus Classic ASP is not the way to go.
I would highly recommend going to an SDK (CR SDK for .NET or Java) that will be supported for years to come - particularly if you are creating a brand new solution.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Unable to save the Crystal Report with Dynamic paramters in Enterprise
Hello,
We are not able to save our Crystal Report with dynamic parameters in Enterprise, Error message as follows :
"Failed to read data from report file C:\DOCUME1\...\crw{...}.rpt. Reason : Failed to read parameter object"
CR Developer Version 12.0.0.683
help us in this regard..
thanks,
Narasimha MurtyHello,
The error message occurs because the user or group who created the LOV does not have the appropriate rights in Business View Manager.
Try this hope its helps
To resolve this issue follow the steps,
1.Log on to Business View Manager as administrator.
2.Click View > Repository Explorer.
3.Right-click Dynamic Cascading Prompts. Click Edit Rights.
4.Click the appropriate user or group receiving the error.
5.Click the Granted option for the right to View, Edit & Set Security rights.
6.Click OK. Close Business View Manager.
The user or group is now able to save a report with dynamic parameters to Enterprise.
Regards,
Vinay -
Business Objects Crystal Reports with Clarity - anyone on here use is?
Hi all,
we are in the process of upgrading our Clarity system to version 8.1.1 - which has gone away from Actuate to support Crystal Reports instead.
Is anyone here using Crystal Reports with Actuate already?
I was looking into upgrading from CR XI to CR 2008 - but wondered if the extra functionality is worth the upgrade cost.
They say that users can interact with the data by sorting/filtering and re-formatting without re-querying the database - and there is a parameter panel that allows new parameters to be added to the 'saved' data..
i was wondering if those features are available when it is used with Clarity..
thanks in advance,
MattHi Matthew,
I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum:
That forum is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk -
Failed to Load database information - Crystal report with XML as datasource
Hello Friends:
I am getting the attached error when i try to load the Crystal Report with XML as data source.
I have designed the crystal report with the sample XML provided with XSD schema (PFA I have attached the XML and XSD). It is working as expected on design time. But it is failing when I load it from C# code.
Note: I have referred the following DLLs of version 13.0.2000.0 in my sample application.
CrystalDecisions.CrystalReports.Design.dll
CrystalDecisions.CrystalReports.Engine.dll
Please let me know what should be done in order to resolve this.
Thank you!All I know is that you are using 'SAP Crystal Reports, Developer Version for Visual Studio .NET". No idea what service pack or what version of .NET...
So. make sure you are on SP 9:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
Search for KBA 1525432 (search box is in top right corner) and follow the instructions there.
Remove your reference to CrystalDecisions.CrystalReports.Design.dll
Add the following references:
CrystalDecisions.Shared
CrystalDecisions.ReportSource
CrystalDecisions.Web (if web app)
CrystalDecisions.Windows (if win app)
I'd also recommend commenting out the export code for now; one step at a time. Get it to work in the viewer, then move on... No Big Bangs
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Crystal Reports dynamic parameters data source
Database: Sybase ASA 9
Crystal: Developer 11 SP4 , activex viewer
Application: Powerbuilder 11
I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
Following is in short the code I use:
FOR li_table = 1 TO iole_crx_report.database.tables.count
// get connection properties collection for this table
iole_crx_connection_info = iole_crx_report.database.tables[li_table].connectionproperties
iole_crx_connection_info.DeleteAll()
iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
iole_crx_connection_info.add("User ID",itrx_database_info.userid)
iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
iole_crx_connection_info.add("UseDSNProperties",TRUE)
iole_crx_connection_info.add("AllowCustomConnection", TRUE)
NEXT
iole_crx_Database.Verify()Hi, Johan;
There is no SDK option to change the datasource that the dynamic parameters are based on. Your only option would be to change the DSN itself to point to the new database. Or, not use dynamic parmeters.
Regards,
Jonathan
Maybe you are looking for
-
CS4 document window not showing
I have been running Indesign CS happily for the past year on a 13" macbook pro with Leopard. I just bought a brand new 15" macbook pro with Snow Leopard. Now if I open a file I need to minimize or expand the window to see a document. Also if I want t
-
How do I get HD to show up on desktop Macbook Air OS 10.9?
How do I get HD to show up on desktop Macbook Air OS 10.9?
-
Is Oracle9i free for development in any oraganization
Please tell me Is Oracle9i free for development in any oraganization
-
Iphoto won't open after laptop powered down (ran out of batteries)
I was transferring some photos from iphoto to facebook when my macbook pro ran out of charge. When I plugged it back on, iphoto would not open. Blank with spinning rainbow disc. I had to force quit several times. How do I back up my pics? Are they lo
-
Premiere Elements 9 Won't Let Me Export Video. What's Wrong?
So I have been trying to edit a recent Let's Play video for my Youtube channel, but there is a huge problem. The program won't let me export my video. I tried to export it as a .mpg; but it will never finish rendering. I've tried other formats and