How to export crystal report into disk using simple java

hello
i m working in the reporting part my j2ee application
my requirement is that export this rpt file into pdf file and store into disk by writing simple java program
if any have code this then plz provide me
thanks & regards
ram

Uhm, these messages are not that related. One's a
JNDI problem, this one's just some vague "how do I
do" stuff.He wants to produce something in crystal reports and turn it into a PDF. So yes they are related. And yet another thread for this just sprung up.

Similar Messages

  • How to export crystal report to excel through progeam

    Hi,
    Can any help me how to export crystal report to excel through program(C#). I'm using VS2005.
    Also, the report should be in a pivot table format after exporting to the excel..please help me how to do this
    Thanks,
    Venky

    Hi Venkat,
    The link below provides the code C# in an ASP.NET codebehind file
    http://www.codeproject.com/KB/cs/Crystal_Report_Export.aspx
    http://aspalliance.com/478_Exporting_to_Excel_in_Crystal_Reports_NET__Perfect_Excel_Exports.2
    Regards,
    Abhijeet  T.

  • How to Export SSRS report into Excel format using query string

    Hello all,
    I am new to SSRS world.
    Last night i was trying to add a hyperlink  on the SSRS report (.rdl) file, by clicking which we can export the report into "Excel" format, but with no luck.
    Can anybody tell me how to form the hyperlink, so that we can export the report with its current content ( I mean the report content generated by selecting some parameter values)

    Hi Suman85,
    Based on your scenario, you want to add a link on the SSRS report file, and then click it you can export the report into “Excel” format.
    Just as kishan1901 said , you can add a textbox to your report and type in the words “Click here and export the report
    to excel” .Then right-click the textbox and select Properties. Switch to Navigation tab, click the radiobutton of ‘Jump to URL’ and type in the expression ,here is just a example:
     ="http://vyof1884200/ReportServer$youhoo?/My+Adventure+Works/Product+Sales+and+Profitability+by+Month&rs:Command=Render&rs:Format=excel"
    Then preview the report ,you will see
    Click here and export the report to excel 
    when you move the mouse to it ,the mouse will become a hand ,then left-click, it will jump out a dialog box to indicate user whether the excel file should be saved , opened or canceled. 
    I think this is what you want, if you have any further requirement, could you please describe it in more detail? We would give you some resolution or workaround.
    Regards,
    Challen Foo

  • Exporting Crystal report into Excel with code

    I have written the following code to export crysal reports to excel. My problem is, when it exports number it adds the thousand seperator (,), but if I export the report from Crystal designer, it works fine. So I believe I am missing something in my code. Could some one help me with this? Any help is greatly appreciated.
           Dim xlApp As Microsoft.Office.Interop.Excel.Application
            Dim xlBook As Workbook
            Dim myReport1 As New ReportDocument
            Dim reportPath1 As String = ""
            reportPath1 = "C:\test\su.rpt"
            myReport1 = New ReportDocument
            myReport1.Load(reportPath1)
            Dim tmpExcelFile As String = ""
            tmpExcelFile = "C:\test\test.xls"
            myReport1.ExportToDisk(ExportFormatType.Excel, tmpExcelFile)

    Hi Don,
    Please provide
    - Crystal Reprots version
    - Visual Studio version
    - Win or web app?
    Try using 'ExportToStream' see if it reproduces the issue.
    [1198587 - How to export a report to stream in C Sharp (C#) for Visual Studio .NET |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333533383337%7D.do]
    - Bhushan.

  • Error while trying to export a report into PDF using JRC (Linux env)

    Hi all,
    I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
    PrintOutputController controller = reportClientDoc.getPrintOutputController();
              ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
    I got this error message:
    19/02/2009     10:21:37     b     INFO     PdfExporter: PdfDocumentModeller.modelPage (page 1)
    19/02/2009     10:21:37     b     INFO     PdfExporter: Modelling page
    19/02/2009     10:21:37     b     INFO     PdfExporter: Creating document manager, text modeller and image modeller.
    19/02/2009     10:21:37     b     ERROR     PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
    java.lang.IllegalArgumentException: Data type is not supported.
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
         at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
         at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.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.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
    Any solution (or workaround) would be highly appreciated!
    Thank you!
    PS Maybe this is relevant: I use a MySQL database!
    Edited by: Sandila Catalin on Feb 19, 2009 10:01 AM

    What kind of image do you have in the report?
    Do you have -Djava.awt.headless=true specified for the Java JVM option?
    Sincerely,
    Ted Ueda

  • Error on server while trying to export a report into PDF using JRC (CR XI)

    13/01/2009        11:52:32            dataengine        ERROR Formula error: recompile formulas failed
    com.crystaldecisions.reports.formulas.FormulaException: Exception in formula '{@Record Selection}' at '{reports_selection.idReport}':
    This field name is not known.
    13/01/2009        11:52:32            JRCCommunicationAdapter        ERROR Failed to export report
    com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Exception in formula '{@Record Selection}' at '{reports_selection.idReport}':
    This field name is not known.
    The error occurs only on the server deployed application, in localhost environment it works fine. So I guess it might have something to do with the server environment, but I can't figure it out. The table reports_selection and the field idReport are well presented in the database.
    The idReport(Number) is passed as a parameter to the report.
    In Select expert... I have the following  formula {table1.idReport} = {?idReport} and in Database expert... I have a join between table1 and reports_selection by idReport.
    Does anyone know what might cause this problem?

    Have you able to preview the report via the Central Management Console?
    When you upload the report template to the server, be sure to do a preview to make is sure its working there.
    It might be that your server is using a different DB Connection.
    Edited by: Rulix Batistil on Jan 14, 2009 10:38 AM

  • How to store crystal report (rpt file) into disk using java

    hello
    i want to coonect my report file to java .want convert this file into pdf and store into disk using simple java program
    if any have code for this then provide me
    thanks & regards
    ram

    Have you given up on your other threads? All your questions seem to be on the same general problem. Could you please stop creating new threads for this?

  • How to Export BAM reports to other platform

    Hi
    I have created reports in BAM Server.Please tell me how to export these reports into other formats like-PDF,Exel
    Regards,
    Snehal

    Hi Snehal,
    Use the Excel View Widgets in BAM Studio.
    About Excel View
    The Excel spreadsheet view displays columns containing rows of data in a Microsoft Excel spreadsheet. This view enables you to save the content externally (outside of the Oracle BAM applications) in a Microsoft Excel spreadsheet.
    The Excel view requires that Microsoft Excel version XP, 2003, or 2007 is installed on the client computer.
    Best Regards
    Siva Shankar

  • I need to create a dashboard.  How do you bring Crystal Reports into Excel?

    Hello,
    I need to create a dashboard.  My boss wants a spreadsheet to show multiple reports and charts about the business.  I know you can insert multiple charts in Excel.  However, I need to be able to insert a report next to one of the charts.
    I am thinking of using the RDC and bring in a Crystal Report.  The problem is that I see with Crystal Reports 2008, you can't use RDC.
    Is there an upgrade to RDC?  How do I bring the Crystal Report into Excel next to the imbeddged charts.  I know I can export a Crystal Report to Excel.  But that Exports to a entire spreadsheet.  I just want to embed a Crystal Report into Excel.  The last time I did a project like this, I used to use the RDC with the same code as in VB6.  Worked great.
    How do you embed a Crystal Reports now?
    Thanks.

    The question was how do you do it?
    I don't have .NET.  However, if that is the only way, then I can buy .NET.
    I just need someone that knows how to do it to point me in the right direction.  To embed something in Excel, I hadn't thought of using .NET.

  • Is it possible to export the out put of Crystal report into text file?

    Hi All,
    Is it possible to export the out put of Crystal report into text file?

    Hi
    Yes, Go to File --> Export --> Export Report --> Under Format select TEXT & select the destination as "Disk file"(defaultly selected)
    Give the proper details as per your requirement for "Characters per inch" & "Number of lines per page" & click on 'OK"
    In "Choose Export file" window, select the destination folder & provide file name. click on "SAVE"
    Regards
    Ashwini

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • How to buld Crystal report using data from Bex query

    Hi,
    I have requirment where the end user wants the query in Crystal.I built a Bex query in Bex query designer.I would like to know how to create crystal report based onthe Bex query.
    Thanks,
    Chandra

    Hi Chandra,
    Here is the docuemnt which explains you in detail about the steps to create Cyrstal Report using BEX Query.
    https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948&overridelayout=true
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Regards
    SIndhu

  • How to create crystal reports using MSDE 2000?

    Post Author: S_Muhilan
    CA Forum: Deployment
    Hi,
    I am using Crystal report 8.5. My Database sqlserver 2000. I generated reports and are working fine.
    Now I want to use MSDE 2000 instead of Sqlserver 2000 due to license factor.
    My application is developed in VB 6. The all the parts of the application is working fine except the report.
    All reports produced Database DLL error.
    So I opened the report and try to verify the database. But it gives pdssql.dll not found. Database error.
    After this error, I tried to create a new report and found that there is no option for MSDE 2000 database selection under more database.
    I usually select Sql server 2000 database under More Database option of location wizard.
    How to create crystal reports using MSDE 2000?
    Is it due to crystal report 8.5 verison problem? I also have crystal report 11 licensed copy.
    Please give me the good solution as early as possible
    RegardsS. Muhilan

    To use the inproc RAS SDK with CR.NET, you'd have to purchase either (1) Crystal Reports XI Release 2 Developer edition, and apply Service Pack 2 or above, or (2) Crystal Reports 2008 (not Crystal Reports Basic that comes with Visual Studio 2008).
    Sincerely,
    Ted Ueda

  • "The process cannot access the file ..." occurs when export crystal report

    We are using a web application developed in VS 2005, .NET 2.0 with the bundled Crystal Reports version 10.2.3600.0 running on a Windows 2003 Standard server with 4GB Ram and Dual CPU's. Periodically we are still receiving the following error in our production environment:
    InnerException:
    The process cannot access the file because it is being used by another process.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
    This is occuring at the point on the code where the report is being exported to a PDF. Exporting the report to Excel does not appear to cause the error.
                    Stream outStream = report.ExportToStream(ExportFormatType.PortableDocFormat);
                    byte[] charStream = new byte[outStream.Length];
                    outStream.Read(charStream, 0, (int)outStream.Length);
                    if ((charStream != null) && (charStream.Length > 0))
                        HttpContext.Current.Response.ContentType = "application/pdf";
                        HttpContext.Current.Response.OutputStream.Write(charStream, 0, charStream.Length);
                        HttpContext.Current.Response.End();
                report.Close();
                report.Dispose();
                ds.Dispose();
                GC.Collect();
    Closing and disposing of the report and dataset (xsd) are followed by a call for garbage collection. We are unable to produce the error in our development environmennt and have not at this point been unable to pinpoint a problematic report. The development team members do have SP1 installed. The report limit has not been changed from the standard of 75 jobs.  Reviewed the following document, Re: "The process cannot access the file ..." occurs when export crystal report However this applies to VS 2008. Any suggestions to resolve the issue would be greatly appreciated.
    Thanks,
    Joe

    Good morning Joe
    For more details re. loading please see the following resources:
    [Crystal Reports 2008 Component Engine Scalability|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7025839b-00d4-2b10-33b4-cf0aa9e08412?quicklink=index&overridelayout=true]
    [How Can I Optimize Scalability?|http://msdn.microsoft.com/en-us/library/ms225519.aspx]
    [Choosing the Right Business Objects SDK for Your Needs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7]
    To answer your questions:
    Is it correct to presume that the physical number of CPU's is not factored into the CPL? So that a Server with 2 or more processors does not increase the 3 concurrent requests? Therefore 2 CPU's would not increase the CPL limit to 6 processes?
    - Server with 2 or more processors does not increase the 3 concurrent requests.
    What would be an alternate solution to this limit be, considering the report requests could increase significantly?
    - Only way around this would be to web farm the solution
    If only only 3 reports can be processed at the same time. If one or more of the reports currently processing is taking longer due to receiving large amounts of data, how does that affect the queue? And what is stored in the queue, data and/or the report? Is this something that could consume memory?
    - The report can take as much time as it needs. The result is that one license will not be released until the report is done. There is no data stored, just a pointer to the report. However queued apps will chew up memory, some times to the point of the server becoming unresponsive
    I have read in the documentation on this site, that the dataset sent to the engine is copied in memory during report construction. So if a large amount of data is requested for a report (as an example 10+ MB) Could enough users requesting reports drive the memory up because memory usage doubled due to the dataset?
    - Absolutely. See [Crystal Reports Guide to ADO.NET|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20].
    Understanding the the CR DLL's are loaded on the first report request, do they get released at some point time due to inactivity or garbage collection? How much memory usage could be consumed when they load and stay resident?
    - No they do not. Not as long as the application is running.
    Ludek

Maybe you are looking for

  • How to call Photoshop cs5 function from C#?

    Making a winform in C#,there are several buttons, Click the button to achieve the photoshop cs5 functions through the ps'dll ? All I know is c# call cs4's functions through "interop.photoshop.dll", but I don't know which dll I should call in cs5. I c

  • Webdynpro ABAP and Light Speed Rendering Engine Performance reports

    Hello, We will be applying the NW EhP1 and ERP EhP4 in November this year. I am very much excited about the new Lightspeed rendering technology that SAP has delivered with Webdynpro ABAP. Has anybody installed this already and can you comment about t

  • Problem of Creating Multiple Communication channels for multiple files

    Hi Everybody I have a very basic doubt but this struck me... For a file-XI-file scenario,if multiple files are coming from same FTP server but with different names then we have to create multiple communication channels for all the files of different

  • Complicated Batch Question?

    I've tried doing this a few times and ways and now and I'm running out of options. I need to be able to save 5 different images (800px 600px 400px 150px 35px)so I use 5 actions that put a copyright on the image, reduce the size and do a couple other

  • Multiple cases based on Columns In SQL Query

    There is a SQL query given below, that query performs DateDIff operation by selecting max and min date according to TCard OR you can say id, here' the query SELECT --COUNT(DIFF) Count(DATEDIFF(D, MinDate, MaxDate)/30) AS DIFF FROM ( SELECT    MAX(TDa