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

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.

  • 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.

  • 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

  • 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

  • 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.

  • 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.

  • What is the easiest way to export all tables data from Oracle to MS SQL Server?

    Hello MS,
    I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
    Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
    to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
    What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
    Is it:
    - the „MS SQL Import and Export Data“ Tool
    - the “MS SQL Integration Services” Tool
    - not Oracle dump *.dmp format because it is a propritery binary format
    - flat file *.csv (delimited format)
    Thanks!

    Hi lingodingo,
    If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
    If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Getting IllegalThreadStateException, while exporting the report to PDF

    Hi Friends,
    I am using JRC to create report in PDF format.
    But intermitently I get java.lang.IllegalThreadStateException while trying to export ReportClientDocument into PDF format using the PrintOutPutContrller.
    The I am using for this is
    ExportOptions exportoptions = new ExportOptions();
    PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
    exportoptions.setExportFormatType(ReportExportFormat.PDF);
    exportoptions.setFormatOptions(pdfOptions);
    reportInputStream = reportClientDocument.getPrintOutputController().export(exportoptions);
    The exception I get is:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.IllegalThreadStateException---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:114)
    at com.solidcore.as.report.ReportJob.execute(ReportJob.java:66)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    I am using JRC that comes with CR4E 2.0. The Report is designed using Crystal Report 2008.
    Please help me in solving the issue.
    Thank you,
    Deepak

    Hi Ted,
    Thank you for the answers.
    In our applications the Report will be generated in two ways.
    1. A user clicks on a link on web, and the report is generated in PDF format and sent via http.
                At present we are creating a new
                ReportClientDocument for every request and using ExportControl.processHttpRequest() API
                the report in PDF format is sent user through response.
    2. Quartz schuduler trigger a job, whose work is to generate Report in PDF format into a file, and the
              generated pdf file is sent to users via mail.
              Here I user ReportCLientDocument.export() API to get the InputStream and use the input stream
              to create PDF file.
    It is possible that a user is requesting a report on Web Page and the same report is being generated by Scheduler at the same time. But in each case a separate ReportClientDocument is being used.Since Report containse a huge data, and it takes time to generate PDF file so, it is possible that a given RPT file is opened by two spearate ReportClientDocuemnt (one via web user and other via Scheduler) at the same time.
    The have got rid of my earlier exceptions by sycncronizing the ReportClientDocuent.export() API.
    But now am getting following exception intermittently.
    2009-05-01 16:47:45.859 GMT+05:30 [ERROR] [ReportJob.java:137] [AnalyticsScheduler_Worker-10(34)] - [] Could not generate the Report.
    java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:123)
         at com.solidcore.as.report.ReportJob.execute(ReportJob.java:75)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    2009-05-01 16:47:45.859 GMT+05:30 [ERROR] [JobRunShell.java:211] [AnalyticsScheduler_Worker-10] - Job reportJobGroup.reportJob threw an unhandled Exception:
    java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.case(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
         at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:155)
         at com.solidcore.as.report.ReportJob.execute(ReportJob.java:75)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Edited by: Deepak Mishra on May 4, 2009 5:47 PM

  • 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

  • Export Crystal Report to PDF

    Hi,
    in my Crystal Report (2008) is a chart, designed with Xcelsius 2008. The report is displayed well. When I export my Flash-Chart from Xcelsius to PDF the chart is displayed correctly in PDF document.
    When I export the Crystal Report to PDF my Flash-Chart is displayed completley grey in PDF document. There is the same issue when I schedule my Crystal Report to PDF on BO Edge-Server.
    Is this a known issue and can be fixed?

    I am bringing this subject back up because I am still having problems with this.  I am using CR 2008, Xcelsius 2008 and Edge 3.1 Enterprise Server along with a Visual Basic 2005 program.  I have Adobe Reader 9 loaded on both my local machine and the server where Edge is installed.
    I have a report that is passing flash variables to an embedded .swf file which is a pretty simple horizontal stacked bar chart.  When I view this report in CR on my local machine everything on the report is correct and I can print it to PDF and it is correct when I view it with Adobe Reader.  I can also print the report to a printer and get the desired result which is the most important thing here.
    My next step is saving the report to the Enterprise server.  I then run my Winform Visual Basic program that passes the paramters to the report and schedules it to run on the server.  The report runs fine and we access it with InfoView.  Again the report looks fine because when we open it, it opens with Adobe Reader on the server.  The problem is when we try to print this instance of the report from the server the chart keeps doubling up the stacked bars so there are two of them instead of the one.
    Does anybody have any ideas????
    Thank you in advance.
    My problem comes

Maybe you are looking for

  • It is possible to change the display from a macbook pro

    I have a late 2011 macbook pro 15", it is possible to do an update to the display? Like change it for one with more resolution.

  • Nokia Lumia 530 backup problem (Using Windows 8.1)

    My phone has suddenly stopped backing up, even though it keeps telling me it hasn't been backed up for some time, and needs to be backed up. When I tell it to back up, it gets to about 99%, and then I get the message "there was a problem backing up y

  • How do I update interactive links across a document created from importing other indd pages?

    Hello! First time writing up a query to please bear with me! Situation - I am creating singe page templates for various uses (cover page variations/index page variations/content page variations/etc-) - The index page has all the chapters listed which

  • How to add Hyper Link to Calendar Invite

    Is there any way of being able to add a link to a calendar invite to be able to dial a telephone number from a calendar invite at the time of the meeting?  I know I can add a link to open a web page or new file in some MS Office apps, but curious if

  • Exact Positioning of Movie Clips

    I need some help on how to figure out the script for positioning mc's after the .swf resizes to fit the browser window. Some direction, examples or a tutorial guide would be great. Ideally i want to bring an external .swf into an empty mc and positio