Crystal reports 13.5 : Export to excel formatting

Hi. We are developing web application using VS 2010. We are using crystal reports 13. Initially we had VB6 application which used crystal reports 8.5. The format for excel report generated by crystal report 8.5 and crystal report 13.5 is different. We are using the export option in crystal report viewer for both reports. Is there any way in which we could make changes to crystal reports 13.5 to achieve similar excel formatting as crystal reports 8.5.

Hi Pooja,
Back in CR 8.5, it was the RDC COm SDK (CRAXDRT.dll) and with CR for VS 2010 it is .NET SDK which are two complete different SDKs and could not be compared.
However, the .NET SDK should export the report same as it is exported through CR designer.
Could you export the report in a newer designer possibly CR 2008 or CR 2011/2013 and compare the exported output with your .NET SDK export?
You could get the trial free download for CR desiner here.
http://www.sap.com/solution/sme/software/free-trials.html
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications.

Similar Messages

  • Handling page breaks in Crystal Reports XI when exporting to Excel

    We generate reports in Crystal Reports and programmatically export them to Excel for our end users, so the user receives both an .rpt and .xls version.  We are upgrading from Crystal 8.5 to Crystal XI and have found with some of our reports that the page breaks in Excel are different in Crystal XI than in 8.5.  The first page will fill to the end and then the next page will contain a few lines of data, the next will be full and the next will contains a few lines.  Viewing the Excel page breaks, there are soft breaks before the short pages and hard breaks before the long pages.  It's as if there is too much data defined for each page so it spills onto the next page before creating another hard page break.  In Crystal 8.5, the paging was continuous as expected.  Is there any way to fix this in Crystal XI?

    Please note, this forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
    As the issue you are encountering is in the CR designer, please post your query to the Crystal Reports Design forum at:
    SAP Crystal Reports
    I'd also suggest adding more detail to your query; version of Crystal Reports used, is this an upgrade issue, new report issue, etc., etc.
    Thank you for your understanding,
    Ludek

  • Crystal Report: Error while Export to Excel

    We are using combination of Crystal Report 10 With
    J2EE, Below source code is working fine While
    exporting to PDF, MSWord, RTF format.
    if(selectedFormat.equals("MSWORD"))
    exportOptions.setExportFormatType(ReportExportFormat.MSWord);
    if(iPageFrom>0 && iPageTo>0)
    RTFWordExportFormatOptions RTFExpOpts=new
    RTFWordExportFormatOptions();
    RTFExpOpts.setStartPageNumber(iPageFrom);
    RTFExpOpts.setEndPageNumber(iPageTo);
    exportOptions.setFormatOptions(RTFExpOpts);
    But am getting following error while exporting report
    to Excel
    com.crystaldecisions.report.web.viewer.ReportExportControl
    Invalid post back event : {0}
    We would like to know, Is SDK feasible for exporting
    to excel or not ?
    If yes! then Please suggest us for same.
    Thanks In advance :)

    I will make sure that I am on the latest patch ie SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    You can find the rumtimes here:
    MSI:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    MSM:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    ClickOnce
    https://smpdl.sap-ag.de/~sapidp/012002523100008782442011E/cr2008sp4_clickonce.zip
    Recompile the app and then deploy.
    What is the .NET Framework used by the application?
    Method of deployment?
    OS where app is deployed, x86 or x64?
    Are you able to export the report from designer ie CR2008 Standalone?
    - Saurabh

  • Export to Excel Formating Option Problem

    Hi all!
    I create a Crystal Reports.when i export to Excel File in a winform app,there has the 'Create page breaks for each page' option,but in asp.net web page.there is only two option,and not include the 'Create page breaks for each page' .I excpet the Excel File was page breaked.
    has any ideas?
    Thanks!
    Ray

    You can use the ExcelFormatOptions to specify what you want the export to look like.
    Look for it here:
    [http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]
    You can also set up the reports export options that you want to always be used by opening the report in Crystal and going to File|Export|Report Export Options.
    I am not sure about the 2nd question.  You will want to create a new thread for that and someone else may know the answer.  Can you do it when you export it from Crystal Reports? If not, then you won't be able to do it from your application.

  • Reports exported to Excel - Formatting issues

    We have two Business Objects Enterprise servers (boxi r2 and boxi r3.1 sp3) running side by side.  We find that reports created using boxi r2 and exported to Excel format look fine.  When we run the same report and export to excel using boxi r3.1 sp3, we encounter the following formatting issues:
    <ol>
    <li>All columns do not fit on pages.  The last 2 to 3 columns spill over onto extra pages.</li>
    <li>There are some columns where most of the values are blank, but when a row is exported that has a value in that column, all subsequent column positions for that row shift.</li>
    <li>All rows do not fit on page.  The last two rows flow onto a new page, then there seems to be a page break.</li>
    <li>On some reports dates are displayed as ######.</li>
    <li>On some reports column headings are  not centered.</li>
    <li>I would appreciate any input that would help us determine a fix for the formatting issues we are encountering.</li>
    </ol>
    The report is executed using CrystalDecisions.CrystalReports.Engine.
    Here is the code from the application that does the export:
                                ExportOptions exportOptions = new ExportOptions();
                                exportOptions.ExportFormatType = ExportFormatType.Excel;
                                exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                                DiskFileDestinationOptions diskOptions = new DiskFileDestinationOptions();
                                diskOptions.DiskFileName = filename + ".xls";;
                                exportOptions.ExportDestinationOptions = diskOptions;
                                ExcelFormatOptions XLOptions = new ExcelFormatOptions();
                                XLOptions.ExportPageBreaksForEachPage = true;
                                XLOptions.ExportPageHeadersAndFooters = ExportPageAreaKind.OnEachPage;                           
                                exportOptions.ExportFormatOptions = XLOptions;
                                rptDoc.Export(exportOptions);
    Please note the following details about our environment:
    <h5>Report Designers:</h5>CR Designer version:  xi Rel 2
    <h5>Developer environment</h5>Has the following installed:
    - Business Objects Enterprise XI Release 2
    - VS .Net  2008
    - Crystal reports Basic for Visual Studio 2008
    - Crystal Report 2008 Runtime SP3
    - Boxi .Net SDK
    - SAP BusinessObjects Enterprise XI 3.1 Client Tools sp3
    - .Net Version:  2.0
    <h5>Crystal Server environment:</h5>Two clustered  Business Objects Enterprise servers with the following installed & configured
    - Business Objects Enterprise XI Release 2
    - Crystal Reports XI Release 2
    - SAP BusinessObjects Enterprise XI 3.1 SP3
    - .Net Version:  2.0
    <h5>Web Servers:</h5>Two load balanced web servers with the following installed and configured
    - Business Objects Enterprise XI Release 2
    - Crystal Report 2008 Runtime SP3
    - Crystal Reports XI Release 2 .Net 2005 Server
    - SAP BusinessObjects Enterprise XI 3.1 SP3
    - .Net Version:  2.0

    Umm, the code you provided has nothing to do with Business Objects Enterprise...(?). So, I'm a bit confused by the mention of BOE and "The report is executed using CrystalDecisions.CrystalReports.Engine" in essentially one paragraph.
    Can you pls explain?
    - Ludek

  • Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report

    When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
    Error in Crystal Report:  Failed to export the report.
    This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter).  We have other subreports (within this same report) that print a sql image just fine.  But, when this subreport prints, the above error appears.
    I can run the same report on an XP machine without error.
    Exportmodeller.dll and crtsv.dll are both installed and registered to the
    C:\Program Files\Common Files\Business Objects\3.0\bin folder
    I have tried opening the report, removing the image, and then adding it back in again to the subreport.
    Still receive the same error.
    Any suggestions?

    >
    Don Williams wrote:
    > RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
    >
    > Upgrade to the .NET components and post your question to the .NET forums.
    >
    > Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
    Don,
    Can you please clarify?
    Our VB6 app that uses Crystal XI RDC runtime components.  Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer).  We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
    We can print/preview/export to excel, but the pdf creation is failing with this error.
    We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue).  Therefore, we have to rollback our .NET product and revert to the RDC code. 
    Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
    When you say  "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
    Thank you

  • How can I schedule an export to excel format of an OBIEE Analysis or Dashboard to a local directory ?

    Hello,
    I would like to schedule with an agent some reports in OBIEE 11g that must be exported in excel format to a specific local directory.
    There is a need for a group of OBIEE users to have a set of reports ready (exported in .xlsx) every morning.
    Furthermore, if the previous scenario is possible then could I deliver a whole OBIEE Dashboard with the same way?
    Any input will be appreciated.
    Thank you in advance.

    Hi,
    As of now , we are not able to save the report in shared location in Linux /Unix.
    Windows it is possible.
    http://satyaobieesolutions.blogspot.com/2013/03/oracle-bi-ee-11g-calling-vb-scripts-to.html
    http://satyaobieesolutions.blogspot.com/2013/03/oracle-bi-ee-11g-calling-js-scripts-how.html
    Thanks,
    Satya Ranki Reddy

  • Composing the URL to call a report to render in the Excel format - SSRS 2012

    Hi,
    I've a report that I need to call by an URL. I've composed this link, using the rs:Format=EXCEL command, but I've an error because the max number of rows is 65.536 for the current version of Excel and the extracted data are more of 150.000 rows. On the report
    server is installed Excel 2013 and so this error it seems strange: the limit of 65.536 rows refers to an older Excel version than Excel 2010.
    My idea is to pass in the URL string a client command, but rc:Format=EXCEL doesn't function.
    Any suggests to me, please?
    Thanks

    Hi pscorca,
    Per my understanding that when you export the large data report to excel by adding the commend "rs:Format=EXCEL"  in the URL, you got some error, right?
    As you mentioned that you are using the new version of excel, so the issue can be caused by the reporting service have some limitation rendering the large data report.
    Please design the report to add page break and parameters which will also avoid some limitation of the excel:
    When you add page breaks in the report. Each page break will defines a new sheet in Excel. Each sheet can handle a maximum of at least 65000 rows. Consider these limits when you set the page breaks in a report.
    For exporting to Excel, do not merge cells in a Tablix data region. In free form reports, align report items vertically. Merged cells and unaligned report items interfere with Excel functionality in the exported report.
    You have mentioned that pass "rs:Format=EXCEL" in the URL string a client command, but doesn't work, please check to make sure you add the commend after the Report URL of the report Server but not report manager.
    Pass a Report Parameter Within a URL
    More Details information for your reference:
    Troubleshooting Reports: Report Performance
    If your problem still exists, I would like you post us the error message you got to help us better analysis about the issue.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Status gui &XXL (export to excel format)command doesnu00B4t work

    hi gurus i copied the standar GUI menu from SAPLKKBL and every thing its ok except the &XXL (export to excel format)command .
    i push this button and nothing happens. The popup doesn appear what is wrong? i have excel in my pc and when i use the %PC
    command it works fine and converts to excel but i need the mmhtml format so i need the &XXL command works . any idea?

    IM DOING SOME TEST I CHANGE THE TYPE OF ALV AND IT WORKS, BUT I NEED TO USE THE REUSE_ALV_BLOCK_LIST_DISPLAY AND THE PROBLEM IS WITH THIS TYPE OF ALV
    Moderator message - Please do not use all caps!
    Edited by: Rob Burbank on Sep 27, 2010 5:25 PM

  • How to Audit the Report which is Export to Excel and PDF

    Hi All,
    Is there any way that we can audit the report which is exported to Excel or PDF and what data the user is exporting to his local computer.
    We can audit the scheduled report with output Excel or pdf but i am not sure about the audit for report export activity to excel and pdf.
    Thanks & Regards,
    Rahul Akurathi

    Hi,
    You said that you have a new request number when you changed the program in Dev. Release that request and ask your Basis guys to move that transport to Testing Client. The program will be automatically updated in the testing client with the changes you have done in Dev when the transport gets imported in testing.
    Reward if useful.
    Thanks
    Aneesh.

  • Help Regarding Exporting to Excel format Crystal Report XI SP5

    I am trying to export a report in MSExcel format but when i do so it gives me an error that the following export format is not supported or recognized ......
    I am able to export into PDF, RTF and CSV (Server Side Only) formats .
    Here is the code i am using provided on the business objects help site :
    <%
         // Working for all but exporting to Excel and Text
         IReportSource reportSource = (IReportSource)session.getAttribute("reportSource");
         session.setAttribute("reportSource", null );
         ReportExportControl exportControl = new ReportExportControl();
         //Object reportSource = session.getAttribute("reportSource");
         System.out.println(exportControl.getName());
        exportControl.setReportSource(reportSource);
        ExportOptions exportOptions = new ExportOptions();
         exportControl.setExportAsAttachment(true);
         exportControl.setName("Excel");
         //exportControl.setOwnForm(true);
         //exportControl.setOwnPage(true);
         String selectedFormat = "2";
         if(selectedFormat.equals("0")/Crystal Report/){
              exportOptions.setExportFormatType(ReportExportFormat.crystalReports);
         else if(selectedFormat.equals("1")/Word/){
                   exportOptions.setExportFormatType(ReportExportFormat.MSWord);
         else if(selectedFormat.equals("2")/Excel/){
                   exportOptions.setExportFormatType(ReportExportFormat.MSExcel);
         else if(selectedFormat.equals("3")/Rich Text Format/){
                   exportOptions.setExportFormatType(ReportExportFormat.RTF);
         else if(selectedFormat.equals("5")/PDF/){
                   exportOptions.setExportFormatType(ReportExportFormat.PDF);
         else if(selectedFormat.equals("6")/Excel without formatting/){
                   exportOptions.setExportFormatType(ReportExportFormat.recordToMSExcel);
         else if(selectedFormat.equals("7")/Text/){
                   exportOptions.setExportFormatType(ReportExportFormat.text);
         else if(selectedFormat.equals("8")/editable RTF/){
                   exportOptions.setExportFormatType(ReportExportFormat.editableRTF);
         else if(selectedFormat.equals("9")/Server Side CSV/){
                   ReportClientDocument reportClientDoc = (ReportClientDocument)session.getAttribute("rptDoc");
                   PrintOutputController printOutputController = reportClientDoc.getPrintOutputController();
                   ByteArrayInputStream byteIS = (ByteArrayInputStream) printOutputController.export(ReportExportFormat.characterSeparatedValues);
                 byte[] buf = new byte[2000 * 1024];
                 int nRead = 0;
                 response.reset();
                 response.setHeader("content-disposition", "inline;filename=example.csv");
                 response.setContentType("application/csv");
                 while ((nRead = byteIS.read(buf)) != -1) {
                     response.getOutputStream().write(buf, 0, nRead);
                 response.getOutputStream().flush();
                 response.getOutputStream().close();
        if (!selectedFormat.equals("9")/Don't use the export control for CSV/){
                   exportControl.setExportOptions(exportOptions);
                   Fields parameterFields = (Fields)session.getAttribute("parameterFields");
                   exportControl.setParameterFields(parameterFields);
                   ConnectionInfos oConnectionInfos = (ConnectionInfos)session.getAttribute("oConnectionInfos");          exportControl.setDatabaseLogonInfos(oConnectionInfos);
            exportControl.processHttpRequest(request, response, getServletContext(), null); //getServletConfig().getServletContext()
           // exportControl.dispose();
    %>
    And if it isn't possible to export to excel then how can i isolate the report/page header sections in CSV format so that i can atleast get headings in the CSV file ..
    Please help me out with This as i am stuck on this for some time now !!

    Only if you export to OfficeHTML or OfficeMHTML and then open with Excel
    Wayne Van Sluys
    TopDown Consulting

  • WAD report export to excel formatting not preserved

    Hi,
    when i export BI 7.1 WAD template to excel and copy to another excel sheet cell formatting changes.color formatting is
    not preserved when we copy to another excel sheet.I tried resetting the "preserve visual appearance of workbook" to the
    exported excel sheet, but this didnot work.I am using excel 2007.
    Can anyone tell me how to preserve the excel formatting for WAD template.
    Thanks,
    Harsha

    Hi Roy
    Have you got the report set to bring back a specific number of rows at a time (ie retrieve data incrementally in sets of : setting in options)?
    If so set this to a larger number of rows, Discoverer will then return all data when the reports is run and will export all data to the spreadsheet.
    Hope this helps
    Melanie

  • Crystal report 8.5 export to csv and rtf format not working with office 2013

    Hi Experts,
    Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
    i debugged the code and found the application hangs at function Report.Export(False).
    below is the code snippet
           .PDFExportAllPages = True 'ePDFExportAllPages
           .PDFFirstPageNumber = ePDFFirstPageNumber
           .PDFLastPageNumber = ePDFLastPageNumber
           .RTFExportAllPages = True 'eRTFExportAllPages
           .RTFFirstPageNumber = eRTFFirstPageNumber
           .RTFLastPageNumber = eRTFLastPageNumber
           .UseReportDateFormat = eUseReportDateFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .XMLAllowMultipleFiles = eXMLAllowMultipleFiles
           .XMLFileName = eXMLFileName
           Report.Export (False) ----Application hangs here and eventually crash
    Looking forward for your help, as it is very urgent
    Regards
    Mohit

    Hi Mohit
    CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
    Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Export to Excel Formatting Lost

    I've got a CR designed such that the report prints out a separate page for each grouping of data bay a certain data field.
    The Crystal format and PDF format look beautiful and the paging is perfect.  Yet when I export to Excel it all runs together and does not page correctly at all.  Plus the formatting is totally screwed.
    Is there a secret to getting the Excel export to behave as the report was written? 
    TIA
    Harry

    <<What version of CR?>>
    11.0.0.1830
    <<What CR SP has been applied?>>
    unknown
    <<Is this in an app?*>>
    The call to create the report is in an app.  Uses CrystalDecisions.CrystalReports.Engine
    CrystalX.RptUtils.GenerateCrystalReport(mDbx, argReportName, argParms, argOutputType)
    Select Case piStrFormat
                    Case "Crystal"
                        tOk = ExportToCrystal(tReportDoc)
                    Case "Excel"
                        tOk = ExportAndView(tExportFolder, tReportDoc, piStrCrystalReportName, "XLS", CrystalDecisions.[Shared].ExportFormatType.Excel)
                    Case "PDF"
                        tOk = ExportAndView(tExportFolder, tReportDoc, piStrCrystalReportName, "PDF", CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat)
    <<If an app, what SDK are you using?>>
    CrystalDecisions.CrystalReports.Engine
    10.2.3600.0  Crystal Reports for .NET Framework 2.0
    <<If you are using .NET, what version?>>
    Microsoft Visual Studio 2005  Team Suite
    Version 8.0.50727.762 (SP.050727-7600) SP2
    <<If the report was created in a stand-alone version of CR, how is the export there?>>
    the report is created in CR v11.0.0.1830 above and uses a stored procedure for the datasource for the fields
    <<"formatting is totally screwed" - a link to a screen shot would help. "Screwed" is not particularly descriptive(?)...>>
    You're right that really doesn't tell you much. 
    The formatting is probably fine for it being an Excel file. Whereas the Crystal viewer and the PDF viewer isolate each page from the other, the Excel has the pages on same screen by its very nature. 
    I think what I may have to do is create another report that basically creates a separate Excel file for each grouping.  I've got screen shots but the content is NDA cept I could pobably zip and send to your email if that's possible or a ftp site......Can the Crystal Report detect Excel export and if so create as many Excel files as groupings?

  • Export in Excel format

    Hi,
    I tried to export the report (crystal report) to excel. Its exporting but the dat format is not exported properly. any suggestion

    Hi,
    Well, yes this can be hair-puller and no matter how much you try, you might still end up disappointed!
    Most of the times it's because of the way the report is designed. Use the guidelines if you're designing a report that would be exported to Excel.
    Make sure all the fields on the details section or on the other sections are evenly spaced and their dimensions are the same.
    Subreports can add to the frustration as they normally tend to create blank cells, rows or columns - Can't do much about it!
    There are two Excel export formats - Excel and Excel (data only). See which one produces the best output.
    Good Luck!
    -Abhilash

Maybe you are looking for

  • How can I fix my ipad when it is disabled?

    I am getting the message from ITunes that it cannot connect with my IPad2 because the IPad access is block with a passcode, the IPad is disabled so I cannot enter my passcode. What can I do to sort this out?

  • Problem in delete

    This is the code for making a delete from databases but i am not able to delete but this line always returns me 1. deleteCourse(array) ; which indicates that deletion is done sucessfully but actully the row is not deleted from databases. Can anyone t

  • What's the maximum RAM logic can use?

    As we all know, the Mac Pros can sport up to 16 gig of RAM. The question is.... how much ram can Logic use? I use piles of samples so i'd love to stick 8 gig in the mac pro (that i haven't bought yet) Is it pointless to spend all that cash? If it can

  • Making Detailed Navigation show, and put som links in there.

    Hi! I am trying to make some links show in Detailed Navigation(DN), but no matter what page i setup it doesnt show and when i expand DN my iviews still doesnt show. I`ve tried to alter my default framework file at the inner page setup to make DN show

  • Videora converter help--- cant watch vids on itunes...

    I converted a video with te videora ipod converter,.. but dont know why... i cant watch it on the itunes... someone plz help me..