Crystal report error when exporting to pdf

We have developed a crystal report that gives an error (doesnt say which one) when i try to export the report to pdf.
It says "exporting the report failed".
Version : 11.0.0.1282.
The viewer im talking about is the integrated preview of crystal reports.
Edited by: RolandWorms79 on Sep 2, 2009 10:42 PM

Seems to be working now.
I upgraded CR and adobe.
Edited by: RolandWorms79 on Sep 7, 2009 10:52 AM

Similar Messages

  • Get blank report in Crystal Report Viewer when exporting to PDF

    I have an application that creates reports in the CrystalReportViewer while at the same time exports a PDF of that report.  I am having a problem in which
    performing the export causes the report in the ReportViewer and the PDF report to be blank. They have the header and column labels but no data.  If I
    comment out the Me.Export(reportExportOptions) line at the end of the exportPDFReport method the report in the ReportViewer works fine, displaying
    data on the report. 
    I have other forms that perfrom this same type of function on different reports and work fine.  In fact they use the same exportPDFReport method.  This leads
    me to believe that a difference in the reports may be causing the problem.  But I can't figure out why.
    I am using .net 3.5 with Crystal Reports 2008 (CR2008) full edition in Visual Studio 2008.  Although the reports that work were probably created using
    VS 2005 and the VS 2005 edition of Crystal, and which have since been updated to CR2008.
    Has anyone else experienced this problem?  If so, how did you resolve it?
    Thanks for any help!
    Code is below
    Public Class frmAgedReceivables
      Inherits CustomWinControls.CustomForm
      Implements ICustomForm
    ... other properties and methods
    Public Sub CreateAgedPremiumsReport()
        Dim billingType As String = "Direct"
        Dim reportType As String = String.Empty
        Dim frmDateProcess As New frmEnterProcessMonth()
        frmDateProcess.pikMonthYear.Value = TurmsController.CodeEffectiveDate
        frmDateProcess.lblMessage.Text = "Enter Processing Date"
        If frmDateProcess.ShowDialog(Me) = Windows.Forms.DialogResult.Cancel Then
          Return
        End If
        Me.InForceStripStatusLabel1.Text = "Creating Report"
        Me.Refresh()
        Dim report As New AgedReceivablesReport()
        report.Load(report.ReportPathAndName)
        Me.Refresh()
        Dim reportParmsArrayList As ArrayList = New ArrayList()
        reportParmsArrayList.Add(report.ParameterFields.Item(0).Name)
        reportParmsArrayList.Add(frmDateProcess.pikMonthYear.Value)
        reportParmsArrayList.Add(report.ParameterFields.Item(1).Name)
        If AgencyBillRadioButton.Checked Then
          billingType = "Agency"
        End If
        reportParmsArrayList.Add(billingType)
        reportParmsArrayList.Add(report.ParameterFields.Item(2).Name)
        reportParmsArrayList.Add(TurmsController.CurrentUser.UserName.Value)
        reportParmsArrayList.Add(report.ParameterFields.Item(3).Name)
        If NAICCheckBox.Checked Then
          reportType = "NAIC"
        End If
        reportParmsArrayList.Add(reportType)
        Dim parms As String() = {frmDateProcess.pikMonthYear.Value, billingType, reportType}
        Me.InForceStripStatusLabel1.Text = "Loading Data"
        Me.Refresh()
        report.getData(parms)
        Dim reportParms() = reportParmsArrayList.ToArray
        report.loadParameters(reportParms)
        report.ExportFileName = Microsoft.VisualBasic.Format(frmDateProcess.pikMonthYear.Value, "yyyyMM") + report.GetType.Name
        report.ExportFormat = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
        report.exportPDFReport()
        Me.CrystalReportViewer1.ReportSource = report
      End Sub
    End Class  
    Public MustInherit Class TurmsReport
      Inherits CrystalDecisions.CrystalReports.Engine.ReportDocument
    Implements _ITurmsReport
    ... other properties and methods
        Public Sub exportPDFReport() Implements _ITurmsReport.exportPDFReport
          Dim reportExportOptions As New ExportOptions
          Dim reportDiskFileDestinationOptions As New DiskFileDestinationOptions
          Dim reportFormatTypeOptions As New PdfRtfWordFormatOptions
          reportDiskFileDestinationOptions.DiskFileName = getExportPathAndName(ExportType.PDF)
          If Me.UsePageRange _
          AndAlso Me.FirstPageNumber > 0 _
          AndAlso Me.LastPageNumber > 0 Then
            reportFormatTypeOptions.UsePageRange = True
            reportFormatTypeOptions.FirstPageNumber = Me.FirstPageNumber
            reportFormatTypeOptions.LastPageNumber = Me.LastPageNumber
          End If
          With reportExportOptions
            .ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
            .ExportFormatType = ExportFormatType.PortableDocFormat
            .ExportDestinationOptions = reportDiskFileDestinationOptions
            .ExportFormatOptions = reportFormatTypeOptions
          End With
          If Not System.IO.Directory.Exists(Me.ExportFilePath) Then
            System.IO.Directory.CreateDirectory(Me.ExportFilePath)
          End If
          Me.Export(reportExportOptions)
      End Sub
    End Class 

    Pretty much. 
    Seems I had at one time hard coded a record selection statement that I forgot to remove which caused the report to be blank.  That solved my problem, but there still seems to be an issue in that the Crystal Report Viewer performed differently when I tried to export to PDF (no records displayed) then when I didn't (records displayed).
    Chip

  • Error when exporting a pdf in SAP

    She sends me the error when exporting a pdf from the SAP system, this is the message:
    X Object reference not set to an instance of an object.
    I hope I can support.
    Annex image

    See your other thread.

  • Handling page breaks in Crystal Reports XI when exporting to Excel

    We generate reports in Crystal Reports and programmatically export them to Excel for our end users, so the user receives both an .rpt and .xls version.  We are upgrading from Crystal 8.5 to Crystal XI and have found with some of our reports that the page breaks in Excel are different in Crystal XI than in 8.5.  The first page will fill to the end and then the next page will contain a few lines of data, the next will be full and the next will contains a few lines.  Viewing the Excel page breaks, there are soft breaks before the short pages and hard breaks before the long pages.  It's as if there is too much data defined for each page so it spills onto the next page before creating another hard page break.  In Crystal 8.5, the paging was continuous as expected.  Is there any way to fix this in Crystal XI?

    Please note, this forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
    As the issue you are encountering is in the CR designer, please post your query to the Crystal Reports Design forum at:
    SAP Crystal Reports
    I'd also suggest adding more detail to your query; version of Crystal Reports used, is this an upgrade issue, new report issue, etc., etc.
    Thank you for your understanding,
    Ludek

  • Error when exporting to pdf using Infoview.

    Hi,
    If I preview one of our reports (built in CRXI) in the CMC for CR server and then attempt to export the output to a PDF after waiting for a few mins I get the error:
    Error
    Your request could not be completed because a failure occurred while the report was being processed. Please contact your system administrator. 
    The report has 6 supreports each that take 2 parameters. Previously we have had problems with this report when trying to change the database connections for the subreports (we were getting a 'Missing prompting units' error until we started making the database connection change in CRXI, running from CRXI not the CMC and then saving the file to the repository once it had run successfully with the new connection settings).
    All our other reports preview fine, they do not generally use sub-reports or multiple parameters though.
    Thanks for your help.

    There's so many variables for each Enterprise action, even with an effort to improve these over the years, the Enterprise error messages are usually so vague you have to trace to really identify the issue.
    Exporting directly from Crystal Reports is a good start.
    Sometimes it's just a matter of the report has streamed the 1st/beginning pages to you, but it is still processing in the background when the export to pdf is executed. Since the report is not complete, it fails. Try scheduling it directly to pdf to eliminate this possibility.
    Else you will have to trace the Page Server or RAS to get more info.

  • Crystal Report: Error while Export to Excel

    We are using combination of Crystal Report 10 With
    J2EE, Below source code is working fine While
    exporting to PDF, MSWord, RTF format.
    if(selectedFormat.equals("MSWORD"))
    exportOptions.setExportFormatType(ReportExportFormat.MSWord);
    if(iPageFrom>0 && iPageTo>0)
    RTFWordExportFormatOptions RTFExpOpts=new
    RTFWordExportFormatOptions();
    RTFExpOpts.setStartPageNumber(iPageFrom);
    RTFExpOpts.setEndPageNumber(iPageTo);
    exportOptions.setFormatOptions(RTFExpOpts);
    But am getting following error while exporting report
    to Excel
    com.crystaldecisions.report.web.viewer.ReportExportControl
    Invalid post back event : {0}
    We would like to know, Is SDK feasible for exporting
    to excel or not ?
    If yes! then Please suggest us for same.
    Thanks In advance :)

    I will make sure that I am on the latest patch ie SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    You can find the rumtimes here:
    MSI:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    MSM:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    ClickOnce
    https://smpdl.sap-ag.de/~sapidp/012002523100008782442011E/cr2008sp4_clickonce.zip
    Recompile the app and then deploy.
    What is the .NET Framework used by the application?
    Method of deployment?
    OS where app is deployed, x86 or x64?
    Are you able to export the report from designer ie CR2008 Standalone?
    - Saurabh

  • Internal Error when Exporting to PDF

    Hello all,
    I have created a report in SSRS 2008. My report was running fine until I inserted an extra row. Once I would insert this row,(no matter where I insert it) whenever I try to view the print layout or export to a PDF I get the following error:
    "An internal error occured on the report server. See the error log for more details. (rsInternalError)"
    Checking the error log I found this:
    library!ReportServer_0-90!12f4!01/09/2015-07:46:21:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: ScalableList: Index -1 outside the allowed range [0::5], Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
    An internal error occurred on the report server. See the error log for more details.;
    I have researched a great deal to try to figure out what could be causing this problem. I found several threads that had a similar problem and their solution was to set all "Hide Duplicates" properties to "None." I have checked several
    times and my report has all it's "Hide Duplicates" properties set to "none."
    Does anyone have any idea what could be causing this error?
    Thanks,
    Sarah

    I found out what was causing the error in my report.
    When the original report was created, a parent group was created. When a parent group is created, SSRS automatically adds an extra column with whatever it’s child group was grouped by inside of it. When this column was created, instead of deleting the text
    inside the column or deleting the column, the column was made so small that you almost couldn’t tell it was there. I did not realize it was there until today. Since SSRS is pretty picky, it did not like that column.
    You could do 3 things to get rid of the error:
    Delete the column
    Delete the text inside of the column
    Expand the column so that the text inside it is visible
    I tested all 3 approaches by adding 25 extra rows after applying the solution and all would export to a PDF just fine.
    So basically if anyone out there happens to have the same issues I had, check and make sure you don't have any extra columns hiding anywhere. Hopefully this can help someone someday!
    -Sarah

  • Crystal Report XI R2 export to PDF

    Hi All
    I am working on Crystal Reports XI R2 version.
    CASE1:
    The report is working fine when report is ran in Infoview.When the same report is exported to PDF version
    then lot of empty spaces is being added in between every page.
    Can any one let me know the solution for this issue.
    Thanks
    bose

    Sastry
    Thank you.
    when i run the report from designer and export to pdf
    it works fine but the same gives lots of spaces when
    does the export from Infoview.
    Moreover will there be anything to do with ADOBE ACROBAT Version.
    Thanks
    bose

  • Crystal Reports 8.5 export to PDF problem

    Hi Guys,
    I have an application developed in VB6 using a crystal reports 8.5 version and I'm having some problems to export to PDF. If I see the data on the Crystal Reports 8.5 designer It will export just fine, but if I try to do the same thing it will export only some information to the pdf file.
    This problem is just happening on rpt with Image Object and I can't export the reports where image do not exist. This image is being loaded from an access 97 database. It is a 10 years old program.
    Hope to get this issue solved.
    Kind Regards,
    Manuel Rocha

    Hi Dear,
    Here I m also facing the similar problem with the crystal report 8.5 :
    Crystal Report (8.5) is not working on win7/windows 2008 64 bit system
    My application is a vb application and I am using Crystal report 8.5. It is working fine on 32 bit system and 64 bit system of Windows 2003 server. When I run the same application either on win7 64 bit or on 2008 64 bit, report does not open.
    I am using vb script to access the database.
    Part of the code written in the VB script file is as follows:
    Dim objrsRecordSet                 'As RecordSet
        Dim strSQL                         'As String
        '**** Open Database Connection using the parameters passed from the main program
        Set dbConnection = CreateObject("ADODB.Connection")
        dbConnection.ConnectionString = "Provider=SQLOLEDB;Server=" & mstrServer & ";uid=" & mstrUserName _
                                        & ";pwd=" & mstrPassword & ";Database=" & mstrDatabase & ";"
        dbConnection.Open
        dbConnection.CommandTimeout = 200
        dbConnection.Properties("Enable Fastload").Value = True
    Basically we have two visual basic projects developed in VB 6.0 language: let’s say 
      1. Diapp (we consume the report.dll in this application, in order to generating the reports)
      2. Adacrystalapp (which is used for making the report.dll)
    Diapp application generating the reports on windows-XP(32 bit machines) without any problems but when I run the same application on 64 bit machines(win7/Vista…etc) report is not generating.
    If I run the both applications (Diapp, Adacrystalapp) in debug mode then reports are generating on 64 bit machines (win7/vista) also without any problems.
    Please help me out with this issue, i will appreciate for your response.

  • Crystal Reports 8.5 Export to PDF

    Hi,
    I am using 8.5 SP 3, crystl32.ocx, VC++ 6.0.
    Here is the sample code:
    CCrystalCtrl     m_RPT;
    int iFileType=0;
        m_RPT.SetDestination(2);  //print directly to file
        m_RPT.SetPrintFileName("C:
    SAMPLE.PDF");
        m_RPT.SetPrintFileType(iFileType);
        m_RPT.PrintReport();
    iFileType is only valid from 0 to 17 where 17 is the MS WORD format.
    I can't get it export to PDF file.
    Edited by: Al Koh on Jan 18, 2009 8:39 AM

    Hello Al,
    The OCX (crystl32.ocx) is quite old, and was last updated in version 6.  The OCX does not support exporting to PDF in code.  You can only export from the preview window when viewing the Crystal Report.
    I found a Note that was migrated from an old Crystal Kbase article.  Here's the content of the Note:
    +++++++++++++++++++++
    Symptom
    An application uses the Crystal Reports ActiveX (OCX) control (crystl32.ocx) as the reporting development tool.
    Is it possible (through code) to export to Portable Document Format (PDF) when using the OCX?
    Resolution
    Exporting to PDF (through code) is not supported with the OCX because:
    · The OCX does not contain an export constant for PDF
    · The OCX has not been updated since Crystal Reports 6
    · Functionality to export to PDF was not fully supported until Crystal Reports 8.5
    ====================
    NOTE:
    You can export to PDF using the export button in the OCX preview window. The OCX preview window is able to detect and use the PDF export DLL (CRXF_PDF.dll).
    ====================
    +++++++++++++++++++++
    If you need to export to PDF in code you'll need to migrate to the Report Designer Component (RDC), which was available in CR 8.5.  You should note that the RDC itself has been retired with the release of CR2008 (v12).  If you migrate to the RDC with CR8.5 you won't be able to update your Crystal Reports past CR XI R2 (v11.5) if you migrate to the RDC.
    Sincerely,
    Dan Kelleher

  • Crystal Report Error when Viewing in VB6

    Post Author: aquiintac
    CA Forum: General
    I'm using crystal report and vb6. My first problem was how to change the data source location of the crystal report. I found away by using this: crxReport.Databases.SetDataSource rsReport
    but I'm having an exception report : "The exception unknown software exception (0xe0434f4d) occurred in the application at location 0x77e55e02"The report shows for some time but after opening several reports the error message occurs.This is my scenario:"I'm using a udl for my connection. I have two databases namely TK and TK_MCC. TK is for other company and TK_MCC is for the subsidiary company. I used TK database when I created the crystal report. I used the setdatasource to pass the recordset to change the datasource location of the crystal report. So even if they change the database TK to TK_MCC they can still access the report. But when I did the setdatasource there was an exception report. (The exception unknown software exception (0xe0434f4d) occurred in the application at location 0x77e55e02)"Before it was working fine when I don't have to change the database. But when I used crxReport.Database.SetDataSource rsReport this error happened.By the way, i tried it also in another computer (just installed the program) but the error message was different. The other error was error28 out of stack space and sometimes the program closes by itself.Can someone help me on this...Thank you very much.

    Seems to be working now.
    I upgraded CR and adobe.
    Edited by: RolandWorms79 on Sep 7, 2009 10:52 AM

  • Crystal Reports error when saving report in BW

    Hello,
    I have "Error code 120 is sent by server" message when I try to save my report in BW via Crystal Reports v10 !!!
    Thanks for your help
    Burak

    You need to update the "Object Changeability" in BW for Crystal report objects.
    to do this:
    1.  run transaction /nRSA1
    2.  Select the transport connection tab
    3.  click the "Object Changeability" button
    4.  Select the "Crystal Report" line item
    5.  right click and select "Everything changeable"
    6.  Exit transaction

  • Page Number Error when export to PDF

    I am getting an error on page numbers for a book file when I export to PDF. The page numbers are set in the master pages and when I export each chapter individually the page number show fine. When I export the entire book, then some of the page numbers repeat. The pages are the right pages, but the numbers change incorrectly. For instance, the sequence goes, 58, 59, 58, 61 and 72, 73, 72, 73, 76.
    I've updated to the latest InDesign (7.5.2) and have tried multiple PDF export options (High Print, Press, PDF/X, etc) and nothing fixes it.
    Any suggestions?
    thanks

    This is a known (and fairly catastrophic) problem in CS5.5.
    Some people have found exporting the individual INDD files to IDML, resaving them as INDD files (don't overwrite your originals!! Make a backup first!), and recreating the book works...for a while.
    You could revert to CS5.0 if you have a license for it.
    CS6 is on the horizon and should fix this bug.
    Hopefully there'll be a CS5.5 maintenance update to do so as well.
    Sorry I don't have a better suggestion.

  • Crystal Report errors when installing visual studio 2010 app

    I'm trying to install a Visual Studio 2010 application on two client's machines and I get a different error on each one.  Both errors point to Crystal Reports.
    I have a feeling that I'm supposed to install something on the client's machines but I'm not sure what.
    The first client's error says that CrystalDecisions.Windows.Form Version 13.0.2000.0 cannot be loaded.
    The second client's error says that FlashControlV71. Version 1.0.3187.32366 needs to be installed in the GAC.
    What am I supposed to install on the client's machines?  Or if that's not the problem, what is causing the errors?
    This is my first visual studio app so I'm a complete newbie.
    Thanks for any help or advice.

    Thanks for your reply.  I installed the runtime (x64) and am now getting a new error on the first client's machine.  I think it's telling me that I installed the wrong version of the runtime.  The client is running x64t Win 7 so I chose the x64 runtime to install. 
    System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.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()
       at IM_CMETracking.ReportViewer.CrystalReportViewer1_Load(Object sender, EventArgs e)
       at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
       at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    The second client is running XP.  The error I'm getting on their machine is this:
         CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException:    Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
    Thank you for your help.

  • Fireworks CS4 internal error when export to PDF

    Trying to export a PDF from a layout gets an internal error
    message with Fireworks CS4. The layout involves a master page plus
    5 pages with a few PSD images imported. To test to see if it was
    something to do with the specific file, I tried another simple
    single page png which initially exported but then started to fail
    as well. Regular export to CSS, etc. seems to be fine. My OS is
    Vista Business.
    I've tried googling for a solution but have only found topics
    around certain fonts causing start up failures.
    Any ideas?
    Thanks.

    quote:
    Originally posted by:
    tjodoin
    After some debugging, I discovered that if all text is
    removed, the project exports to PDF without issue so this looks
    like a font issue similar to the other threads covering program
    launch problems. I haven't installed any fonts outside of what come
    with the system or Web Premium CS4.
    Is there a list available that identifies fonts required by
    Vista?
    Here you are:
    The
    big font list in Windows

Maybe you are looking for