Report Selection Formula Error with Crystal Reports 2008 SP3 Fix Pack 3.5

Hello,
My name is Carlos, and I would like to report a defect found in the Crystal Reports 2008 SP 3 Fix Pack 3.5 Runtime that is affecting the majority of our reports.  As well, I would like to ask if there is a simple workaround that does not involve updating hundreds of reports.
The issue is that the runtime engine incorrectly returns the report selection formula.  I have included sample code showing what I mean.
To reproduce;
1. Create a simple report that has a date range filter like: 
  ({Orders.Order_Date} >= {?START_DATE})  
  AND ({Orders.Order_Date} <= {?END_DATE})
2. Create a test app as follow that loads a report using the following code:
ReportDocument rpt = null;
try
  rpt = new ReportDocument();
  rpt.Load("TestReport.rpt");
  this.txtMessage.Text = string.Format(
    "ReportSelectionFormula:{0}{1}",
     Environment.NewLine,
  rpt.RecordSelectionFormula);
catch (Exception ex)     
  this.txtMessage.Text = ex.ToString();     
3.  Install Crystal Reports 2008 SP3 Fix Pack 3.5 Runtime [https://smpdl.sap-ag.de/~sapidp/012002523100006341772011E/cr2008fp35_redist.zip]..
4.  Execute the app.
At this stage, the screen shows
ReportSelectionFormula:
(   (  NOT  {Orders.Order_Date} >= {?START_DATE}  )   AND   (  NOT  {Orders.Order_Date} <= {?END_DATE}  )   ) 
The expected value is:
ReportSelectionFormula:
(   (  {Orders.Order_Date} >= {?START_DATE}  )   AND   (  {Orders.Order_Date} <= {?END_DATE}  )   ) 
If we were to repeat the same test above but use the Crystal Reports 2003 SP3 runtime (i.e. no Fix Pack), which can be dowloaded from [https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip], we would get the correct report selection formula. A side-effect for this incorrect report selection formula is a runtime exception complaining about an errorkind and a boolean being expected. 
Do you know if there is any workaround that I can apply in code, perhaps a different Fix Pack?  Is there a Fix Pack expected to be released soon?  It is not practical for us to update our reports and use a different style in the record selection formula because we have many such reports, and our customers probably have even more.
Thank you.
-Carlos.

Already a known issue, here's the [KB 1584095 - A boolean NOT is added at the beginning of a record selection formula when the report is loaded by the Crystal Reports .NET SDK |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533383334333033393335%7D.do]

Similar Messages

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Error With Crystal Reports On Windows Server 2012

    Hello,
    I have a VB.NET exe application created in Visual Studio 2010 that prints a crystal report directly to the printer.  On Windows Server 2008 it worked fine but it does not work on Windows Server 2012.  The report was originally created in Crystal Reports 2011.  I have read elsewhere that in order to run a Crystal Report on WS 2012 that it needs to be created using Crystal Reports for Visual Studio.  So I installed the developer version of Crystal Reports for Visual Studio (v. 13.0.8.1216).  I opened the report in Visual Studio and saved it.  I then installed the CRRuntime_64bit_13_0_8.msi on the WS 2012.  My vb.net exe has the CrystalDecisions assemblies shown below.  When I try to run the exe I get the error below.  Does anyone have any idea as to what I am doing wrong?  Thank you for your input.
    Unhandled Exception: System.TypeInitializationException: The type initializer for 'PrintWorkOrderAndDrawing.PrintWorkOrderAndDrawing' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.En
    gine.ReportDocument' threw an exception. ---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient,
    or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://
    www.businessobjects.com/support for more information.
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
       --- End of inner exception stack trace ---
       at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

    Hi Thomas
    First the info re.;
    I have read elsewhere that in order to run a Crystal Report on WS 2012 that it needs to be created using Crystal Reports for Visual Studio.
    is incorrect. CRVS will run all reports down to CR 9 without issues. And even reports created in older versions will, for the most part, work just fine.
    The error is rather strange as it normally indicates that an incorrect runtime has been installed. However in your case as you are using CR 13.0.8.1216 and  the 64bit_13_0_8.msi that does not look to be the case. I would like you to double check the CR references in the project. Say, crystaldecisions.crystalreports.engine. It should be version 13.0.2000.0.
    If that is confirmed, then we may be at the permissions mentioned in the error. And I'd use Process Monitor for that. Filter ProcMon for the app exe and run the app. Look at the logs for "Access denied" messages. In the log, look for CrystalDecisions.CrystalReports.Engine, see what the exe is doing with it. Where is it trying to load it from? Etc., etc.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Error with crystal report using SAP GUI

    Hi,
    While using crystal report in sap gui i get the following error. I already googled and only found one thing on this forum that talks about this and it was never solve. Can you please help me? Thank you
    Errors in Crystal Reports Installation(SupportsSAPQuery)
    Message no.ALVHT218
    Diagnosis:
    This function requires that Seagate Crystal Reports and the Functional Area drivers(InfosetDrivers) from Seagate software are installed.
    This sotware is either not available on your frontend or has been installed with errors
    System Response:
    The action has been terminated
    Once again
    thank you

    Hi
    Please check if you have installed all the SAP transports which are required for Crystal Reports to run based off SAP.
    Regards
    Sourashree

  • Error with Crystal Reports/VS2010

    I've got a user that is getting the following error when trying to view a report from a .NET desktop application...the type initializer for 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception
    I've installed the runtime engine from here Link: [http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp] and also tried adding the merge module into the setup package for the application.  I'm still seeing the same error.  What else needs to be installed for the reports to work with VS2010?
    Thanks

    Yes I used an MSI to install the application and merge module.
    This is on a 32bit Windows 7 machine.
    Tried compiling/installing the app as x86, .Net 3.5 and also 4.0
    The error shows when trying to view the report
    The app only uses 2 reports, but errors on both
    I cannot reproduce on my dev box, it works fine for me...typical
    I haven't been able to track down another 32 bit Win7 box to test with
    A little more history...
    This same msi was used to install the app on XP boxes and the app worked fine.  At the time, Beta 2 of the runtime files was all that was available so that's what I used. 
    One user has recently switched to Win7 and after installing the app, the initial error was that crpe32.dll could not be found, even though it was in the exact directory listed in the error message.  Using Add/Remove Programs would not uninstall the runtime, so we followed the steps listed in the last post here Link: [Uninstalling Crystal for vs2010 beta;.  That uninstalled the runtime so we could install the latest version of the runtime.  Now we get the error listed in my initial post.
    thanks!

  • Error with Crystal Reports XI R2 installation

    I was attempting to get support but no luck with over the phone support so maybe I can find some help here.
    "It apparently looks like there is a problem with the Crystal Server Installation itself in your system. The sample files that came with Crystal package itself is not showing up.
    See attached screen shot that shows the error when you are trying to run "SimplePreviewReport.asp" from IIS."
    Screenshot shows the web page will not open from http:
    localhost\CIReports\SimplePreviewReport.asp

    Hi Todd
    Can I assume that the product itself was installed correctly and you are having trouble running one of the SDK samples?  Which product have you installed.... Crystal Reports or Crystal Reports Server?  The sample page you are using indicates that you might be using the Report Design Component.... you will know this if you see the CrystalRuntime.Application object in your code.
    Your post indicates that you have installed Crystal Reports Server...... If this is the case, and you want to use the RDC, then you will also need to install Crystal Reports on the server as well, since the RDC get's its runtime from Crystal Reports.

  • Connection error with Crystal Report XI, VB6 and Sybase ASE15

    Hello !
    I have an error #4002 when I want to launch a report in VB6 with the ActiveX Crystal Report Viewer.
    I use Sybase ASE 15 with an ODBC link and the reports run stored procedures.
    This error seems to be an authentification error, but I don't know what parameters are missing or wrong...
    - My reports works well in the report designer.
    - The reports connected to a text file or an ADO recordset work in VB6.
    - The Verify Database works in design mode in VB6.
    - The problem is the same with tables, stored procedures, SQL and with or without parameters...
    - I tried to connect the report to a DataEnvironnment but I get the same error.
    The problem appears when I use the Crystal Wizard to create a form automatically AND when I create objects directly in code like :
        Dim crapp As CRAXDRT.Application
        Dim oReport As CRAXDRT.Report
        Set crapp = New CRAXDRT.Application
        Set oReport = crapp.OpenReport("C:\myreport.rpt")
        CRViewer.ReportSource = oReport
        CRViewer.viewReport
    Please help !

    Hello,
    I don't see any database logon code in what you posted.  You need to log onto the database at runtime since Crystal Reports will never store passwords.
    You can download and review the [Connection Properties|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00635998-751e-2b10-9cba-f50ee1e4ef81] document for more information on how to log onto your database at runtime.  This document was written for CR9, but it's the same for CR10, CR XI (v11.0), and CR XI R2 (v11.5).
    I hope this helps.
    Sincerely,
    Dan Kelleher

  • Error with crystal report in CMC

    Hi All,
    I develop crysta reports in ctrix environment..My report works well and good in crystal.But when i upload my report to CMC server..Right click on the report..go to DATABASE CONFIGURATION chooseORIGINAl DATABASE LOGON it works..But when i select CUSTOM DATABASE LOGOn and select use same database logon as report is run..IT doesn't work..IT shows
    Failed to retrieve data from the database
    DETAILS: Database vendor code :911
    If some body could help me it would be great..
    Thanks!

    Which version of CR Designer adn which version of BO Server do you use?
    What kind of data source do you retrieve data from?
    Regards,
    Stratos

  • The Report Server Failed Error in Crystal Report

    Dear All,
    I converted one PLD to Crystal Report using the Crystal Converter tool in SAP B1 8.81 Pl00. However, when I try to preview the Crystal Report, I am getting an error "The Report Server Failed" and then SAP hangs.
    Any known solution for this?
    Thanks and regards,
    Bharath S

    Dear Bharath,
    Your PL is too low. Upgrade to the latest PL will solve this problem.
    Thanks,
    Gordon

  • SAP Integration Kits 3.0 with Crystal Report 2008

    Hi,
    I have installed Intergration Kits 3.0 and Crystal Report 2008.
    I open the Crystal Report Designer from Start >Programs >Crystal Reports 2008 > Crystal Reports 2008.
    As mentioned by Ingo, I have ticked the MDX driver setting via SAP menu option.
    I clicked on u201CCreate New report from queryu201D
    Selected the fields from the Query and placed in the report.
    When I click on Preview button, I hits the following:
    Database Connector Error: u2018Function module u201C/CRYSTAL/MDX_GET_STREAM_INFOu201D not found.u2019
    Another problem that I encountered is when I can only enter UPPERCASE for my SAP BW User ID and Password in Crystal Report (when I try to logon into SAP BW in Crystal by clicking on the u201CCreate New report from queryu201D). So I need to change my password to Uppercase in BW.
    Have you encountered this before? I guess it is related to installation problem? Should I uninstall and reinstall again?
    Please advise, thank you.

    Hi,
    So I just need to send the neccessary files mentioned in transports_EN.txt to my basis guys with your instruction. Then I should be able to use the MDX driver in crystal reports already?
    Correct!
    the SAP BusinessObjects documentation (and Ingo) mentions that the transports have to be imported. HOW to do this is an SAP Basis administration related issue and is NOT described in the BusinessObjects documentation.
    As far as I know the appropriate files (there is a dependency related to the version and the type (BW or R/3) of your SAP backend system) described in  transports_EN.txt) have to be copied in the directory which is set to be the tranport queue for your SAP system and then the admin can use the STMS transaction to import them.
    NOTE: In a BW system you have to import BOTH the SAP Basis transports AND the SAP BW related transports. That means you have to import in total 9 transports = 18 files
    Regards,
    Stratos

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • An error in Crystal Reports Basic for Visual Studio 2008

    Greetings from Peru,
    We have a problem with one of the Crystal Reports products weu2019d like you to help us with. We work with Crystal Reports Basic for Visual Studio 2008.
    The error weu2019ve detected is in one of our systemu2019s reports; this report shows data inside frames. When the content to show is larger (in height) than the space left in the page, the container object of the report makes a line break keeping the title and the frame empty at the end of that page, but  the information is shown in the next page. What we need is that not empty frame is displayed.
    Weu2019ve tried to solve this problem by adjusting the report in different ways (by programming coding), but unfortunately this problem is related to how much data is displayed, because if this data fit in the space left in the page, the line break would not occurs and the data is shown at the end of the same page.
    We hope you can help us with this issue.  I look forward to your comments.

    All I can think of is trying CR 2008 (v.12.x). You can obtain an eval copy from here:
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    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]

  • Error in Crystal Reports 2008 Runtime Version = 12.2.3.467

    Dear Support Team
    <br />
    <br />
    I am making the setup for our application using InstallShield 2010.
    <br />
    <br />
    I recently updated the crystal reports 2008 runtime to version = 12.2.3.467.
    <br />
    <br />
    Based on this article
    <br />
    <br />
    <br />
    <br />
    Topic of the week (October 15, 2009)  
    <br />
    Date time field is blank when using ADO .NET dataset and Crystal Reports 2008, Service Pack 2.0
    <br />
    This is a new issue, very specific to CR 2008 and SP 2. Date time fields are stripped out of a report (or not
    <br />
    visible), if a report is consuming a .NET dataset which contains a date time field. A technical escalation has been
    <br />
    submitted and a work-around is detailed in note number 1392258
    <br />
    <br />
    <br />
    Since DateTime Column was not getting displayed in the deployment machine when running the report.
    <br />
    <br />
    So I downloaded the Crystal Report 2008 FP2.3 and merge module for the same and installed on my development machine
    <br />
    <br />
    where I am making the Setup.
    <br />
    <br />
    I am able to make the setup successfully without errors, but when I try to install the setup on the deployment machine I am getting
    <br />
    the errors as
    <br />
    <br />
    Error 1904.Module C:\Program Files\BusinessObjects\BusinessObjects Enterprise 12.0\win32_x86\CEReportSource.dll
    <br />
    failed to register
    <br />
    Same message pops up for N number of Crystal Dlls with message failed to register.
    <br />
    Even though as per article in your forums I am doing everything right.
    <br />
    I have correct Dll for VC++ 2005
    <br />u2022
    <br />
    Microsoft_VC80_ATL_x86.msm; version 8.0.50727.762
    <br />
    <br />
    u2022 Microsoft_VC80_CRT_x86.msm version 8.0.50727.762
    <br />
    <br />
    u2022 Microsoft_VC80_MFCLOC_x86.msm; version 8.0.50727.762
    <br />
    <br />
    u2022 Microsoft_VC80_MFC_x86.msm; version 8.0.50727.762
    <br />
    <br />
    u2022 Microsoft_VC80_OpenMP_x86.msm; version 8.0.50727.762 
    <br />
    <br />
    With exactly same versions as mentioned in the article.
    <br />
    <br />
    I followed the article in your forum
    <br />
    Building a deployment project with Crystal Reports 2008 (12.1.0.892) SP1
    <br />
    Posted on Mar. 09, 2009 08:22 AM in Business Objects
    <br />
    The same sort of errors is coming but I am doing everything right as per that article.
    <br />
    <br />
    To Inform you further before updating crystal reports 2008 runtime to version = 12.2.3.467.
    <br />
    <br />
    Everything was working fine, only problem was that Date Time column was not displaying at runtime on the deployment
    <br />
    <br />
    machine.
    <br />
    <br />
    With Regards
    <br />
    Arshad
    Edited by: arshhb on Dec 29, 2009 7:11 AM

    Dear Mr. Williams
    I dont think this is the issue related to MS Installer. Still based on your suggestion I downloaded the latest MS Installer from Microsoft Website and Installed on my setup machine and made the new setup with zero errors and warning.
    The deployment machine is having full rights and so there is no security issues  related to installation even though to clear the confusion I installed the setup on three other xp machines the result was same even after installing the latest MS installer on those machines as well.
    I wanrt to remind it again since I was facing the DATE TIME column Issue problem in reports on deployment machines so I updated the Crystal Reports TO CRFP 2.3 EXE AND MSM as mentioned in your forums regarding this known bug that if datetime column is getting from dataset then that column was not getting displayed.
    From that time onwards I am unable to install the setup on the deployment machines and I am getting errors unable to register errors crystal reports dlls.
    Apart from that I downloaded Crystal Reports 2008 Fix Pack 2.3 - Redist Install  (cr2008_fp23_redist.zip)  from the download page but i can't open it I am gettinig the error message doesnt appear to be a valid archive.
    Please help me and provide me some solution regardeing the issue I am stuck with.
    With Regards
    Arshad

  • Error exporting Crystal Report with VB Script

    I am working with Crystal Reports and attempting to export a .RPT file to a .PDF file using a VBScript called from InSQL. I can get the script to work properly if I require a user entry for file destination and name (.export true) but get the error message "Missing or out-of-date export dll" when I attempt to export the .RPT silently (.export false). The report also exports correctly when I manually initiate the export from within Crystal Report. Do you have any examples or solutions for this procedure? Thank you in advance.
    Here is my code for the VBScript export:
    dim rptfile, exportfile
    dim strDate
    dim objCRRpt
    dim objCRApp
    strDate = "_" & right("0" & month(now()),2) & "_" & right("0" & day(now()),2) & "_" & year(now())
    rptfile = UCase("C:\CompCriticalAlarmReport_Test\Report1.rpt")
    exportfile = "C:\CompCriticalAlarmReport_Test\criticalalarmreport" & strDate & ".PDF"
    Set objCRApp = CreateObject("CrystalRuntime.Application")
    set objCRRpt = objCRApp.openreport(rptfile)
    With objCRRpt
         With .exportoptions
         .formattype = CrEFTCrystalReport
         .diskfilename = exportfile
         .destinationtype = CrEDTDiskFile
         .usereportdateformat = true
         .usereportnumberformat = true
         End With
    .export (false)
    End With
    Set objCRApp = Nothing
    set objCRRpt = Nothing

    Ludek, I downloaded the VBA Sample application using the Microsoft Access Database and it is coming up with the same error as my VBScript for the PDF export. The error message for this application is "Run-time error '-2147190908 (80047784)': Failed to export the report."
    Private Sub Image47_Click() 'Exporting to PDF
    'Defines report's format type
    Me.crxReport.ExportOptions.FormatType = crEFTPortableDocFormat
    'Defines report's destination type
    Me.crxReport.ExportOptions.DestinationType = crEDTDiskFile
    'Defines report's file name
    Me.crxReport.ExportOptions.DiskFileName = "C:\MyPDFfile.pdf"
    'exports without calling the exporting dialog window
    Me.crxReport.Export False        <----ERROR OCCURS ON THIS LINE
    When I Run the application with Me.crxReport.Export True, the application executes without error and a popup appears prompting me to select the destination and format type. I need this to run automatically though without a user prompt.
    I have seen numerous topics regarding the exportmodeller.dll, crtslv.dll, and atl.dll files improperly registering or the incorrect versions causing export problems. Could this be causing problems with my export functions? Again, the reports export fine when I manually export them, I am just having a problem when I try to export automatically in any format (excel, text, pdf, rpt, etc...)
    atrain10

  • Print layout different with crystal report 2008 runtime

    Hi,
    I have reports which I print on a pre printed stationary. With Crystal report 11.5 run time it works fine.
    Now I am using Crystal Report 2008 run time and with this I found that layout on the print is different than the actual layout in the design.
    The print with CR 2008 run time is not exactly matching with the pre printed stationary. Whereas it is working fine with the 11.5 run time.
    Can anyone please help?
    Thanks,
    Abhijit Gorhe

    hi,
    you can verify the settings
    File -> Page Setup
    - Printer Options
    - Page Options
    - Margins
    Regards,
    Vamsee

Maybe you are looking for

  • Database adapter vs sql query

    Hi all, I am developing a small SOA application using a synch BPEL and Database adapter. But I have some problems getting the database results this is the query SELECT t1.Location, t1.ID, t2.quantity, t1.Name FROM tblitem t1 JOIN tblorderitem t2 ON (

  • Switching into a dialog window's buttons (ok/cancel) w/ a keybord shortcut

    how can i do this? on pc i'm used to press "tab" button to switch from the default option to the other. for example when selecting "shut down the computer" in the apple menu, it appears a dialog window saying "the computer will shut down in 1 m and .

  • How to erase selected cookies in Safari?

    Hello everyone, I found how to erase ALL cookies but not how too erase selected ones only. Is that possible? (iPad, latest iOs) Thanks

  • Downloaded PDF file

    Downloaded a pdf file and opened it. Then closed file and went to open again but I can't find it. Looked in "drive" not there. opened up download file but it tells me it opened and I can't open it again. This is for an HTC ONE mini I believe.

  • Adobe and Windows 8.1/IE 11

    Ever since the update my computer keeps asking me to update my adobe flash when playing games. I go to update and it tells me I have the latest version. Many times I get a video with a green screen in Facebook and have to close my browser and go back