CRVS2010 Beta - Reports with JDBC or JavaBean datasource

There is a reason why you can not  find crdb_jdbc.dll C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86...
1) No previous versions of CR that bundled with .NET (CR 10.2, CR 10.5) included crdb_jdbc.dll
2) CRVS2010 is essentially an equivalent to a bundle (more below)
3) You can not simply copy version 12 dll and hope it will work with another version of CR - this will certainly not work and I am actually surprised that the dll even loads... additionally, I suspect this may be breaking licensing agreements.
I will ask Program Management what their view is on  the driver with respect to CRVS2010 and post their reply here. But at this time, I suspect the answer will not be particularly positive...
Ludek

Hi Ludek,
Thanks for that. I was fairly sure it was never going to work (especially with the version differences), but just wanted to get the question asked.
I'll go back to my CR2008 environment and try to get it working on there - hopefully I'll have more luck.
At some point we will want to upgrade to VS2010 and, if that means we need to convert all the reports to ODBC/ADO .NET datasources, it's likely to be later rather than sooner!
Any more info you discover on this would be gratefully received.
Many thanks,
Darran Smith

Similar Messages

  • CRVS2010 Beta - Report with many tables

    Hi,
    I was developing my application first with a test Database with few tables. Now that I am changing to the actual database (with about 200 tables) I noticed that the ReportDocument takes a really long time to load when I tried to access the DataDefinition for the first time.
    Is there one way to avoid this?? The tables are all there because I need to have the option the select the table that I wanna use in the application, but after this I just use the table chosen and the linked tables in the Report.
    thanks

    OK where to start...
    First the act of adding 200 tables, and I assume none of them are linked is the first problem you are going to have. CR is a relational database reporting tool. Not linking tables generates multiple SELECT statements.
    If you only need one or two then use RAS to add the tables and then the fields, Bascially you are creating the report designer for your users. All of the user interface needs to be created by you.
    There may be one option that could help but what you are doing is likely never going to be fast....
    Open regedit32.exe and go to:
    HKEY_CURRENT_USER\Software\SAP BusinessObjects\Suite XI 4.0\Crystal Reports Designer Component\DatabaseOptions
    In there you'll find a key called - DoAutoSmartLinking
    Set the value to No
    What that key does is when a report is open CR tries to link all tables and all fields.
    Good luck
    Don

  • CRVS2010 Beta - Problems with printing Crystal Reports for VS 2010

    Good afternoon,
    We have the following problem, we used the version of Crystal Reports that came integrated with visual studio for several years. But we are migrating to the version of Visual Studio 2010, and we are using the version of Crystal Reports for this same version, running on screen is correct, and run all the reports, but in print there is a failure we could not solve. Our customers use printers dot matrix as the "Epson LX300 +", but when you print the report leaves the impression defective in the previous version of Visual Studio 2005 "The impression is quite clear, we have attempted to overcome this problem with the options of PrintMode with activex and pdf in the CrystalReportViewer, and RenderingDPI option with multiple values. Obviously when using other types of printers such as laser or inkjet printing is perfect, but due to cost our customers use the printers mentioned. The server where the application is Windows server 2008 and client computers are windows xp, windows 7, windows vista. As network hardware and printers are working properly, and from other applications and from the other server with versions of Crystal Reports If anyone knows how to solve this problem I would like to receive support and ideas.
    Thanks
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Oct 11, 2010 3:42 PM

    I have a question about printing reports. We are using VS2008 and the CR reportviewer with printmode = ActiveX. Many of our users absolutely hate the number of steps they must go through and the time it takes to print a Crystal Report when printmode = PDF. In our environment several times per day, we need to produce hard copies of reports for legal reasons. Making the users first render the report, then had it off to Adobe to print simply takes too much time which is why we are using the ActiveX print control.
    We recently started looking at VS2010 and discovered the issue with the unbundling of Crystal Reports. We have not downloaded CR for VS2010 yet.
    My question is this: for VS2010, what happened to the ActiveX print control? I read somewhere that it was going to become some WPF-type thing but there weren't many details about that. So when a user clicks on the print button in the Crystal Report Viewer intended for VS2010, what can they expect? Can they still print straight to a printer (is there something that gives them this capabitliy like the Active X print control did?), or has that capability been deprecated and they have to go through PDF? Thanks in advance for any information you can give me.

  • CRVS2010 Beta - Report Viewer Errors for Crystal Reports in VS 2010

    I have a project that was written in VS 2008 targeting the 3.5 framework which contains a ton of Crystal Reports.  I recieved my new license for VS 2010 and did the install along with the Crystal Reports for Visual Studio 2010 Beta 2.  I converted my project over successfully.  I am able to open up the reports on their own.  When I try to save them they want to be converted to the new format.  This also works fine.  My problem is the Crystal Reports Viewer.  I am not able to add any reports to the viewer without receiving error messages.  I have tried using the 10.5 and the latest version of the viewer, but receive errors everytime that I try to add a report to it.  I always recevie the following error:
    "Error invoking 'Choose a Crystal Report...'. Details: Invalid Report Source"
    I have also tried just creating a brand new report from the Crystal Report Viewer Tasks window.  When I do that I get this error:
    "Unable to find the report in the manifest resources. Please buld the project, and try again."  "Error invoking 'Create a New Crystal Report...'. Details: Unable to find the report in the mnifest resources. Please build the project, and try again."
    I have tried changed the framework target to 4.0, but this has not helped.  I have tried using the 14.0 versions of the references and the 10.5 versions.  I have searched all over the internet for a resolution, but can't seem to find one.  Any help would be greatly appreciated.

    I am having the same problem. You say make sure all of my assemblies are version 14. Three questions:
    1. Now that I have removed all of the old Crystal assemblies from my project, what are the assemblies that I need to add back?
    2. My VS 2010 "add references" popup shows me many crystal assembles (Crystal XI is also installed) which ones to I need to install now?
    3. If I don't know what they are, or where to find them, how do I determine their version?
    You solution reminds me of the old saying "If I had ham, I could make ham and eggs. If I had eggs!"
    More information please,
    J Rich
    Edited by: JosephRich on Nov 6, 2010 5:36 PM
    Edited by: JosephRich on Nov 6, 2010 5:39 PM

  • Report with JDBC connection does not work when they includes CommandTable

    I am trying to render using the new version of Crystal report java component - CRJ a report contains Data base Fileds of type Command Table (Row Set) which seems to be not working.
    when i use the previes version of crystal SDK it works fine.
    after deugging the Sample CrystalHelper.java file which contains the method .changeDatasource()
    i found that the DataBaseController.setLocation() method changes the CommandTable class to Table when using it on CommandTable instance and as result all the fields defined into that CommandTable were disappear.

    That appears to be a known issue:  Eclipse JRC: To change the JDBC connection at run time
    Sincerely,
    Ted Ueda

  • CRVS2010 Beta - Problems with CR for VS2010

    I just installed Crystal Reports for VS2010 beta2, but I can't create a new crystal report from the VS2010.
    It only displays a .mht file that informed "Crystal Reports for Visual Studio 2010 is a free download and so on..."
    I guess it is a matter of language: my SO and VS2010 versions are both in italian.
    Do you have any suggestion or should I wait november when the final CR version wil be available? (and this final version will have the Italian localization? )
    Thank you for the answer
    Carlos
    Edited by: Don Williams on Sep 24, 2010 6:30 AM

    Second, the solution is it's BETA and is ONLY supported for English only OS's, is what you are going to find. Only option is to wait until it goes GA and supports all languages. Or set your OS to English and then you can use it.
    If you had done a search and read the various posts before posting this same question again you would have got your answer right away.
    Thank you
    Don

  • CRVS2010 Beta - Help with parameters

    Could somone help:  I have created a CR which uses two static parameter fields for 'DateFrom' and 'DateTo' on the report.  The parameters are passed to an ASP.NET web page via a query string, and then I use Dim Fromdate As String = Request.QueryString("from") etc to send the parameter via code.  The problem I'm having is this.  The DateFrom and DateTo values are being sent to the report ( I simply use them in the report header to display the from and to dates selected by the user for the report ) and the report display's as expected.  But when you click 'Next' in the multipage report, the report prompts with a parameter popup box to reenter the dates.  Once you enter the values, you can page back and forth without any more interuptions.   Note:  I'm using Visual Studio 2010 with the latest install of crystal report's for VS 2010.
    Would anyone know what I have set wrong?  Here is the code that I use to populat the report.
    Dim reportpath As String = ""
            reportpath = Server.MapPath("myreport.rpt")
            Dim Fromdate As String = Request.QueryString("from")
            Dim Todate As String = Request.QueryString("to")
            Dim crParameterDiscreteValue As ParameterDiscreteValue
            Dim crParameterFieldDefinitions As ParameterFieldDefinitions
            Dim crParameterFieldLocation As ParameterFieldDefinition
            Dim crParameterValues As ParameterValues
            Try
                Dim conStr As String = System.Configuration.ConfigurationManager.AppSettings("dbconnect")
                Dim sqlConnection As New SqlConnection("server=myserver;uid=fakeuser;pwd=fakepass;database=fakedatabase")
                Dim Command As SqlCommand = New SqlCommand()
                Command.Connection = sqlConnection
                Command.CommandText = "sp_stored_proc"
                Command.CommandType = CommandType.StoredProcedure
                Dim Parameter1 As SqlParameter = New SqlParameter("@fromdate", CType(Fromdate, Date))
                Parameter1.Direction = ParameterDirection.Input
                Parameter1.DbType = DbType.Date
                Dim Parameter2 As SqlParameter = New SqlParameter("@todate", CType(Todate, Date))
                Parameter2.Direction = ParameterDirection.Input
                Parameter2.DbType = DbType.Date
                Command.Parameters.Add(Parameter1)
                Command.Parameters.Add(Parameter2)
                Dim Adapter As SqlDataAdapter = New SqlDataAdapter(Command)
                Dim ds As New ReportDs1
                Adapter.Fill(ds, "Report1")
                Dim cr As New ReportDocument
                cr.Load(reportpath)
                cr.SetDataSource(ds.Tables("Report1"))
                CrystalReportViewer1.ReportSource = cr
                crParameterFieldDefinitions = cr.DataDefinition.ParameterFields
                crParameterFieldLocation = crParameterFieldDefinitions.Item("@fromdate")
                crParameterValues = crParameterFieldLocation.CurrentValues
                crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
                crParameterDiscreteValue.Value = Fromdate
                crParameterValues.Add(crParameterDiscreteValue)
                crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
                crParameterFieldLocation = crParameterFieldDefinitions.Item("@todate")
                crParameterValues = crParameterFieldLocation.CurrentValues
                crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
                crParameterDiscreteValue.Value = Todate
                crParameterValues.Add(crParameterDiscreteValue)
                crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
    Edited by: Don Williams on Oct 8, 2010 11:50 AM

    For those interested, I figured out what was happening.  There is a new question  added to the parameter property's when adding/editing report parameters called "Show On Viewer Panel".  This needs to be set to "DO NOT SHOW" to disable the prompts for passed in via code.
    Dave.

  • CRVS2010 Beta - Report viewer design mode problems

    When editing an aspx page that hosts a CrystalReportViewer and CrystalReportSource control, the viewer appears momentarily, then disappears (return to the 'Loading ...') display.
    This process cycles indefinitely (without crashing). I cannot close the aspx page as it appears the foreground thread is blocked.
    If I attach a debugger to VS, and break on CLR exceptions, I get a few that appear related to monitoring folders.
    Any suggestions?

    Can you run [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx], see what it tells you?
    Ludek

  • Generating sub reports with XML Datasource in Jasper Report

    Hi ,
    I have a query related to report generation using Jasper Reports. I have managed to generate main report with XML as a datasource but am unable to do so for subreport. I tried serching through Google but in vain. If by chance I've missed out any of the links, i would be grateful for that. Sample code woukd really make my life better.
    Sorry in advance if i 've posted in wrong forum.(if it hurta anyone)

    Hello there,
    I am new to JasperReports and am having a similar problem. Were you able to find out how to do this. Any help is appreciated.
    Thanks in Advance
    Regards
    Sriram

  • CRVS2010 Beta - embedded report not showing

    I have a large number of reports which I have written for a client over the years with various versions of Crystal (starting with V5 I think).
    Currently they are running Crystal Enterprise X but have made the decision that they wish to shift to Visual Studio.
    I have been attempting to cut my teeth on re-writing reports in Visual studio and am struggling.  I then decided to port the existing crystal reports across from the Enterprise environment to Visual Studio.
    I have the CRVS2010 Beta installed with the 64-bit runtime on a Server 2008 platform.
    I have testing simpler Crystal Reports within Visual Studio (File | New | Project | Crystal Reports Application) and the simplest seem to publish with no difficulty.
    However I have just attempted to bring a report containing a sub-report and while the end result seemed to publish fine with no errors, only the main report output shows when the published Visual studio application is run.
    I haven't been able to find anything on this in the forum, so would greatly appreciate it if anyone can offer some assistance.
    Slightly off-topic, I have noted that when the Crystal Report is imported into the Visual Studio designer the database seems to get dropped.  I then have to reconnect via ODBC and re-select the tables after which things seem to run fine.  Is this to be expected ?
    Many thanks

    I have been checking further on this issue.
    If I take the report in a fully functional state saved out of Crystal X and import it into the Visual Studio 2010 environment, the functionality of the subreport appears compromised.
    Out of interest (and remembering that the report has been upgraded from Crystal X) I located the Crystal component in the Visual Studio project folder and opened it within Crystal X.  The subreport now no longer runs under the original Crystal X report writer.
    Something appears to have happened between Crystal X and CRVS2010 Beta.
    I'll have a look and see if I can identify what has happened to it.

  • CRVS2010 Beta - Hyperlinks don't work in textobjects

    I just wanted to report a bug that will hopefully get fixed in the November version of Crystal Reports for Visual Studio 2010.
    HyperLinks do not work!  they cut off any url with a querystring in it.
    Note: I can create one in five seconds in the versions of CR that comes with both Visual Studio 2005 and 2008. 
    Dave.
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Sep 22, 2010 4:13 PM

    I believe this is the same issue as in [CRVS2010 Beta - Problem with HyperLink and Parameters|CRVS2010 Beta - Problem with HyperLink and Parameters;. The issue is also reported in [this|Re: CRVS2010 Beta - Hyperlink translator dropping parm; thread.
    I am not able to reproduce the issue with URL to Yahoo, or Google, etc. If you can provide a publicly available URL that duplicates the issue, I will re-test.
    Ludek

  • How to create a report with survey data

    Hi All,
    I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
    Swapna

    Hi Swapna,
    According to your description, you want to create a report with survey data and display the summary.
    Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
    to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Which is better ODBC or JDBC

    dear all,
    after upgrading most of our servers from cf5 to CFMX7.1, it
    is now time to start working on some performance strategies for the
    upgrades. currently we went with the ODBC connector in CFMX for
    testing purposes. one of our server will occasionally lose the odbc
    and we have to reboot the server to get it rolling again.
    this leads up to the question of which is better for
    performace (speed, less process inducive) and realiability. ODBC or
    JDBC with CFMX7.1
    thanx
    sean

    I would concur ... as CF is java based, it will run better
    with JDBC rather than having to interpret a bridge between the 2.
    There are a couple of very remote instances where ODBC may be
    required, but you will have much better results with JDBC.

  • Changing JDBC Datasource Configuration for Report with Sub reports at once

    The Env  details are as follows
    CR Developer
    Version 14.0.2.364 RTM
    We are using JDBC Connection Datasource for our CR2011 report which contains 30+ sub reports. Each of the sub report uses a JDBC Datasource to connect to Postgres database and Since the JDBC connection string changes on each environment we need to edit each sub report every time we switch environments.
    Is there a easy way to accomplish this on all sub reports at one shot?
    I am aware that if we use ODBC connection it would be easy since we can just change the DSN config and it will start working. But we are not using ODBC connection since We are seeing that our report (with too many sub reports) crashes when we use ODBC driver for Postgres.
    Any help/suggestion would be appreciated.

    Hello,
    CR also has a fully support Java Reporting Engine. If you have Java developers available check out this forum:
    SAP Crystal Reports, version for Eclipse
    You can find more info and samples from here:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    And help.sap.com for the SDK reference material.
    Don

  • JRC bug: apostrophe in string parameter passed to Crystal Report with Command datasource to SQL Server

    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)

Maybe you are looking for

  • Error Message is not displayed by the API Move Order

    Hi All, Iam using the API "inv_move_order_pub.process_move_order" to create the move orders. For few records the API is returning the return_status as "E" however the msg_count is returned as "0" and there is no msg_data returned by the API for the r

  • File and print sharing on windows server 2008

    Hi, Now that microsoft have removed the apple compatability oprtion from server 2008 onwards. Does anyone know how to interate Macs onto them? Primarily this is for sharing files and printing services, but also vpn access etc. We are new to mac compu

  • Secret confirmation questions do not appear in dialogue box

    When trying to buy an app Apple asks for identity verification but when the Secret Questions Confirmation dialogue appears there are no questions?

  • Error calling background engine!!!

    Hi guys!! can you help me??? Status row for item 'WFEVDEME/PO345345', activity ID '228' This is the error when i4m launching the background engine!!! The Item Type WFEVDEME doesn4t exists.Why the sqlplus are returning this error???? cheers

  • How to dump a query on a XLS file?

    I´m working in a stored procedure on that i can send a dinamic query and it return me the result into a xls file. I´ve found the way to generate that xls file from Pl/sql, but now I need be able to assing each field of each row into his corresponding