Export from Crystal Reports 2008 viewer fails if run on separate thread

I have a windows desktop application written in Visual Basic using Visual Studio 2008.  I have installed and am trying Crystal Reports 2008 to run a report.  Everything seems to work well except that when I preview a report (using the viewer control) and click the export button found in the upper left corner of that control, I get the following message:
Error 5: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made.  Ensure that your Main function has STAThreadAttribute marked on it.  This exception is only raised if a debugger is attached to the process.
I am a little confused on what to do exactly.  Is the problem because I am running in the Visual Studio 2008 IDE?  It says this exception is only raise if a debugger is attached to the process.  No, I tried running it outside the IDE.  The exception wasn't generated but the application hung when the button was clicked.
It says the current thread must be set to single thread apartment (STA) mode.  If the report is run on its own thread, is the "current" thread the thread the report is running on or is the main application's UI thread?  I don't think I want to set my main application to single thread apartment mode because it is a multi-threaded application (although I really don't know for sure because I am new to multi-threaded programming). 
My objective is to allow reports to run asynchronously so that the user can do other things while it is being generated.  Here is the code I use to do this:
    ' Previews the report using a new thread (asynchronously)
    Public Sub PreviewReportAsynch(ByVal sourceDatabase As clsMainApplicationDatabase)
        Dim backgroundProcess As System.ComponentModel.BackgroundWorker
        ' Start a new thread to run this report.
        backgroundProcess = New System.ComponentModel.BackgroundWorker
        Using (backgroundProcess)
            ' Wire the function we want to run to the 'do work' event.
            AddHandler backgroundProcess.DoWork, AddressOf PreviewReportAsynch_Start
            ' Kick off the report asynchronously and return control to the calling process
            backgroundProcess.RunWorkerAsync(sourceDatabase)
        End Using
    End Sub
    Private Sub PreviewReportAsynch_Start(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
        ' The source database needed to call preview report was passed as the only argument
        Call PreviewReport(CType(e.Argument, clsMainApplicationDatabase))
    End Sub
    ' Previews the report.  From the preview window, the user can print it.
    Public Function PreviewReport(ByVal sourceDatabase As clsMainApplicationDatabase) As FunctionEndedResult
        Dim errorBoxTitle As String
        Dim frmPreview As frmReportPreview
        ' Setup error handling
        errorBoxTitle = "Preview " & Name & " Report"
        PreviewReport = FunctionEndedResult.FAILURE
        On Error GoTo PreviewError
        ' Set up the crxReport object
        If InitializeReportProcess(sourceDatabase) <> FunctionEndedResult.SUCCESS Then
            GoTo PreviewExit
        End If
        ' Use the preview form to preview the report
        frmPreview = New frmReportPreview
        frmPreview.Report = crxReport
        frmPreview.ShowDialog()
        ' Save any settings that should persist from one run to the next
        Call SavePersistentSettings()
        ' If we got this far everything is OK.
        PreviewReport = FunctionEndedResult.SUCCESS
PreviewExit:
        ' Do any cleanup work
        Call CleanupReportProcess(sourceDatabase)
        Exit Function
PreviewError:
        ' Report error then exit gracefully
        ErrorBox(errorBoxTitle)
        Resume PreviewExit
    End Function
The variable crxReport is of type ReportDocument and the windows form called 'frmPreview' has only 1 control, the crystal reports viewer. 
The print button on the viewer works fine.  Just the export button is failing.  Any ideas?

Hi Trevor.
Thank you for the reply.  The report document is create on the main UI thread of my application.  The preview form is created and destroyed on the separate thread.  For reasons I won't get into, restructuring the code to move all the initialization stuff inside the preview form is not an option (OK, if you a really curious, I don't always preview a report, sometimes I print and/or export it directly which means the preview form isn't used).
What I learned through some other research is that there are some things (like COM calls and evidently some OLE automation stuff) that cannot be run on a thread that uses the MTA threading model.   The export button probably uses some of this technology, thus the message stating that an STA threading model is required.  I restructured the code as follows to accomodate this requirement.  Here is a sample:
' Previews the report using a new thread (asynchronously)
    Public Sub PreviewReportAsynch(ByVal sourceDatabase As clsMainApplicationDatabase)
        Dim staThread As System.Threading.Thread
        ' Start the preview report function on a new thread
        staThread = New System.Threading.Thread(AddressOf PreviewReportAsynchStep1)
        staThread.SetApartmentState(System.Threading.ApartmentState.MTA)
        staThread.Start(sourceDatabase)
    End Sub
    Private Sub PreviewReportAsynchStep1(ByVal sourceDatabase As Object)
        Dim staThread As System.Threading.Thread
        ' Initialize report preview.  This includes staging any data and configuring the
        ' crystal report document object for use by the crystal report viewer control.
        If InitializeReportProcess(DirectCast(sourceDatabase, clsMainApplicationDatabase)) = FunctionEndedResult.SUCCESS Then
            ' Show the report to the user.  This must be done on an STA thread so we will
            ' start another of that type.  See description of PreviewReportAsynchStep2()
            staThread = New System.Threading.Thread(AddressOf PreviewReportAsynchStep2)
            staThread.SetApartmentState(System.Threading.ApartmentState.STA)
            staThread.Start(mcrxReport)
            ' Wait for step 2 to finish.  This blocks the current thread, but this thread
            ' isn't the main UI thread and this thread has no UI anymore (the progress
            ' form was closed) so it won't matter that is it blocked.
            staThread.Join()
            ' Save any settings that should persist from one successful run to the next
            Call SavePersistentSettings()
        End If
        ' Release the crystal report
        Call CleanupReportProcess(DirectCast(sourceDatabase, clsMainApplicationDatabase))
    End Sub
    ' The preview form must be launched on a thread that use the single-threaded apartment (STA) model.
    ' Threads use the multi-threaded apartment (MTA) model by default.  This is necessary to make the
    ' export and print buttons on the preview form work.  They do not work when running on a
    ' thread using MTA.
    Public Sub PreviewReportAsynchStep2(ByVal crxInitializedReport As Object)
        Dim frmPreview As frmReportPreview
        ' Use the preview form to preview the report.  The preview form contains the crystal reports viewer control.
        frmPreview = New frmReportPreview
        frmPreview.Report = DirectCast(crxInitializedReport, ReportDocument)
        frmPreview.ShowDialog()
    End Sub
Thanks for your help!
Andy

Similar Messages

  • No Hyperlink in PDF after export from Crystal Reports 2008 SP2

    When I export a report from Crystal Reports 2008 Developer (as well as from the runtime) SP2 to PDF the Hyperlink to a file on hard disk is missing.

    Hi,
    Go through this LInk
    Re: No hyperlinks after exporting to pdf
    Regards,
    Salah

  • CR2008 Not enough memory while exporting reports from Crystal Reports 2008

    I have recently upgraded our Crystal Reports version from Crystal Reports Basic for Visual Studio 2008 to Crystal Reports 2008. After upgradation I am facing the problem "Memory full.OtherErrorFailed to export the report. Not enough memory for operation" when I am trying to export the report from Crystal Reports 2008 Report viewer, or directly from the code behind. The application is hosted application. The problem occurs in our production environment.
    Server details:
    OS: Windows 2003 Enterprise Edition R2 with SP2
    IIS: IIS 6
    .Net Framework: 3.5
    Application details:
    Hosted application using Crystal Reports 2008 SP 3
    Crystal Reports Viewer version: 12.0.2000.0
    The data binding of the report object is done through an ADODB dataset.
    Web.Config:
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
      <configSections>
        <sectionGroup name="businessObjects">
          <sectionGroup name="crystalReports">
            <section name="printControl" type="System.Configuration.NameValueSectionHandler" />
            <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
          </sectionGroup>
        </sectionGroup>
      </configSections>
      <businessObjects>
        <crystalReports>
          <printControl>
            <add key="url" value="http://myserver/mysite/PrintControl.cab" />
          </printControl>
          <crystalReportViewer>
            <add key="documentView" value="weblayout" />
          </crystalReportViewer>
        </crystalReports>
      </businessObjects>
      <appSettings>
        <add key="CrystalImageCleaner-AutoStart" value="true" />
        <add key="CrystalImageCleaner-Sleep" value="60000" />
        <add key="CrystalImageCleaner-Age" value="120000" />
      </appSettings>
      <system.web>
        <httpHandlers>
          <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
        </httpHandlers>
        <compilation debug="false">
          <assemblies>
            <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
            <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
            <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
          </assemblies>
      </system.web>
      <system.webServer>
         <handlers>
             <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" />
         </handlers>
      </system.webServer>
    </configuration>
    Sample Code:
    Report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    Report.Load(Server.MapPath(strReportPath));
    Report.SetDataSource(dsReport);
    Creportviewer.ReportSource = Report;
    For exporting the report to PDF
    string Filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache).ToString(), Guid.NewGuid().ToString() + ".pdf");
    Report.ExportToDisk(ExportFormatType.PortableDocFormat, Filename);
    Clean Up Code: (Page_UnLoad event)
    if (Report != null)
         Report.Close();
         Report.Dispose();
    Creportviewer.ReportSource = null;
    Creportviewer.Dispose();
    dsReport = null;
    GC.Collect();
    GC.WaitForPendingFinalizers();
    Can someone help me resolve the issue.

    The .rpt file size is 14MB with the Data Save option enabled, 12MB without Data Save.  Presumably the 12MB file size is because of the 24bit PNG we have as our background.
    The Designer executes the report in less than a second and we can scroll through all pages and see the image fields perfectly.
    When we Export to PDF, the Designer takes a long time, eventually gets to the 77%, the 7th record and returns "Export report failed" followed by "Memory full".  If we export only page 1 of the 3 pages, it also returns a Memory full error.  However, when the same report is run with only 1 page, that page exports to PDF but with a ridiculously large size and export time.
    The machine has 2GB of physical memory with an 8GB pagefile with Windows 2003 (latest everything).  The process runs up to about 1GB before reporting the memory full error.
    We've also tried a variety of other suggestions posted in the other thread with no success.
    We're happy to provide the RPT file to the Report Team to diagnose the problem.  Ultimately, we need to be able to produce a 15 page report with approximately 45 images.
    Our preferred scenario is fixing problem 2.  The CR Designer seems quite capable of rendering our report and printing it to our third party PDF printer in a timely manner with small size.  However, the API reports memory full.
    The API resides in a dedicated reporting web service with NO other code except for loading the report, setting parameters and printing.  When executing, it uses up to about 1.1GB before reporting the error.
    Are there any other suggestions for fixing what we have?  Are there known problems with large images in reports?  Do we need to lodge a formal support request?
    Regards,  Grant.
    PS.  Grr and my message formatting is lost when I edited this message!!!
    There is a 1500 character limit and then all formatting is removed to save space. Break you posts into separate entries.
    Edited by: grantph on Sep 30, 2009 2:49 AM

  • Bapi Function call from Crystal reports 2008. import parameters syntax.

    Dear,
    I have an issue with calling a function directly from Crystal reports (2008) in the R3 system.
    (if this belongs in another thread , please add the link if moved !)
    I try to get data through function "BAPI_CLASS_GET_CLASSIFICATIONS".
    Till now all possible input parameters have no data-result.
    I already read other threads stating that 'for example' the Language key needs to be provided in a single character. 'E' in stead of 'EN'.
    I also already created a Z-wrap-function that fills out all input parameters 'hardcoded'. This works.
    clearly there are som syntax changes in passing the values to R3 when called from Crystal Reports.
    Can someone state which syntax has to be followed for numeric fields, for datefields etc. (so when i make these dynamical, I know which syntax should be the outcome of the formula)
    in my function that doesn't work I use these selections:
    (this function is called in a standard report only calling this function)
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_ISO} = "E" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_INT} = "E" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSNUM} = "DSWTEST" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSTYPE} = "001" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_KEY_DATE} = Date (2011, 08, 05)
    I already tried other languages or the 'EN' as input.
    (I would like to know how the date is passed exaclty to R3.)
    The function is of course RFC enabled.
    when I call the my Z-function with predefined inputparameters in R3 it does give the wanted result.
    FUNCTION ZBAPI_CLASS_GET_CLASSIFICATION.
    ""Local Interface:
    *"  TABLES
    *"      OBJECT_CLASSIFICATION STRUCTURE  BAPI_OBJECT_VALUES
    *"      CLASS_OBJECTS STRUCTURE  BAPI_CLASS_OBJECTS
    data ZOBJECT_CLASSIFICATION type TABLE OF BAPI_OBJECT_VALUES.
    data ZCLASS_OBJECTS  type TABLE OF BAPI_CLASS_OBJECTS WITH HEADER LINE.
    ZCLASS_OBJECTS-OBJECT_KEY = '000000000000000085'.
    ZCLASS_OBJECTS-OBJECT_TYPE = 'MARA'.
    Append ZCLASS_OBJECTS.
    CALL FUNCTION 'BAPI_CLASS_GET_CLASSIFICATIONS'
      EXPORTING
        CLASSTYPE                    = '001'
        CLASSNUM                     = 'DSWTEST'
    *   KEY_DATE                     = SY-DATUM
    *   LANGU_ISO                    =
    *   LANGU_INT                    =
    *   CHARACTS_OF_CLASS_ONLY       =
    * IMPORTING
    *   RETURN                       =
      TABLES
        OBJECT_CLASSIFICATION        = ZOBJECT_CLASSIFICATION
        CLASS_OBJECTS                = ZCLASS_OBJECTS
    OBJECT_CLASSIFICATION[] = ZOBJECT_CLASSIFICATION[].
    ENDFUNCTION.
    please advise.
    once again if this should be moved to another forum , add the link please!

    Dear,
    I just debugged my Z-function, after adding all input parameters as in the standard BAPI function.
    All parameters seems to be passed correctly except from the table parameters from
    CLASS_OBJECTS
    So all I_parameters are passed :
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_INT} = "EN" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_ISO} = "EN" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_KEY_DATE} = Date (2011, 08, 05) and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSNUM} = "DSWTEST" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSTYPE} = "001" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_CHARACTS_OF_CLASS_ONLY.BAPIFLAG} = ""
    but the table parameters aren't coming through:
    {ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
    these are 'blanco' in the function.
    also after the function is executed and all data is retrieved, when passing the data back to Crystal reports, once again, the table result isn't passed to Crystal Reports.
    please advise

  • How to enhance the Excel export from Crystal Reports

    Hello,
    I am new in Crystal Reports and I wonder if it is possible to enhance the Excel export from Crystal Reports with post-processing that would be applied to the Excel exported file.
    By example, is it possible to freeze the window panes, so rows and columns are frozen in place on the screen?
    Is there any possibility to obtain the file exported to excel to work with.
    Or maybe there is some ways to parametrize the Excel export from Crystal Reports?
    Any suggestions are welcomed.

    If you are using Crystal Reports 2008 you can use the Report Application SDK that is now available.
    It has a object called PrintOutputController that has an export method that allows you to get access to the exported file before you send it to the user.
    Check the Developer library and the samples for details.
    <a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • Consuming a Web service from Crystal reports 2008 - Error

    Hi,
    I want to consume a web service from Crystal Reports 2008. I created a New Connection using "XML and Web Services" and given WSDL url as the Web Service location. Crystal Report is able to connect to the WSDL and is displaying the tags correctly. When dragging the output to "Selected Tables' section, I am getting the following error:
    "Invalid Argument Provided"
    Details: Cannot support ArrayType input parameters.
    Kindly help. Apparently this was a limitation in CR XI but does it still exist in CR 2008? Is there any patch available to resolve this issue?
    Thanks,
    Jaya
    Edited by: jayakvr on Feb 17, 2011 10:47 AM
    Edited by: jayakvr on Feb 17, 2011 10:48 AM
    Edited by: jayakvr on Feb 17, 2011 10:48 AM

    This issue is resolved now. I have installed the Service packs 1, 2 and 3 of CR2008 to overcome this error.
    Thanks,
    Jaya

  • Crystal Reports 2008 runtime error while running on Windows Server X64

    I have a .NET web application compiled as X86 in Visual Studio 2008 invoking Crystal Reports 2008 SP2 that's running fine at a number of sites running Windows Server 2003 X86.</br>
    </br>
    When deploying this app to Windows Server 2008 X64 I get the error message below. </br>
    </br>
    I'm aware that there is an unanswered question similar to this already in the forum but my application is compiled for X86 and I've tryed installing a variety of run times including "crruntime_12_2_mlb.msi" and "crredist2008_x86.msi".</br>
    </br>
    What combination of compile and run time is needed to get around this issue?</br>
    </br>
    Thanks.</br>
    </br>
    </br>
    ERROR MESSAGE **.</br>
    </br>
    An error has occurred while attempting to load the Crystal Reports run time..</br>
    </br>
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
    </br>
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.  Please go to http://www.businessobjects.com/support for more information.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. .</br>
    </br>
    Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime..</br>
    </br>
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
    </br>
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.  Please go to http://www.businessobjects.com/support for more information..</br>
    </br>
    Source Error: .</br>
    </br>
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  .</br>
    </br>
    Stack Trace: .</br>
    </br>
    [LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime..</br>
    </br>
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly..</br>
    </br>
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium)  that is required.  Please go to http://www.businessobjects.com/support for more information.]
       CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +399.</br>
       CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +218.</br>
    </br>
    [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.].</br>
       CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0.</br>
       ChartsEnterprise.UI.GenReport.CreateReport(String reportname) +42.</br>
       System.EventHandler.Invoke(Object sender, EventArgs e) +0.</br>
       System.Web.UI.Control.OnLoad(EventArgs e) +132.</br>
       System.Web.UI.Control.LoadRecursive() +66.</br>
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean .</br>includeStagesAfterAsyncPoint) +2428.</br>
    Edited by: PSernz on Mar 25, 2010 3:58 AM

    What combination of compile and run time is needed to get around this issue?
    See [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki. I think I may not have that wiki updated up to FP2.5, so the FP2.5 msm is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100002975182010E/cr2008fp25_mm.zip
    msi is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100002975312010E/cr2008fp25_redist.zip
    Check the version of the CR assemblies referenced in your project. The use the wiki above to deploy the correct runtime.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Error exporting to PDF from Crystal Reports 2008

    Hi,
    We are getting following error while exporting Crystal report to the PDF and preview in IE:
    Description: Failed to export to a pdf file -- Selected exporter does not support one of the features used in this report. MyReport {DCA37817-1414-45A7-8DF9-75503B8CD0FE}.rpt
    This report having chart object as subreport, however export to Excel works fine and we could see chart fine in Excel. Any other reports without charts are exporting fine to the PDF format only this one having issue.
    Report developed with Crystal Reports 2008/SP2, server we are running this report having CRRuntime_12_0.msm merge file installed successfully. We can't install 12_2 or 12_3 downloaded from your site because of errors we are getting while setup with these merge files somehow.
    Server configuration: Windows 2008 RC2 64bit, .NET framework 3.5, project executing report compiled as x86 ASP.NET project.
    Thanks for help!
    Leonid Shprekher
    Bessemer Trust

    Actually, the question boils down to; does the framework support the fonts?
    I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
    I believe if you use the code below, it will list fonts available to the framework:
    foreach(FontFamily ff in FontFamily.Families)
    System.Diagnostics.Debug.WriteLine(ff.Name);
    For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
    Ludek

  • Invalid export DLL or export format when export  with Crystal Reports 2008

    Hi,
         We have an serious issue while exporting the crystal report into excel. We are able to export into all type in our development environment. But when we tried to export from our server all exports working except the excel. However when we restart the IIS the excel export also working for sometimes and again we are facing the same problem.
    Development environment:
    .Net 2008
    Crystal report 2008
    SQL Server 2008
    +Server Environment:+
    IIS7.0 in Classical mode
    Crystal report 2008 runtime without any SP
        We chosen Classical mode to avoid the error 'an error occurred on the server. printing will be stopped' after a successful print. It is an known issue and I'm curious to know is there any fix available to resolve this issue. Because we prefer Integrated mode.
        Earlier we dont face the excel export problem and we encountered after the SP3 installation. So we uninstalled it from server and we just installed only the run-time. But still we are facing the same problem. we could not able to conclude the cause of this issue because classical mode may create this issue?
    This is a very critical issue to us, so if anyone has the solution please help me.
    Thanks

    Hello,
    Not clear, did you mean when you install SP 3 it worked?
    Use Process Monitor or Fiddler to see what is failing. With out an error message or any other error from IIS logs or Event Viewer logs anything could be the cause.
    Thank you
    Don

  • Crystal Reports 2008 viewer, print function, Comunication error

    I installed cr2008 on a web server and isntalled sp0
    if I bring up a reprot in smartviewer from a client it works and I can print
    once I installed sp1, sp2 and or sp3 for crystal reports 2008 the print button in crystal reports viewer gives an error when I click the print button.
    If I remove and re-isntall cr2008 and just installed sp0 the print button works again
    Is there a fix to make the print button work in crystal reports smart viewer once sp1 or above have been installed
    thank you
    ted

    Translating the error message on bablefish I get:
    Mistake with the store of the data bank information. Mistake in the file Report {C6512421-348A-4621-B1ED-895D28646A0A} .rpt
    Which I'm sure is not 100% accurate, but it gives a good hint. As well, because of this:
    "Do I need to install an additional / diffrent runtime than 2008 Runtime"
    I wonder how you installed the CR 12 runtime on that computer? For more info on CR runtimes, see [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0] wiki.
    If my suggestion above does not help, make sure the Win\temp directory can be accessed buy the application. Crystal Reports runtime needs to write and read files from the temp directory.
    Ludek

  • Unable to export from Crystal Report - font OCR A STD

    We currently  have Crystal Report version 11.5, but I am having the issue of not being able to export the Crystal report file to PDF due to the report has font OCR A STD.  Error message is 'Failed to Export Report.'  Are there any options to resolve this issue?

    Hi Don,
    For my report I am using .ttf font only, But it's giving the same issue while exporting report to pdf
    Please help me.
    Thanks,
    Nitesh

  • Migration from Crystal Reports 2008 to Crystal reports Enterprise(BOE 4.0)

    Dear all ,
    I m currently doing a project on Crystal reports 2008 where datasource is mostly SAP BW queries.  Our customer will have BOE 4.0 in coming months .  I have heard that in BOE 4.0 Crystal reports for Enterprise will be a better option for BW datasources.Is that true? So here comes my question , Is  it possible to migrate reports based on Crsytal reports 2008 to Crystal reports for Enterpise 4.0  afterwards. What will be best option for us , shall we build further reports on Crystal reports 2008 or Crystal reports 2011 or should wait until we have BOE 4.0 ?
    Thanks
    Best regards
    Atul

    Hi,
    We are going through the migration process from 2008 to Enterprise version. The only issue we are facing is the mapping of the Hierarchy nodeid and parentid. Other than that we were able to migrate most of the pieces from the report.
    Here is the overview of migration process:
    1. When you run the upgrade manager to migrate objects from BOE 3.1 to 4.0 it will automatically upgrade it to CR 2011 version.
    2. You then have option to migrate it manually by opening the report in Enterprise version.
    3. If you open the report in Enterprise version it will prompt you to connect to common semantic layer wizard.
    4. Before that you have to have your datasource ready for that report depends on how your CR 2008 is connected. (can be BEx query or Relational Universe)
    5. If its BEx query you have to maintain the connection in CMC under OLAP connection to your BW system.
    6. Next thing is to map the Source fields to Target fields (BEx query or Relation Universe via IDT) and your report will be converted to Enterprise version.
    7. You might have to resolve if there are any errors.
    Let me know if you have any particular questions if i can help.
    Thanks.
    Edited by: Rajan Patel on Oct 27, 2011 5:13 PM

  • Crystal Reports 2008 installation fails

    I recently re-installed Windows XP SP3 on my laptop and need to re-install Crystal Reports 2008.
    I place the installation CD into the drive and the Auto-run application starts up and asks for the language to install.
    I select English and click on the Install button.
    After about 10 seconds I get a very cryptic error message.
    Crystal Reports 2008 Setup Error
    Crystal Reports Setup 2008 has failed.
    If the problem persists, please contact Business Objects Product Support.
    Any help in this matter would be greatly appreciated.
    Edited by: Truper on Feb 9, 2010 1:58 PM

    It's likely a dependency issue. Make sure the .NET frame 1.1 and 2.0 are installed. GO to Microsofts site or possibly they are an option in the update page.
    Thank you
    Don

  • Crystal Reports 2008 Loading Failed Error in Windows 7

    Hi,
    We are using Crystal Reports 2008 in our application. These are working fine in XP Professional OS. But the Same code is not working in Windows 7 operating system. When I debug, I found report Load is failing. Error is at below line of code.
    CR.Load( "D:\Sample_Win7.rpt", OpenReportMethod.OpenReportByTempCopy)  ' CR is Report Document
    Can any one suggest me, what settings are required in Win 7 OS to get out of this issue.
    Thanks inadvance,
    Kiran

    Hi,
    Thanks for the reply. Here is the exact issue description.
    CrystalDecisions.Shared.CrystalReportsException was caught
      Message="Load report failed."
      Source="CrystalDecisions.CrystalReports.Engine"
      StackTrace:
           at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)    at SampleReportInWin7.Form1.Button1_Click(Object sender, EventArgs e) in D:\Brookledge SW\SampleReportInWin7\Form1.vb:line 22
      InnerException: System.Runtime.InteropServices.COMException
           ErrorCode=-2147467259
           Message="The system cannot find the path specified. "
           Source="Analysis Server"
           StackTrace:
                at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
           InnerException:
    Thanks for your time,
    Kiran

  • Crystal Report 2008 Installation Failed - Registering modules

    HI Folks
    I'm trying to install Crystal Report 2008 on XP Pro SP2. The installation stop on Registering Modules, even if I click Cancel,
    it does not do anything it just hang there. I have to kill the process in Task Manager. If I restarted the installation,
    it says that I have already an installtion process running. So I have to reboot and then restart the installation,
    now it says that it will continue a previous uncompleted installation. But it hangs again at Registering Modules.
    It does not even stop at the same file. I have done this process several time with always the same result.
    Each time it stops on a different file but always during the Registering Modules process.
    By
    Arivalagan s

    As well as that make sure you are a local PC administrator or belong to that group. Also check Microsoft's site to make sure you have the latest Microsoft Installer. I believe there is a test tool to check your PC.
    Do you know what version of CR 2008 you have? There should be a ProductId.txt file to confirm the version. SP 3 should fully support DEP so if you don't have it download it from this [link|https://smpdl.sap-ag.de/~sapidp/012002523100009989492010E/cr2008_sp3_fullbuild.zip].
    Then it should get past Microsoft's security. If it's your Anti-V as Stratos suggests then only option is to disconnect from the network and disable it, install and the reconnect.
    The other common registration issue is due to missing dependencies or possibly updated dependencies that CR found but can't use. Some of our dependencies are specific versions.
    Thank you
    Don

