JSP vs Crystal Report Export to PDF problem

I have problem using JSP and Crystal Report 10.
When I exporting report to PDF my font become ??????
(Only thai font but En font is work fine)
This mean when deploy report on J2EE (I used tomcat 5.0.27)
It not support other language or I must use other thing such as
convert all data to Unicode before export it?
Please advice me
thank you
Note: If I export it with Crystal Report IDE it can read.
Message was edited by:
mistwalker

Hi All,
Can any one help me to use JSP for export report via Crystal Report 11, as i m using CR 8.5 with Java and for exporting reports i m using Jacob.dll, and reports hosted in IIS. but due to Jacob.dll facing lots of issue and finally not able to export reports.
Now i installed CR 11 and hosted reports and able to view via my JSP pages, can any one help me how to export report to server.
Appreciate urgent assistance.
Regards,
Imran

Similar Messages

  • Crystal Report export to PDF cause high Heap usage ?

    Hi all,
    As part of our reporting integrated with our JSF/JSP application, Crystal report is converted to PDF then sent to browser for user to display. mean while during peak load our Heap usage could reach 3.5GB - 4GB. So I am suspecting the unclosed byteArrayInputStream is the cause.
    (This is a production application so I am collecting information before change the code)
    Is the unclosed() byteArrayInputStream  really cause the problem ?  (the codes is below)
    Thank you,
    Krist
    ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)
                                     reportClientDoc.getPrintOutputController().export(exportOptions);       
    reportClientDoc.close();
    writeToBrowser(byteArrayInputStream, response, "application/csv", EXPORT_FILE);
    private void writeToBrowser(ByteArrayInputStream byteArrayInputStream, HttpServletResponse
    response, String mimetype, String exportFile)
       throws Exception {
          byte[] buffer = new byte[byteArrayInputStream.available()];
          int bytesRead = 0;
          response.reset();
          response.setHeader("Content-disposition", "inline;filename=" + exportFile);
          response.setContentType(mimetype);
          //Stream the byte array to the client.
          while((bytesRead = byteArrayInputStream.read(buffer)) != -1)
                { response.getOutputStream().write(buffer , 0, bytesRead);}
          //Flush and close the output stream.
          response.getOutputStream().flush();
          response.getOutputStream().close();

    I do not know if my solution to my Heap problem will help any of you but I thought I would just post it here
    just incase yourselves or others come looking for possible solutions.
    I created a very simlpe report with 2 groups and not much in the way of complex functions. Whilst reporting against about
    100 pages of output everything worked fine, but as soon as we pushed the report up to 500+ pages we got all sorts
    of issues.
    java.lang.OutOfMemoryError: Java heap space
    After much hair pulling and trial and error I discovered that the issue came about where I did not declare formula variables as local. I was concatinating various street address details for of the envelope windows.
    Stringvar Address;      //    I was using this declaration
    Global Stringvar Address;    // Specific Global declaration
    Local Stringvar Address;    // Changed to this declaration
    After changing to Local, my report now runs with no hassels. And the memory usage whilst exporting the report has gone from maxing out at over 1GB to almost nothing (dont even get it registering)
    Am sure someone can come up with a better explanation for this and give reasons but just thougth I would share.
    Cheers
    Darren

  • Crystal Report Export to PDF with Group Tree Bookmarks

    Dear Forum
    I have created a Crystal Report aspx page with an export function of the report to pdf. So far all has been successful, except form one little annoying this. The report does export to a pdf file and it does create bookmarks based on the group tree, BUT when opening the pdf file the bookmarks hiest point which should be the file name is the really long temp file name with .rpt as an extension. I have looked every where to try to get it to write the filename to the bookmark hierarchy without success.
    I come you you all for any form of help to solve this issue.
    My code is below
    CrystalDecisions.Shared.ExportOptions export_options = new ExportOptions();
                export_options.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
                string ext = ".pdf";
                string reportName = "Filename";
                CrystalDecisions.Shared.PdfFormatOptions pdfOptions = new PdfFormatOptions();
                pdfOptions.CreateBookmarksFromGroupTree = true;
                export_options.ExportFormatOptions = pdfOptions;
                report.ExportToHttpResponse(export_options, Response, true, reportName);
                Response.Clear();
                Response.Buffer= true;
                Response.End();
    Below is an image of the output
    Any and all help is greatly appreciated

    Using the search box in the top right corner and entering the search string 'bookmark pdf crystal', the very 1st KBA is:
    1331152 - Report exported to PDF format with bookmarks displays the bookmarks as report name plus a GUID
    Please see if this resolves the issue for you.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Issue with Crystal Report export to PDF

    Have a report in Crystal Report 2008. The report runs fine, but would like to export it to PDF/EXCEL, but nothing happens when I select the Export type(i.e. PDF,Excel, etc).
    Steps to replicate:
    1. Run Crystal Report
    2. Click on EXPORT button.
    3. Select the Export type (PDF).
    4. Click on EXPORT - Nothing happens nor does it return any error.
    Would someone be able to provide some tips on this issue
    Thanks

    The problem is that the 3rd party is using some CR SDK. We don't even know what SDK that is. They should be coming here and asking us to help them on your behalf. It is almost impossible for us to help, not knowing how they implemented the SDK, which SDk, etc..
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • CRYSTAL REPORT EXPORT TO PDF INSERTS lowercasee i after t

    I have a crystal report file that is stored as image type in table (SQL Server).When i open the report file in my application (Visual Studio (C#) ), it shows the required one.But When i export to pdf  and save it to my local hard drive, and if i open that file, i find that after every lowercase 't' , letter 'i' is appended.I searched through google and found that it migh be a font issue.Even after changing the font, i was not able to resolve the issue.
    Example : 'Project'   becomes  'Projecti'
    Please provide a resolution to this issue

    See if KB [1547961  - The character 'i' is added after every lower case 't' when a report is exported to PDF file format|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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343337333933363331%7D.do] helps. Also, search these forums. There are a few threads on the issue here.
    KB was found by using the following search term; 'character i crystal net' )as well as a number of variations. (Use the search box in the top right corner of this web page .
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Crystal Report exported as PDF in BO 4.1 SP03 is creating Margins

    Our users began complaining this past weekend (6/29/2014) that our Crystal Reports that are formatted to fit to letter head page size in
    PDF format are seeing their columns truncated because Adobe is imposing a 1/4 margin on the top and sides of their reports, causing dollar values to truncate a digit at the front or back of their numbers -- NOT a good thing.  We have been up on SP03 for several months, but just started seeing this change recently.  We also just recently upgraded to CR2011 SP09 a few weeks ago.
    Are there new settings that we can tweak to remove the PDF margins on the server?  Anyone have any ideas?  We will try any idea, no matter how far-fetched as it may seem.
    Thanks,
    BO Admin in the Dark, losing numbers on reports.

    I solved this problem by setting in the report Design -> Page Setup - [X] No Printer - [X] Dissociate Formatting Page Size and Printer Paper Size

  • Crystal Reports Export to PDF and Security

    I am writing a PC application in VB.Net (using Visual Studio 2005 and which ever Crystal Reports package comes with it) which utilizes Crystal Reports and exports the reports to PDF files.  My company creates other PDFs through other programs and is able to set different security options on those PDFs to prevent users from being able to edit them in Adobe Acrobat.  I believe this involves setting a password and a few other options.  Is there a way to do this when creating a PDF by exporting to PDF a Crystal Report?
    Any help or advice on this matter would be greatly appreciated.

    Could you provide me a link and/or more informationa bout this Crystal Reports Scheduler?  I have another issue I'm trying to take care of and I'm wondering if this could help me.  I use the Crystal Reports that comes with Visual Studio 2008 to build my reports and then turn them into PDFs.  However these PDFs are not [section 508|http://www.section508.gov/|Section508.gov] compliant.  I need to add [tagging|http://www.acrobatusers.com/tutorials/what-are-pdf-tags-and-why-should-i-care|What are PDF tags and why should I care] to the PDFs.  Do you know if the component you mentioned can do this?  Or of any other product that can?
    [This|Export to PDF - Section 508 Accessibility Compliance; is the thread my other question is on.
    I'd appreciate any information you could give me.

  • Unable export crystal report XI to pdf on window server 2003 SP1

    I have a class asp function to export crystal report XI to pdf file, it is workable at winXP but when i copy it to window server 2003, it exported the file with zero length (file size is 0kb).
    when i try to open the zero length pdf file, it shows the file is already open or in use by another application.
    when i run my export function, i can see there is a new file created at the folder "C:\windows\Temp", when i try to open the tmp file, i get the message "The process cannot access the file because it is being used by another process", i can open the tmp file after i end the process "w3wp.exe network service", the data in the tmp file is exactly what i need to export to the pdf file.
    At the window server 2003, I have installed the Crystal Report XI developer edition,
    For the web application folder and the pdf export folder, Read, Write and Modify permission has been set for the following accounts:
    1. myServer\Administrators
    2. myServer\ASPNET
    3. myserver\IUSR_myserver
    4. myServer\IWAN_myserver
    5. Network Service
    6. System
    7. myServer\Users
    I think it is the permission problem, but how to set the right permission at the window server 2003 SP1? please advise. thanks

    Hello,
    It is a permission issue. When you export Crystal first tries to write the file to the local TEMP folder and then delete it to see if it has read/write permissions. If it fails to delete the file you need to give the TEMP folder on the WEB server permissions for your application. Check Microsofts WEB site on how to set permissions on shared folders for your ASP application.
    You may want to search in forums also, this looks familar.
    Thank you
    Don

  • Hi Expert , crystal report export problem. system not responding

    Hi,
    crystal report export problem. system not responding.
    Thanks
    Rajkumar Gupta

    Dear Raj,
    Please try this
              Try
                Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
                Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
                Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
                Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
                Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                rptDoc.Load(rptPath)
                rptView.ShowExportButton = True
                rptView.ReportSource = rptDoc
                For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
                    oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                Next
                For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
                    For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
                        If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                            oSubReport = rptObject
                            rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
                            For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
                                oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                            Next
                        End If
                    Next
                Next
                'Setting Paper
                Dim rawKind As Integer = 0
                Dim printSet As New System.Drawing.Printing.PrinterSettings
                For i As Integer = 0 To printSet.PaperSizes.Count - 1
                    If printSet.PaperSizes.Item(i).PaperName.ToUpper = PaperName.ToUpper Then
                        rawKind = CInt(printSet.PaperSizes.Item(i).RawKind)
                        Exit For
                    End If
                Next
                Dim MyTest As New SaveFileDialog
                rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
                rptDoc.ExportToStream(ExportFormatType.Excel)
                'rptDoc.SaveAs("C:\TBKING.xls", True)
                '''How to export the report
                Try
                    Dim CrExportOptions As ExportOptions
                    Dim CrDiskFileDestinationOptions As New _
                    DiskFileDestinationOptions()
                    Dim rename As String
                    rename = rptName.Replace(".rpt", "")
                    Dim CrFormatTypeOptions As New ExcelFormatOptions
                    CrDiskFileDestinationOptions.DiskFileName = _
                                                "c:\Report\" & rename & "_Export_File.xls"
                    CrExportOptions = rptDoc.ExportOptions
                    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.Excel
                        .DestinationOptions = CrDiskFileDestinationOptions
                        .FormatOptions = CrFormatTypeOptions
                    End With
                    rptDoc.Export()
                Catch ex As Exception
                    MsgBox(ex.ToString)
                End Try
                '' end by kevin shah
                rptView.Show()
                rptView.ShowExportButton = True
                Dim oFrm As New System.Windows.Forms.Form
                rptView.DisplayGroupTree = True
                rptView.Dock = System.Windows.Forms.DockStyle.Fill
                rptView.Location = New System.Drawing.Point(0, 0)
                oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
                oFrm.Controls.Add(rptView)
                oFrm.Name = "Report Viewer"
                oFrm.Text = "Report Viewer11"
                oFrm.ResumeLayout(True)
                oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
                oFrm.TopMost = True
                oFrm.ShowDialog()
            Catch ex As Exception
                objMain.objApplication.MessageBox(ex.Message)
            End Try
    By pressing this button XLS file be generated on C:\report\
    Hope this will resolved the issue
    Thanks
    Kevin

  • Crystal Reports export and print fails with SSL / https but works with http

    Windows 2008 Server, 32-bit (IIS7)
    ASP.NET 2.0
    Ajax 1.0
    Crystal Reports version 10.5.3700.0
    http:  printing works, export works
    https:  printing not working, only export to MS Excel and MS Word work.
    I am able to generate reports using both http and https, and the toolbar icons are all showing.  However, I am unable to print or export properly with SSL.
    Printing prompts me with a select printer window, and then a window 'Retrieving Page 1' follow by two messages from Crystal Print Control both stating:
    A communication error occured.  Printing will be stopped.
    Exporting generates various errors depending on which export method is being selected (however Excel and Word work over https).
    I've found the same problem on this site and other forums, but never a resolution to get exporting and printing to work with SSL.  Will someone please provide me assistance or possibly relay what settings they're using if they have Crystal Reports export or printing working over SSL in IIS7?  Everything works fine when I change the address from https to http.
    Please let me know if I can help by providing further information.  We've gone through a great deal of possible solutions with code and I'm currently looking in to IIS settings again.
    Thank you.

    Thanks Ludek. I got it by searching KB number.
    Unfortunately, it didn’t fix my problem even my IE (IE8 and IE 9) has correct setting.  I double check my version. PrintControl.CAB is version 10.2.0.1146. we use VS 2005 Crystal report and VB .NET. It works fine on HTTP. But when we use HTTPS (SSL Certificate from go daddy).
    1: Crystal report export
                Export to MS Excel, Word: pop us “File download”, then click “Save”. It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to RPt, Rich text format: It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to PDF : nothing happened.
    2: Print:
                Pop up dialog to select printer, click “Print” “. Shows windows “Crystal Report Viewer” and pop us error message box. Title is “Crystal Print Control”. Message is “An communication error occurred. Printing will be stopped”. Click “OK” and pop up error message box again.
    Please advise.
    Thank you very much!

  • Crystal Report  export into excel error

    Dear All,
    please suggested Me below issues.
    i created crystal report for sales employee.report is coming correct but while export to excel is showing alignment problem.same report export to pdf is good.i want to export this report to excel without change the alignment.How plz suggested me how to do this?
    Thanks&Regards,
    P.Pratap

    hi taruna and pankaj
    Thank you for  your valuable replies.
    i have deleted all space's between fields in report and While Exporting crystal report into excel i selected  Microsoft Excel Data  only Option.
    Now report is exported without changing alignment.
    Thanks& Regards,
    P.Pratap

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Crystal Reports 8.5 export to PDF problem

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

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

  • Problems with the report export in PDF format

    Hi All,
    I am new to this forum.
    I'm developing a web application that uses Java Reporting Component (JRC) to display crystal reports.
    I have three problem:
    1) I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
    with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
    2) I want to print multiple reports one after the other to reduce the time (possibly joining two or more reports into a single PDF)
    3) I want to insert, in the jsp page filters, the number of pages to print from the same report (without
    opening it with Adobe Reader (Microsoft Word))
    Can anyone help me? or can give a simple java code to do the same.
    Thanks in advance.

    Hi, this works for me in 4.6B:
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
            BIN_FILESIZE            =
               filename                = i_pfad
               filetype                = 'BIN'
       IMPORTING
            FILELENGTH              =
          TABLES
                data_tab                = i_att_cont
          EXCEPTIONS
               file_write_error        = 1
               no_batch                = 2
               gui_refuse_filetransfer = 3
               invalid_type            = 4
               OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE i000(zv) WITH 'Problem mit PDF Darstellung'.
      ENDIF.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = spoolnr.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                document           = ' '
                commandline        = i_pfad
                program            = 'AcroRd32.exe'
           EXCEPTIONS
                frontend_error     = 1
                no_batch           = 2
                prog_not_found     = 3
                illegal_option     = 4
                gui_refuse_execute = 5
                OTHERS             = 6.
      IF sy-subrc <> 0.
        MESSAGE i000(zv) WITH 'Acrobat Reader nicht gefunden!'.
      ENDIF.

  • Layout Issue after exporting crystal report XI in pdf format

    Hi All,
    I have developed a crystal report in XI version. I have set my page layout properties in the report to be in landscape orientation and A2 size sheet with No Printer(optimize for screen display) option unchecked. The problem is when I export the report in pdf and open the report in pdf for printing, it takes the printer preference settings that are set to portrait and letter format. If I change my printer prefence settings to landscape, it works fine. But, I do not want to change my printer preference settings and want that the settings that I am giving in crystal report designer must be taken for printing purposes in pdf.
    I hope, I was able to put forward the question correctly without any confusion.
    Can someone please help me out to find a solution ?
    Thanks in advance.

    Hi Akshay
    Always quote the actual version of Crystal Reports you are working with. E.g.; CR IX is not quite enough and the best place to find the actual version is in the Help | About screen of the CR designer.
    By CR XI, you could mean CR 11.0.x, or CR 11.5.x. If you are using CR 11.0.x, update to CR 11.5 (also referred to as CR XI R2). See this blog on how to.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • How do I setup my time capsule to be a hard drive for two macs?

    I basically want to be able to use my time capsule as a hard drive for both my imac and macbook pro to save storage on both but obviously to have access to everything on both machines. How do I set this up? Thanks.

  • How do I import my email and address book from Netscape mail 7.1?

    I've been using Netscape Mail 7.1 since it first came out, but I'm moving to the Apple Mac world and need to keep my old emails. I've been told by the Apple Genius Bar people that I could do this with Thunderbird.

  • Download music?

    i used to own a pc and i have recently bought an ibook g4. the problem with my old pc is that i downloaded too much music off of limewire and basically killed my computer with spyware. i decided to get a mac because i have been told they dont contrac

  • Got a an error message while installing oracle8i on nt box

    Everything went well till i created the database and then i got the following errors ora - 12560 TNS Protocol Adapter Error and ora - 03114 Not Connected to Oracle Can somebody help me on this or guide me further null

  • Europe unlimited sub

    Hi I bought the europe unlimited subscription I live in uk and I noticed that UK was included in the offer so I bought it but when I try to call uk landline it tells me that I cannot call a number from which country I currently reside in but there wa