Exporting a Report to PDF

Post Author: helfrich
CA Forum: Crystal Reports
I am re-writing a VB6 app to VB.NET 2005.  I have a viewer control that I use to display the reports in when I want to preview the report on the screen.  The VB6 app can also automatically export reports to PDF format silently (no user input or screen output).  I would like to do the same in VB.NET.  In the VB6 app, I simply set the viewer control's ExportOptions.PDFExportAllPages = True (I also set the DiskFileName FormatType, and DestinationType parameters).  I then display the form containing the viewer with the .Hide parameter.  This exports the report without displaying the report on the screen.  I have not been able to find any information that allows me to do the same thing in .NET with Crystal Reports XI.
I have tried creating a ReportDocument object, but when I execute .Export(), I get a "Missing parameter values" error - absolutely no other information.
For example:
Dim crExportOptions As New ExportOptions
Dim crDiskFileDestinationOptions As New DiskFileDestinationOptions()
Dim crFormatTypeOptions As New PdfRtfWordFormatOptions()
Dim crReport As New ReportDocument
crDiskFileDestinationOptions.DiskFileName = "C:\Test.PDF"
crExportOptions.ExportFormatOptions = crFormatTypeOptions
crExportOptions.ExportDestinationType = ExportDestiniationType.DiskFile
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
crExportOptions.ExportDestinationOptions = crDiskFileDestinationOptions
crReport.Load("C:\Test.rpt")
crReport.Export(crExportOptions)
This is where the error occurs.
I also tried setting Viewer.Visible = False followed by Viewer.ExportReport().  The viewer does not display, but this prompts for the export filename.  The whole idea is for the export to be completely invisible to the user.
I don't care which solution I use:
1.  How can I get rid of the "Missing parameter values" error using the ReportDocument
or
2. Is there a way I can use .ExportReport(), but preset the export filename so there is not prompt?
TIA for any help anyone can offer.

Post Author: jennm
CA Forum: Crystal Reports
Here's a snippet of code from one of my recent projects that should offer some help.
        Dim crOrderPrintout As CrystalDecisions.CrystalReports.Engine.ReportDocument = New rptPublicOrder
  u2018clear the dataset, give it the appropriate parameters and fill the data adapter
        Me.dsReceiptDetails.Clear()
        Me.SqlSelectReceiptDetails.Parameters.Item("@ReceiptID").Value = sReceiptID
        Me.daReceiptDetails.Fill(Me.dsReceiptDetails)
        u2018set the data source and paper size for the report
        crOrderPrintout.SetDataSource(Me.dsReceiptDetails.Tables(0))
        crOrderPrintout.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperLetter
  u2018These are the printing options, Printer, File or Viewer
        Select Case My.Settings.PrintType
            Case "Printer"
                crOrderPrintout.PrintToPrinter(1, False, 0, 0)
            Case "Viewer"
                Dim frmReportViewer As New frmReportViewer
                frmReportViewer.CrystalReportViewer1.ReportSource = crOrderPrintout
                frmReportViewer.ShowDialog()
            Case "File"
                crOrderPrintout.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\test.pdf")
            Case Else
                crOrderPrintout.PrintToPrinter(1, False, 0, 0)
        End Select
  u2018close the report
        crOrderPrintout.Close()
The file option will print directly to a file without prompting the user.  As for the missing parameter values if I had to guess either it's the dataset missing a parameter or the report requires a value.  Example:
crOrderPrintout.SetParameterValue("ParamName", sParamValue)
HTH,
-Jen

