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

Similar Messages

  • Exporting Crystal Report to HTML is not working in Windows 7

    Hi Sir,
    I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
    Below is the code to Exporting Crystal Report to HTML in VB.NET.
    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
    Dim CrFormatTypeOptions          As New HTMLFormatOptions
    Dim vFormat As Integer
    Dim CrExportOptions As New ExportOptions
    Dim vRdReport As New ReportDocument
    Dim sfd As SaveFileDialog
    Dim vFileName As String = Nothing
    vRdReport = vRptSource
    sfd = New SaveFileDialog
    If Not (vRptPath = "") Then
        sfd.InitialDirectory = vRptPath
    End If
    sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
    If sfd.ShowDialog = DialogResult.OK Then
        ' Set the disk file options.
         CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
    Else
         Return
    End If
    CrExportOptions = vRdReport.ExportOptions
    CrFormatTypeOptions.HTMLFileName = vFileName
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLHasPageNavigator = True
    CrFormatTypeOptions.UsePageRange = True
    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.HTML32
                        .DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
                        .FormatOptions = CrFormatTypeOptions
    End With
    vRdReport.Export()
    Catch ex As Exception
            MsgBox(ex.ToString)
    End Try
    Code working fine at Windows XP, But it is not woking in Windows 7 environment.
    Please can anyone share your valuable thoughts or ideas reg. this.
    Thanks in Advance
    Deivanayaga Perumal D.

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

  • Drill-down options on exported Crystal reports (PDF/HTML)

    Is it possible to drill-down on the exported crystal reports in PDF/HTML format?

    PDF format does not support drill-down. 
    PDF format supports bookmarking to specific locations in the document, but not something refined as drilling.
    Sincerely,
    Ted Ueda

  • Error While Exporting Crystal Report in XLS

    Hi
    when i am exporting crystal report in PDF or MS-Word its working fine
    When i am going to export crystal report to Microsoft-Excel 97-2000 (XLS) i am encountering ....
    Error in File C:\WINNT\TEMP\{6A5FE727-7FDE-479F-A7D0-96EE33EF5A4F}.rpt: The request could not be submitted for background processing.  this error...
    Can anybudy plz have its solution??
    Edited by: vishal patil on Sep 29, 2008 3:21 PM

    Hi Visahal,
    Try to re-install the export excell dll files.  Go in Controll pannel Add and Remove ProgaramsClick on Crystal Reports Click on ChangeSelect Add/RemoveThen expend ExportSelect Excel export and click on ok to reinstall the excel export dlls.
    After re-installation try to export to excel.
    Thanks,
    Sastry

  • Need to export OBIEE report in native excel format

    Dear All,
    Apologies if this issue has been discussed earlier in this forum. I am posting this afresh since I could not find a proper thread pertaining to this problem.
    Here is a snapshot of my issue:-
    While exporting a report in excel this exports this in mhtml format instead of native excel. As a result, the generated files are way bigger than expected and every day we are receiving multiple complaints from the end users. We tried to fix this by changing the messages files as mentioned in few blogs but could not make this work. Our current reporting system is on 11.1.1.6.
    In some of the online blogs I read that this issue is supposed to be resolved in 11.1.1.7. Can any one please confirm if this is indeed the case? Also, if any one can advise of any other resolutions it would be really helpful.
    Thanks in advance.
    Regards

    Vbez1,
    Thanks for your response.
    The way we are working at the moment is :-
    1. Ask users to download in .csv if they just need raw data
    2. While storing/sending the .xls files we have asked them to save the file as a excel workbook
    However no workaround could be achieved for the reports sent as excels by agents(clogging spaced in user's mailboxes) or actual download volume of the formatted excel reports (excel taking an awfully long time to open the files).
    As you mentioned, I heard that this issue was fixed on 11.1.1.7. Since this version is released for more than a quarter now, I wondered if someone out there can confirm that this has happened really.
    Regards,
    Sudarshana

  • 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

  • Hyperlink error : on Exporting crystal report to Editable RTF format

    Hi , In my crystal report I have hyperlink which works normally. Now when I export this report to Editable RTF format; the hyperlink gives error "Error! Hyperlink reference not valid. "
    It works for other formats.
    Please help

    This issue was patched for Crystal Reports XI R1
    Hot Fix Name: commonXIwin_chf.zip
    Adapt Number-ADAPT00408450
    Description:
    When exporting a report with email hyperlink to editable RTF format,
    the links do not work.
    New Behavior:
    This is now resolved.
    Here is a link to the hotfix:
    ftp://ftp1.businessobjects.com/outgoing/CHF/commonXIwin_chf.zip
    If you are using XI R2 and are still encountering this, then please check that you have installed the latest service pack (SP3) - and if the issue still occurs, then this may need to be tracked as a bug again.  However my understanding is that this was fixed for R2
    a programmer learning programming from perl is like a chemisty student learning the definition of "exothermic" with dynamite

  • Export crystal report to html in java

    Hello Friends,
    Could you please tell how how can i export my crytsal reports to html in java.
    Thanks & Regards,
    Aru

    Thansk for your reply.
    Is there any workaround to implement html export of crystal report in java.
    If not when will this be available in java sdk.
    Many Thanks
    Aru

  • Error while exporting crystal report to excel format or word format

    i am using vs 2010 and sap crystal report(version 13.0.0.99) for vs 2010. when i export report to excel(97-2003 format) from crystalreportviewer, i am getting error that application has stopped working.  I also have ms-office 2007 install on my pc.
    when i see eventlog of system i notice following error:
    Faulting application name: NBFCForms.exe, version: 1.0.0.0, time stamp: 0x4e170b01
    Faulting module name: crxf_xls.dll, version: 13.0.0.99, time stamp: 0x4cc412ac
    Exception code: 0xc0000409
    Fault offset: 0x0009742e
    Faulting process id: 0xc60
    Faulting application start time: 0x01cc3e1e5657a4a4
    Faulting application path: C:\Users\Harshada\Desktop\NBFCDeploy\NBFCForms.exe
    Faulting module path: C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crxf_xls.dll
    Report Id: f0bae850-aa11-11e0-a98e-0019d144259b

    Thanks Roberto and Kalpana.
    This link solved the problem:
    http://social.msdn.microsoft.com/Forums/en-US/bcf792f4-4da3-4dac-b689-60168e695683/error-internet-explorer-cannot-download-edreportviewerwebcontrolaxd-from-site?forum=vsreportcontrols

  • 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

  • Invalid Key code Error while installing crystal report server 11

    While installing crystal report server 11,i am facing an erro which says Invalid Key code Error.I had raised this issue to SAP customer support and attaching the conversation that we had.PLEASE HELP me to resolve the issue.
    MAILS--Dear Mohit,
    Thanks for the patience.
    We have received the below update from the Licensing Team.
    You received your permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    You did not purchase these licenses for Crystal Reports Server, but purchased it for Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but you elected to use version XI instead and received key .
    You would need to enroll the licenses in maintenance if you want to upgrade them.
    In case of any queries please create a ticket via the Service Market Place.
    Regards,
    Jessy
    Customer Interaction Center
    SAP Active Global Support
    Hello Jessy,
    The customer received their permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    They did not purchase these licenses for Crystal Reports Server, they purchased Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but they elected to use version XI instead and they received key .
    They cannot decide to upgrade now - they must enrol these licenses in maintenance if they want to upgrade them.
    Kind regards,
    Rosemary
    From: BOSAPASIA
    Sent: 29 September 2009 05:49
    To: Savage, Rosemary
    Subject: FW: Crystal Reports Server Installation Issue
    Importance: High
    HI Rose ,
    Need your assistance on the below issue.
    Customer purchased Crystal Report Server XI R2 in 2005. When he is trying to install it now, he is getting an Invalid Key code Error.
    He has provided us the Scanned copies of the Key code and the registration number.Can you please help and check if he can be provided with a Keycode.
    Regards,
    Jessy
    CIC Team Lead
    Customer Interaction Center
    Global Support Centre India
    SAP Labs India Pvt Ltd
    Hi,
    Providing you with the required details to proceed further
    Registration Number-
    Registration Email Address-taxmantra.support
    And also please find attached the scanned copy of the Registration key we got for the Crystal report server.
    Dear Mohitk,
    Thank you for your information.
    I checked with the concerned colleague and received the below update:
    Please check from where you got this key code. If from a paper, please scan it to us. Please let them track to the original paper or email.
    If you have registered the key code, please provide us the registration number or registration email address so that we will try to check for you.
    If you did not register before, as the promotion is over so the key code could not be replaced.
    I request you to kindly check the same at your end and revert with the details.
    Moreover, there are two ways for Crystal Report customer to get support.
    One is customer with bundled product such like BOE and under maintenance. These customers will have an S-user ID and password to log a case in service market place via http://service.sap.com/message
    A learning map was provided, listed on left column.
    The other is customer with only Crystal report product, the support is via SDN.
    http://service.sap.com =>Crystal Reports and Xcelsius Support=>Crystal Reports and Xcelsius Forums
    Customers can first check whether other customer has got the same issue and find the reply from our engineers.
    You may also post your own thread for support.
    Anything else I could help, please do not hesitate to contact again.
    Hi,
    I am providing you with the details required to resolve the issue related to Crystal report installation,for reference of the issue please refer the mail below.
    Please find attached the Scanned Document  containing the details as per the details required by you.
    Hope to see a quick resolution for the issue.
    Dear Mohit,
    Thank you for your e-mail.
    As discussed, I understand that youu2019ve procured Crystal Reports Server 11 in 2006. However youu2019re facing issues with key codes while reinstalling the same. We request you to kindly provide us with below details for further assistance.
    Your customer number:
    Your customer name and address:
    Purchase order number:
    Any other products purchased along with Crystal Reports Server 11
    Any S-User Id:
    Any old case ID:
    Please feel free to contact us if any further queries.
    Hi,
    I am raising this concern on behalf on Taxmantra project (Tata Consultancy Services noida).
    We have bought licensed Crystal Reports Server 11 near by 2006.We are trying to install the crystal server but while installing ,we have encountered with an error message that:-
    "The product key code you have entered is incorrect"
    We are facing the same issue in 2006,I am attaching with this email the conversations that was held in 2006 to get the correct key code.
    Please help us to resolve the issue as early as possible.
    My contact number:
    If you need any further information do let me know

    Ajit,
      By design, the product is not able to be installed under the superuser account.
    1.  Create a new user and specify a home directory for the user without a quota set.
    2.  Copy or move the installation files to a directory that the new user can read.  I suggest you move the installation files directly into the new user's home directory.
    3.  Logon as the new user (or su - newuser)
    4.  run the installation shell script using that new user's account.
    NOTE:  Ensure the system meets the requirements from the supported platforms documents.
    .Tony

  • Exporting Crystal Report To Excel

    Hello,
    I have created a report in crystal for my company. It sorts by rep name, then customer, then products they purchased. When I export to excel, it comes over fine, but the customer name, address, etc. is in the same column as quantity, price, etc.
    I want to be able to sort this date in excel by customer, or product, etc. but cant since some of the data from the crystal report takes up the same columns as other data within excel, also the formating,"******: and other stuff that sperates the data in crystal report to make it easier to read when printed comes over to.
    How can I export this report without all the formating, page formats, etc. not coming over to excel and be able to have each unique field within its own column so i can sort easily in excel.
    thanks
    don

    Hi,
    Place the fields next to each other in report design. Set appropriate width. While exporting in Export window select following format from dropdown
    Microsoft Excel 97-2000 Data only (XLS)
    click OK
    then in Excel Format Options window select
    Excel Format 'Custom: Data is exported according to selected options' radio button. There are three radio buttons.
    In Column Width select 2nd radio button
    Column width based on objects in the : Details (there is dropdown for this)
    And at the end there 8 check boxes. Out of 8 you have to select 4
    check - Export object formatting
    check - Maintain relative object position
    check - Simplify page headers
    check - show group outlines
    Hope this helps.

  • Wanted to know that can we export the Crystal report in .rtf file

    Hi,
    We are using your u201CCrystalu201D product version 8.5, We have  a valid license .
    Our license number is u201CA6A50-0910000-H410031.
    We are facing some problem while creating the report.
    We want to know that, do you have any functionality to export the report in .rtf format.
    Because here we are not able to export the crystal report in .rtf file.
    If this is possible then please help me.
    Thanks in advance..
    Thanks and Regards,
    Abhineet

    If this is a report creation question, post to the Report Design forum:
    SAP Crystal Reports
    Ludek

  • Export Crystal Report

    Here is my code to Exports crystal reports in PDF format but there is a problem i want to import and save file by specifying a location.
    By default it Exports the file in to C drive
    i.e i want to open dialog box and save file how to achieve this please help me.
    Try
                Dim CrExportOptions As ExportOptions
                Dim CrDiskFileDestinationOptions As New  _
                DiskFileDestinationOptions()
                Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions()
                CrDiskFileDestinationOptions.DiskFileName = _
                                            "c:\crystalExport.pdf"
                CrExportOptions = rpt.ExportOptions
                With CrExportOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.PortableDocFormat
                    .DestinationOptions = CrDiskFileDestinationOptions
                    .FormatOptions = CrFormatTypeOptions
                End With
                rpt.Export()
                MessageBox.Show("PDF Report has been Generated Succussfully", "SUCCESS", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1)
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
        End Sub

    You have two ways of exporting;
    1) Use the viewer - you will get the dialog youare looking for
    2) Use the report engine as you are doing - no dialog
    If you need to use the engine, you will have to create your own dialog, retrieve the values entered by the user, then use the APIs you have in your code.
    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]

  • 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

Maybe you are looking for

  • Cannot send email to subdomain

    iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004) libimta.so 5.2 Patch 2 (built 19:30:12, Jul 14 2004) SunOS stud.usm.my 5.9 Generic_117171-17 sun4u sparc SUNW,Sun-Fire-V240 We have a domain xxx.com and a subdomain stud.xxx.com...the first dom

  • Bookmarks appear on other iphones, how do I stop this?

    I understand most people are frustrated when their bookmarks disappear - this too happened to us when we upgraded to ios 6, but after a reboot everything went back to normal. We have three iPhones on our ATT account, and one iPad (wifi only) in the h

  • Can not update folio's since latest Folio Builder panel update

    I want to add articles to my folio, but since the latest update after uploading one page (say vertical) the Folio Builder keeps spinning (see image) and if I log on to the website it syas articles are corrupt. Now I need this folio to be updated befo

  • Work flow( step by step procedure)

    workflow for release procedure of purchase order

  • How to Drawing black color line in photoshop...

    What ever color i choose to draw the line it appear grey....this is getting frustration...and wasted alot of time to figure out what bug photoshop has