Maybe you are looking for

  • Transfer music from iphone 4gs to new macbook pro

    Hi, I need assistance on how to transfer music from my iphone 4gs to my new macbook pro.  My previous macbook pro was damaged and I can't get the music from the old macbook as the hard drive is severly damaged. I dont want to loose my music, so any h

  • Way the url of the images are absolute in km?

    Hi! I am having some trouble with the url's of the images that I insert in a html page on KM. Specifically, when I insert a new image, the URL of it is absolute!! I mean: http://<host>:<port>/irj/go/km/docs/documents/imagename.gif I edited the url an

  • Pavilion dv7 - heating and fan problems, hinge broken - DO NOT PURCHASE THIS JUNK!!!

    This message is targetted towards people looking to purchase an HP Pavilion dv7 series of notebooks. Hopefully they are scanning these boards prior to purchase, something I (very) regretfully did not do. My system: Intel i7 Q720 @ 1.60GHz, 8GB, ATI m

  • Critical: Adding session-config to web.xml cause application NOT to start

    I added the <session-config> element under <web-app> in web.xml: <session-config> <session-timeout>30</session-timeout> </session-config> Now the app won't start! The reason: the built-in sun app server removes context-root attribute from <web-module

  • No Shared Photo Streams on iPad 3 4G

    Hi, My iPad 3 64 GB 4G (LTE) does not have Shared Photo Streams. My iPhone does, my iPad 2 does, and my wife's iPad 3 non 4G does. Why ? Sean