Similar Messages

  • Crystal Reports 10 Enterprise Server Issue - Exporting Large Reports to PDF

    Weu2019re implementing a Crystal Reports 10 Server for a customer but weu2019re having an issue with exporting large reports to PDF.  The report size that starts to show this issue is roughly 300 pages with 20 records per page.  We use the default Crystal ActiveX viewer. 
    Basically what happens is that the user will launch the report in the ActiveX viewer and the large report will take a while to load, as much as 3 to 4 minutes.  The user may then wish to export to PDF.  Once they attempt it with these large reports the viewer will basically hang and possibly be processing but will then time-out after roughly 5 minutes with this error:
    u201CProxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /thinqreports/THINQCrystalInterface.asp.
    Reason: Error reading from remote server
    IBM_HTTP_Server/6.1.0.9 Apache/2.0.47 (Unix) Server at lmsproxy.aurora.org Port 443u201D
    We believe this error is coming from a server on our network.  We have a proxy server between users and the Crystal Server that has a 5 minute time-out for connections.  What we want to know is:
    - Is there a way to speed up this export to PDF process?
    - Should the Crystal Viewer be keeping an http connection alive to the Crystal Report Server while its doing this export process?
    - If not, what port does Crystal Viewer use to communicate with the Crystal Report Server? 
    - Is there something we can set in Crystal to keep an http connection open? 
    - What is actually occurring during this export process? 
    Occasionally, we may get the above error when simply launching a report, not just attempting to export to PDF.  We presume that is because loading the report into the Crystal Viewer from the Crystal Report Server is taking longer than 5 min.
    Anyone have any thoughts?  Thanks.
    Scott

    Scott,
    As this is happening within Enteprise (and I am assuming the report does not time out in the Crystal Reports Designer) I would suggest posting this to the BusinessObjects Enterprise Administration
    forum.
    My limited Enterprise knowledge would be to suggest scheduling the report as PDF but I don't know if that is a viable option for you.

  • No link after exporting Crystal report as pdf file

    Hello,
              If my Crystal Report contain link to the .avi file saved on the local hard disk and if I export the Report as .pdf file, pdf file does not contain that link. Why?
    The overall scenario is like-
    My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report.  Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" .   I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
          Now, I take one object in crystal report. Using it's Format editor created a formula for hyperlink as -
          "file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
    EventID is the field of dataset which has ID's (like 0, 1, 2,  3, 4 etc) of all resulted events. It is of a String data type.
         Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this object, cursor get change to Hand and after click on it avi file start to play.
         But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this object, it does not change to Hand, and after click on it nothing happens. No video play.
    I stick to this problem.
    Appreciate your help.
    Thanks in advance.

    Taken from CR Help File:
    "PDF format is a page-based format. The exported documents are intended for printing and redistribution. PDF format will export both layout and formatting in a manner that is consistent with how the report looks on the Preview tab. PDF format embeds the TrueType fonts that appear in the document. (Non-TrueType fonts are not supported.) This export format does not support Microsoft font-linking technologyu2014which is used to provide support for some extended character sets such as Chinese HKCS. Therefore, the fonts used in the report must contain all of the required glyphs. These URI types are supported for hyperlinks: "http:", "https:" and "mailto:".
    Therefore your hyperlink is not working as u are using File type when cr only supports http https and mailto uri types

  • Problem to export a report (to PDF) after converting my reports to CR13

    I have an old project with reports developped using Crystal Reports for Visual Studio 2003 (.NET 1.1). I want to convert them so I can now use Crystal Reports for Visual Studio 2010 (with .NET 3.5).
    I installed Crystal Reports for VS2010 and I converted my reports to the new format. Unfortunately, one of my reports is not working anymore.
    My ASP.NET application generate the report and export it as a PDF. I use CrystalDecisions.CrystalReports.Engine.ReportDocument.Export().
    Everytime I run this method, an exception is thrown...
    System.Exception was unhandled by user code
      Message=System.Runtime.InteropServices.COMException (0x80041004):
    Mémoire insuffisante pour l'opération.
       à CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       à CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       à CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       à CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       à CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
       à CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
       à
      Source=GSPRapport
      StackTrace:
    I also tried to export the report (using PDF format) at design time with the "Export Report" button in Preview mode. It didn't work. But, I can export the report at design time using another format type (like XML).
    The old version of te report (using .NET 1.1, CR9) work fine. As I said, other reports in that same project work perfectly.
    Is someone have an idea of what's wrong!
    Thanks!
    Max.

    The most common cause of this problem is having very large detailed images, or lots and lots of images in your report. The Crystal Report engine changed a lot from 9.1 to 13. The big change was from 9.1 to 10 though when we started using the RAS InProc engine.
    The Crystal reporting engine is not efficient at handling the images and it can cause memory issues like you are seeing. As a test, try suppressing the images that show up frequently in your report and retry your export. If it works you'll have your answer and you'll need a new creative way to design your report without so many images.

  • Server Threw Exception when Exporting the report as PDF

    Hi ,
    I am developing a .Net application , In my application referring to the .rep file which is created using the Business Objects Desktop Intelligence as below
      objBO = new busobj.Application();
                        objBO.Logon(strUserName, strPassword, strServerName, strConnectionMode,false, false);
                        objBO.Visible = false;
                        objBO.Documents.OpenFromEnterprise("PfILS Document.rep", strDomain, BoEnterpriseFolderKind.boFolder);
    After passing the values to the variables of the.rep and refreshing like as below
    objBO.Application.ActiveDocument.Refresh();
    when I tried to save the generated report as .pdf ..
    objBO.Application.ActiveDocument.ExportAsPDF(@"c:\" + Report0101010 + ".pdf");
    I am getting the following issue
    The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
    and the application fails to export the report to pdf document
    Please help me , what will be root cause of this issue
    Thanks
    Babu
    Edited by: Babu Lakshmikantham on Oct 28, 2009 9:18 AM

    Hi,
    World you like to have a look at the sample [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b54507-de66-2b10-95b8-a89015297027]?
    Hope that helps!
    Thanks.

  • Error occurred during exporting ssrs report as pdf

    an error occurred during local report processing. Object reference not set to an instance of an object
    Thanks in advance

    Hi Esha2nk,
    According to your description, when you export the report to PDF in BIDS, the error “Export error: An error occurred during local report processing. Object reference not set to an instance of an object.” is thrown out.
    Based on the error message, it could cause by that there are hidden groups within the report, or the matrix has multiple columns and rows, and Hidden is set to true in the Visibility properties. So in your scenario, please check those two factors. If
    issue persists, please provide report design for our analysis. Besides, would you please tell us which SQL Server version you are using?
    Reference:
    "An error occurred during
    local reporting processing. Object reference not set to an instance of an object."
    Object reference not set to an instance of an object
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Logon Failed when exporting crystal report to PDF

    Hi, I am Teguh
    i want to ask about error when export crystal report to pdf
    error message
    CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
    [LogOnException: Logon failed.]
       .I(String , EngineExceptionErrorID ) +506
       .D(Int16 , Int32 ) +537
       .C(Int16 ) +10
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +577
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +141
       Falcon.CRTransferSlip.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Falcon\CRTransferSlip.aspx.vb:77
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    environment:
    OS : Windows server 2008 standard SP1
    IIS: Version 7.0
    SQL: Sql server 2000
    VS : Visual studio 2003
    i really confused with this error,
    please help me for this problem
    many thank's

    Hi Ludek
    Thank you for your response. I have installed SP3 and ProcMon and still the same result.
    I applied a filter on ProcMon to filter out items where the path contains 'export'.
    There are a few items where the result is 'NAME NOT FOUND' but I don't think it necessarly had anything to do with the barcode. These include items such as 'EXPORT\MailDestType','EXPORT\DisableExportLiveOfficeSupport'','EXPORT\ExportDirectory' to name a few.
    What drew my attention was the ACCESS DENIED result on specifically the EXPORT\PDF folders. The detail for these are  Desired Access : All access, however the very same entry appears a little futher on as a SUCCESS but this is detailed as Desired Access: Query Value.
    So in summary it looks something like this:
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : ACCESS DENIED
    Desired Access : All Access
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : SUCCESS
    Desired Access : Query Value
    There are a few other entries that follow this pattern that exists in other locations such as HKLM\Software...
    Could this 'ACCESS DENIED' be the problem? and If so how do I, and should I give user XXX this ALL Access its looking for.
    Regards
    Elroy

  • Issues in exporting SSRS report to PDF format in Report Server - Blank spaces are deleted

    Hi Gurus,
    I have a problem in exporting SSRS report to PDF format. It deletes all the blank spaces when I use bullet in a Text box and try to export to PDF formt in Report Server . For example
    •             Project submitted to the TRC
    Result in PDF format:
         • ProjectsubmittedtotheTRC
    I also noted that when I try to export to PDF in Visual Stuio 2005 (Business Intelligence development studio), it does not delete any blank spaces and shows the correct aligned Data in PDF format.
    Please help me as it is frustrating a lot
    I would highly appreciate for your quick response 

    Was there ever a solution found for this as i have the same issue.
    When bullet point is entered in a field all the spaces are removed when exported to PDF
    i tried exporting to excel and it does not remove spaces, however this is no use to me as it needs to be in PDF
    Using IE 7 (Don't think the browser has anything to do with it as this happened via a subscription)
    Didn't know SSRS had specific Service Packs, i though they came as patches to SQL Server (SQL Server is on Service Pack 3)
    This should be easy to replicate all you need to do is copy text containing a bullet point into a sql server database field and then add this field to a report export to pdf and the spaces are gone
    Thanks in advance,
    Mark Brunton
    brunzire

  • Export BIRT reports to PDF, Excel or Word is not working properly

    Dear Forum members,
    We are seeing an issue with the BIRT reports Export option where some reports are working fine(exporting properly) in PDF but Not in Excel or Word or PowerPoint.
    In some cases, we are NOT able to export some reports in PDF as well.
    BIRT reports are integrated in our java application and Weblogic is our application server. We have both Windows and Linux environment.
    We see the errors shown below. Please let me know if any one knows how to resolve this issue.
    + org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
    AxisFault
    faultCode: {}Server.userException
    faultSubcode:
    faultString: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
    faultActor:
    faultNode:
    faultDetail:
    {}stackTrace:org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
    at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1104)
    at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1551)
    at org.eclipse.birt.report.service.BirtViewerReportService.renderReport(BirtViewerReportService.java:369)
    at org.eclipse.birt.report.service.actionhandler.BirtRenderReportActionHandler.__execute(BirtRenderReportActionHandler.java:65)
    at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
    at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.doService(FramesetFragment.java:222)
    at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.service(FramesetFragment.java:86)
    at org.eclipse.birt.report.servlet.ViewerServlet.__doGet(ViewerServlet.java:181)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3748)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3714)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
    at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:308)
    at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1545)
    at org.eclipse.birt.report.service.BirtViewerReportService.renderReport(BirtViewerReportService.java:369)
    at org.eclipse.birt.report.service.actionhandler.BirtRenderReportActionHandler.__execute(BirtRenderReportActionHandler.java:67)
    at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
    at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.doService(FramesetFragment.java:222)
    at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.service(FramesetFragment.java:86)
    at org.eclipse.birt.report.servlet.ViewerServlet.__doGet(ViewerServlet.java:181)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:123)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61)
    at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:69)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61)
    ... 9 more
    Caused by: java.lang.NoClassDefFoundError: sun/awt/X11/XToolkit
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:170)
    at java.awt.Toolkit$2.run(Toolkit.java:832)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:824)
    at org.eclipse.birt.report.engine.layout.pdf.util.PropertyUtil.getScreenDpi(PropertyUtil.java:322)
    at org.eclipse.birt.report.engine.layout.pdf.util.PropertyUtil.getRenderDpi(PropertyUtil.java:294)
    at org.eclipse.birt.report.engine.emitter.excel.layout.ExcelContext.setReport(ExcelContext.java:113)
    at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.start(ExcelEmitter.java:88)
    at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:585)
    at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:284)
    at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1545)
    at org.eclipse.birt.report.service.BirtViewerReportService.renderReport(BirtViewerReportService.java:369)
    at org.eclipse.birt.report.service.actionhandler.BirtRenderReportActionHandler.__execute(BirtRenderReportActionHandler.java:65)
    at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
    at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.doService(FramesetFragment.java:222)
    at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.service(FramesetFragment.java:86)
    at org.eclipse.birt.report.servlet.ViewerServlet.__doGet(ViewerServlet.java:181)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:278)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    ... 9 more

    Does this issue happen in both environments, Windows and Linux?
    Do you have some reports that can be exported successfully to Word, Excel and Power Point?
    That specific error indicates there is an error finding the X11 XToolkit in the class path.

  • Simple way to export a report to PDF on demand in CR Server 2008?

    Hi,
    I have this intranet application written in JavaScript with smidgens of c# that I'm modifying for a client.  They've decided to purchase Crystal Server 2008 and they want their application to call Crystal Server 2008 and export a report to PDF to a folder on the intranet server.
    I've been beating my head against the wall trying to find a simple way to do this but I'm coming up blank.  Maybe my approach is wrong. 
    I've tried the .Net SDK (wssdk_net_samples_12) and apparently it's doesn't work... exactly.  I've been told they're going to get a working SDK for .Net > Crystal Server 2008 before the end of September(they hope).
    I've tried the URL reporting and it almost does what I'm looking for.  I can call a report directly using the URL... unfortunately it's wrapped in an HTML file and I can't figure out how to get just the PDF out of it.
    Does anyone know how I can do this? 
    I'm just looking to send some info to the Crystal Server 2008 and have it send back a PDF.
    Thanks in advance,
    J

    Hi Jason,
    This question might be better addressed on the .NET forum:
    .NET SDK Application Development
    -or-
    SAP Crystal Reports, version for Visual Studio
    I recommend that you post this question on that forum.
    Regards,
    Dan

  • Exporting Crystal Report to pdf

    Hi,
    We have a crystal report that is stored in Business Objects Enterprise XI 3.1. The requirement is to connect to the Enterprise and export the report as pdf in .NET web page. I see a lot of RAS samples. But we are required to use the Business Objects Enterprise sdk dlls for this purpose.
    Can somebody provide me a sample for this.
    Thanks
    Irene

    Hi Adam,
    Yes I am trying to use the Page Server option of RAS to open the report. That is only one working due to firewall restrictions.
    But I was trying to set the report parameters in the report Object and assumed that it should be reflected when opening the report. But that does not seem to work. So now what I did is,  I tried to set the report source to report viewer control and change the parameters through code.
            boEnterpriseService = boEnterpriseSession.GetService("PSReportFactory");
            boReportAppFactory = (PSReportFactory)boEnterpriseService.Interface;
            ISCRReportSource objRep = boReportAppFactory.OpenReportSource(boInfoObject.ID);
            CrystalReportViewer1.ReportSource = objRep;
            CrystalDecisions.Shared.ParameterFields  objFields = CrystalReportViewer1.ParameterFieldInfo;
            CrystalDecisions.Shared.ParameterDiscreteValue objDis = new CrystalDecisions.Shared.ParameterDiscreteValue();
            objDis.Value = "Product Category";
            objFields[0].CurrentValues.Clear();
            objFields[0].CurrentValues.Add(objDis);
            CrystalReportViewer1.ShowFirstPage();
    So the report shown in the viewer is opened with the parameters specified. But now I have the problem of exporting. I need to export this report with the parameters specified in code to pdf.
    What are the options. I tried using the CrystalDecisions.CrystalReports.Engine.ReportDocument so I can do the export but am getting Communication Failure:FWM 0001.
    Is there any way of directly exporting the report from the viewer without user intervention ?
    Thanks
    Irene

  • Exporting discoverer report into pdf

    Dear All,
    I am having a requirement, when I am  export discoverer report to pdf it has to display all column in one page but now I am getting 4 columns in one page next columns are displaying in next page. Total I am having 20 columns how can I display all column in pdf.
    Please anyone help me
    Thanks in advance

    Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with your directly.
    Is there a reason why you need that much data in a one report? It will take a long time to load or browse around. I suggest you make these reports smaller for your users.

  • No link to the local .avi files after exporting Crystal report as .pdf

    Hello all,
    The overall scenario is like-
    My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report.  Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" .   I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
          Now, I take one Text Object in crystal report. Using it's Format editor created a formula for hyperlink as -
          "file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
    EventID is the field of dataset which has ID's (like 0, 1, 2,  3, 4 etc) of all resulted events. It is of a String data type.
         Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this Text Object, cursor get change to Hand and after click on it avi file start to play.
         But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this Text Object , it does not change to Hand, and after click on it nothing happens. No video play.
    I stick to this problem. What should be done in this case?
    Appreciate your help.
    Thanks in advance.

    duplicate - please do not post multiple times

  • Taking a long time to export a report to PDF in web app

    Hi,
    I downloaded CR for Eclipse 2.0 to integrate a "Create PDF Report" option into our web application. The original .rpt files were created using CR 2008. I used the sample online code to do this:
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);   
    // .. set report params here..
    ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
    I was able to successfully run this and generate a PDF output file, however the report takes over 2 minutes to complete, whether there were only 2 records or 75 records!
    From CR 2008 on a Windows machine, the export to PDF option takes about 2 - 3 seconds for the exact same report.
    Our web servers are very powerful Linux blade servers from Dell.
    Why is there such a delay? Does it have to do with the licensed version versus the free version? Or is this just a limitation of being in a web app?
    -Mike

    We created a version of the same test report that only generates two PDF pages.It has cut the time down, but it still takes it about 16 seconds to open the .rpt file and another 6 seconds to export to PDF and write it out to a file. [Total of about 22 seconds.]
    When we run the same report on CR2008 on a Windows laptop, it takes less than 1 second to load the .rpt file, under 1 second to generate the report and another 1 second to generate the PDF. [Total under 3 seconds.]
    Our question still remains: Why is there a considerable time difference between CR2008 and CR4Eclipse [3 secs vs 22 secs] and is there anything we can do on the web app side to decrease the report output time?
    Here are the "highlights" from the verbose logs (the full logs were about 32K). I tried showing where there were obvious time gaps. If there is a big time gap between statements separated by ".... " it was just doing it's regular work (evaluating functions, etc). If you provide me an email address I can send the complete logs as an attachment.
    2009-09-04 16:18:32,212 DEBUGaction.TestReportsAction (?:?) - begin hub/TestReportsAction
    2009-09-04 16:18:32,213 DEBUGaction.TestReportsAction (?:?) - 1-calling new ReportClientDocument();
    2009-09-04 16:18:32,215 DEBUGaction.TestReportsAction (?:?) - 2-calling .open(REPORT_NAME
    2009-09-04 16:18:33,193 INFO reportloading.saveddata (?:?) - FieldManager
    2009-09-04 16:18:33,194 INFO reportloading.saveddata (?:?) - NDatabaseFields: 63
    2009-09-04 16:18:33,195 INFO reportloading.saveddata (?:?) - Field: {INVOICE_HEADER_VIEW.INVOICE}, NBytesInField: 8, ValueType: number
    2009-09-04 16:18:33,288 INFO reportloading.saveddata (?:?) - Field: {%Unit_Price}, NBytesInField: 131070, ValueType: string
    2009-09-04 16:18:33,289 INFO reportloading.saveddata (?:?) - NOlapDimensionFields: 0
    2009-09-04 16:18:33,289 INFO reportloading.saveddata (?:?) - NOlapGenerationFields: 0
    2009-09-04 16:18:33,290 INFO reportloading.saveddata (?:?) - NULL Field
    2009-09-04 16:18:37,141 INFO reportloading.saveddata (?:?) - FieldManager
    2009-09-04 16:18:37,142 INFO reportloading.saveddata (?:?) - NDatabaseFields: 8
    2009-09-04 16:18:37,177 INFO reportloading.saveddata (?:?) - NOlapGenerationFields: 0
    2009-09-04 16:18:37,177 INFO reportloading.saveddata (?:?) - NULL Field
    2009-09-04 16:18:39,333 INFO formulas.Compiler (?:?) - Formula {@Record_Selection} compiled.
    2009-09-04 16:18:39,340 INFO formulas.Compiler (?:?) - Formula {@Saved_Data_Selection} compiled.
    2009-09-04 16:18:47,868 INFO ReportCommand.SetReportDateCommand (?:?) - SetReportDateCommand,24667963,Exit perform,<document=ReportDocument:<report=main><reportPath=/webdata/webapps/tcmIS/reports/invoice_header_en.rpt>>;
    2009-09-04 16:18:48,042 INFO formulas.Compiler (?:?) - Formula {@Invtest} compiled.
    2009-09-04 16:18:48,045 INFO formulas.Compiler (?:?) - Formula {@Load column names} compiled.
    2009-09-04 16:18:48,701 DEBUGaction.TestReportsAction (?:?) - opened report: /reports/invoice_header_en.rpt
    2009-09-04 16:18:48,702 DEBUGaction.TestReportsAction (?:?) - 3-calling getParameterFieldController() - setting params
    2009-09-04 16:18:48,792 DEBUGaction.TestReportsAction (?:?) - 4-calling export(ReportExportFormat.PDF);
    2009-09-04 16:18:48,794 INFO reports.queryengine (?:?) - Connection logon:Database DLL=s(crdb_oracle.dll);PreQEServerName=s(tcmprod);Server=s(tcmprod);Tru
    sted_Connection=b(false);Password=;User ID=s(sskidmore)
    2009-09-04 16:18:48,812 INFO driverImpl.jdbc (?:?) - Connection Opened null
    2009-09-04 16:18:48,829 INFO reports.queryengine (?:?) - Connection logon successfully
    2009-09-04 16:18:48,835 INFO reports.dataengine (?:?) - Create new report state
    2009-09-04 16:18:48,838 INFO reports.dataengine (?:?) - Need to recompile formulas, the number of formulas needed to recompile is 1
    2009-09-04 16:18:55,202 WARN Simplifier.Fields (?:?) - Field {INVOICE_HEADER_VIEW.BILLING_ENTITY_ADDRESS_LINE_1} is null. Interrupting formula evaluation.
    2009-09-04 16:18:55,203 INFO formulas.Evaluator (?:?) - Formula {@-suppressSection-13} evaluated to: null
    2009-09-04 16:18:55,302 INFO formatter.paginator (?:?) - Page 2 formatted.
    2009-09-04 16:18:55,303 INFO lightmodel.FCMFormattedContentModeller (?:?) - FCM: modelling contents
    2009-09-04 16:18:55,344 INFO lightmodel.FCMFormattedContentModeller (?:?) - FCM: modelling contents
    2009-09-04 16:18:55,981 INFO formatter.paginator (?:?) - Moving to Page 3
    2009-09-04 16:18:56,015 WARN Simplifier.Fields (?:?) - Field {INVOICE_HEADER_VIEW.BILLING_ENTITY_ADDRESS_LINE_1} is null. Interrupting formula evaluation.
    2009-09-04 16:18:56,016 INFO formulas.Evaluator (?:?) - Formula {@-suppressSection-12} evaluated to: null
    2009-09-04 16:18:56,019 WARN Simplifier.Fields (?:?) - Field {INVOICE_HEADER_VIEW.BILLING_ENTITY_ADDRESS_LINE_1} is null. Interrupting formula evaluation.
    2009-09-04 16:18:56,020 INFO formulas.Evaluator (?:?) - Formula {@-suppressSection-13} evaluated to: null
    2009-09-04 16:18:56,024 INFO formulas.Evaluator (?:?) - Formula {@-suppressSection-11} evaluated to: b(true)
    2009-09-04 16:18:56,087 DEBUGaction.TestReportsAction (?:?) - exported report to stream
    2009-09-04 16:18:56,089 INFO reports.basicdataengine (?:?) - Invalidating controller
    2009-09-04 16:18:56,090 INFO reports.basicdataengine (?:?) - Invalidating controller
    2009-09-04 16:18:56,091 INFO reports.basicdataengine (?:?) - Invalidating controller
    2009-09-04 16:18:56,094 INFO reports.queryengine (?:?) - Connection logoffServer:
    2009-09-04 16:18:56,095 INFO driverImpl.jdbc (?:?) - Connection Closed null
    2009-09-04 16:18:56,185 DEBUGaction.TestReportsAction (?:?) - Successfully exported report to /webdata/html/reports/invoice_PGE_465.pdf
    Edited by: Mike Najera on Sep 5, 2009 12:13 AM

  • Operation not yet implemented when exporting crystal report to pdf

    Thank you in advance,
    When running the line **** export within the following code, I am getting the following error message:
    "Error in File C:\DOCUME1\rborda\LOCALS1\Temp\TimeDetailTest {00DC8730-45CD-4A29-8854-C44BBD5B5230}.rpt: Operation not yet implemented."
    I tried the following solution registering dlls, but still did not solve the problem above:
    regsvr32 "C:\Program Files\Common Files\Crystal Decisions\2.0\bin\crtslv.dll"
    regsvr32 "C:\Program Files\Common Files\Crystal Decisions\2.0\bin\ExportModeller.dll"
    regsvr32 "C:\Program Files\Common Files\Crystal Decisions\2.0\bin\tslv.dll"
    CODE:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.ReportAppServer
    Imports CrystalDecisions.Web
    Imports CrystalDecisions.ReportSource
    Partial Public Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        End Sub
        Private Sub btnRunReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRunReport.Click
            'Try
            Dim ConInfo As New CrystalDecisions.Shared.TableLogOnInfo
            Dim oRptDoc As New ReportDocument
            Dim expo As New ExportOptions
            Dim oDiskFileDestinOption As New DiskFileDestinationOptions()
            Dim strCrystalReportFilePath As String
            Dim strPdfFileDestinationPath As String
            Dim crParameterDiscreteValue As ParameterDiscreteValue
            Dim crParameterFieldDefinitions As ParameterFieldDefinitions
            Dim crParameterFieldLocation As ParameterFieldDefinition
            Dim crParameterValues As ParameterValues
            strCrystalReportFilePath = "C:\TimeDetailTest.rpt"
            strPdfFileDestinationPath = "C:\TimeDetailTest0814.pdf"
            oRptDoc.Load(strCrystalReportFilePath) 'loads the crystalreports in to the memory
            'Create parameter objects
            'Provide Parameter values
            crParameterFieldDefinitions = oRptDoc.DataDefinition.ParameterFields
            crParameterFieldLocation = crParameterFieldDefinitions.Item("StartPeriod")
            crParameterValues = crParameterFieldLocation.CurrentValues
            crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
            crParameterDiscreteValue.Value = #7/6/2008#
            crParameterValues.Add(crParameterDiscreteValue)
            crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
            crParameterFieldLocation = crParameterFieldDefinitions.Item("EndPeriod")
            crParameterValues = crParameterFieldLocation.CurrentValues
            crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
            crParameterDiscreteValue.Value = #8/2/2008#
            crParameterValues.Add(crParameterDiscreteValue)
            crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
            'Export Information
            oDiskFileDestinOption.DiskFileName = strPdfFileDestinationPath    'path of file where u want to locate ur PDF
            oRptDoc.ExportOptions.DestinationOptions = oDiskFileDestinOption
            oRptDoc.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
            oRptDoc.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
           oRptDoc.Export()
        End Sub
    End Class

    I got the same error message when trying to export a report to Excel format.  This happened with an existing report that had always exported with no problem, until I added a couple of new formulas. After investigating, I discovered that one of my formulas was returning a divide by zero error if a date range was too small.  Once I fixed that formula, it began exporting again with no problem.  I discovered this by trying to export to PDF (since all of the situations discussed here involved PDF) and that was when it returned the divide by zero error.

Maybe you are looking for

  • Word_print.vi 1015 error when running exe

    I created a vi that generates report in word and prints to default printer. The vi works fine in three different computers with office 2000, 2003 & 2007. But when I create an exe, there is an error: 1015 Word_Print.vi in Print Report.vi. The error is

  • DVD plays well on some machines, gets stuck on others

    Made a 20-minute DVD, having done all my editing, etc. in iMovie and exported to iDVD5. Once burned, tested it on my iMac and it worked fine. Also worked fine in a friend's stand-alone DVD player. But some users since have this problem: the DVD plays

  • Raw by raw contitional link in interactive report

    hi all, i need an I.R. to show, or not, in a column always visible a link to another page. For example, i want an IR to show a list of records and some of these (not all) could be modified. So i need a column with dynamic content where to put a link

  • EDI/IDocs for WMS

    Hi all, I need sample code and processing steps for EDI-IDocs for WMS concept.

  • Coloring  a popup field in a tabular form

    Hello all, i have searched for this subject many times, find a lot of answers to coloring at all, but none of them works for me. I have a tabular form,in the sql query i create a column COLOR (case clause) and try to color the back-/foreground of the