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.
Similar Messages
-
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 -
Suppress "Excel format options" dialog when call CRPE
I'm looking at pretty old CRPE dll (written in Nov 1991)l now, to find a way to export excel without "Excel Format Options" dialog.
I have a crystal report and want to export to excel. Before call API function "PEStartPrintJob", want to set up all excel format options and then run the print job without the dialog popping up.
I have CR 9.0 installed on my computer.
Any idea?
Thanks.
Edited by: JasonLi on Jul 16, 2010 4:45 PMHi Jason,
Be aware that CR 9 is the last version you are licensed to use crpe32 as your report engine. It's be deprecated. Moving forward you'll have to move to Visual Studio .NET and use the Report Application server as the report engine.
Also be aware that the exporting format changed as of CR 8.5.
Here's the code that should work for you:
// Export to XLS
// Initialize members of diskOptions
memset(&diskOptions, 0, sizeof(UXDDiskOptions));
diskOptions.structSize = UXDDiskOptionsSize;
diskOptions.fileName = "c:
tmp
report.xls";
// PEExportOptions
memset(&XLSFormatOptions, 0, sizeof(UXFXlsOptions));
XLSFormatOptions.structSize = UXFXlsOptionsSize;
XLSFormatOptions.bExportAllPages = true;
XLSFormatOptions.bUseFormatInDataOnly = true;
// Initialize members of XLS format
memset(&exportOptions, 0, sizeof(PEExportOptions));
exportOptions.StructSize = PE_SIZEOF_EXPORT_OPTIONS;
lstrcpy(exportOptions.formatDLLName, "crxf_xls.dll");
//exportOptions.formatType = UXFXlRecDumpType;
exportOptions.formatType = UXFXl97Type;
// Initialize members of Destination Options
lstrcpy(exportOptions.destinationDLLName, "u2ddisk.dll");
exportOptions.destinationType = UXDDiskType;
exportOptions.destinationOptions = &diskOptions;
exportOptions.formatOptions = &XLSFormatOptions;
// Start Exporting
if (!PEExportTo(jobNumber, &exportOptions))
CString temp;
temp.Format("Error in PEExportTo %d", PEGetErrorCode(jobNumber));
AfxMessageBox(temp);
// Start the job
if (!PEStartPrintJob(jobNumber,true))
CString temp;
temp.Format("Error in PEStartPrintJob %d", PEGetErrorCode(jobNumber));
AfxMessageBox(temp); -
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 -
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.0Umm, 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 -
I'm working on a quote report which has narrative sections as well as a table. I can get the report to look great in the application but it has formatting problems once exported to excel.
In one of my narrative reports I have a simple table with a few columns. Once exported to excel the first narrative column is the entire width of the report table below it. The large cell row is also merged cells in excel.
Is there anything that can be done to help force how the report goes into excel?
I have also tried creating the report in a narrative html table to export into excel.Can someone explain if they face similar issues as I am when you export a report output on portal to Excel it takes huge size. I assume it because of all the color formatting etc. but is there a way to reduce this size. 3.5 Bex Analyzer same report takes only 3 MB while if I export it from portals it takes 32 MB.
-
We're using Crystal 11.5 & 12 .NET interface.
We want to set certain export formatting options for the Excel Data Only export format and have not been able to find the appropriate properties or methods in the documentation. We have used the following code with the COM interface which works properly. However we have been unable to make this work in .NET. The list of the properties are as follows:
ExportOptions.ExcelExportAllPages = True
ExportOptions.ExcelExportImagesInDataOnly = True
ExportOptions.ExcelUseWorksheetFunctions = True
ExportOptions.ExcelMaintainRelativeObjectPosition = True
ExportOptions.ExcelMaintainColumnAlignment = True
ExportOptions.ExcelExportPageAreaPair = True
Does anyone know what the appropriate .NET methods/properties are for Excel Data Only export?You will have to use the RAS SDK. Download the Report Application Server 12 SDK help file from here:
http://help.sap.com/businessobject/product_guides/boexir31/en/rassdk_net_apiRef_12_en.chm
and then search for export. Then see ExcelExportFormatOptionsClass properties.
For more info re. RAS see:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050afe0-2fa5-2b10-658d-98f214ba6a4a
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f006a5e6-7e64-2b10-8a84-8b15ca5cacfc
https://www.sdn.sap.com/irj/boc/businessobjects-samples?rid=/webcontent/uuid/b02c1cac-ad86-2b10-88ae-cb36551bab06 [original link is broken]
Ludek -
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. -
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,
HarshaHi 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 -
Export to excel - Formatting issue - OBIEE 11.1.1.5
Hi All,
When an analysis is exported to Excel, some of the values are showing some strange behaviour i.e. some values are multiplied by some huge number as you can see in the excel screenshot below.
BI Analysis Screenshot:
http://i44.tinypic.com/331eopf.jpg
Excel Screenshot:
http://i44.tinypic.com/34snqko.jpg
Is this BI issue or an Excel setup issue? And how to fix it?
Thanks in advance.Hi,
We too faced the similar issue.
We tried ROUND function and it was coming with proper formatting.
Try and let me know further.
Regards,
MuRam
NOTE: Please mention if this resolved your problem/still facing and close the thread to assist others with similar problems. -
CUIC 803 does not export to Excel format.
I'm trying to export real-time and historical report to Excel format in
my lab environment with no sucess. When I click export button, I receive
"error on page" message.
Does anybody here got same problem?
Any sugestion?it is a bug on CUIC with bug ID CSCtq42407 for more information see below link
http://www.cisco.com/en/US/products/ps9755/products_tech_note09186a0080b8f108.shtml -
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? -
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 -
Needs a change in export to excel format
Hi,
i would like to know how to change the format (want columNs to be vertical and headings to be bold) of export to excel feauture
Regards,
CJKI think in that case you would need to change almost everything.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
EA1: Error Export in Excel Format
Trying to export the data in a grid and want to file it to an Excel format getting error
both ways to clipboard and to file as well :
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:368)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at oracle.dbtools.raptor.format.ExcelFormatter.printColumn(ExcelFormatter.java:170)
at oracle.dbtools.raptor.format.ui.TableFormatterWrapper.print(TableFormatterWrapper.java:114)
at oracle.dbtools.raptor.format.ResultsFormatter.print(ResultsFormatter.java:173)
at oracle.dbtools.raptor.format.ResultsFormatter$1.doWork(ResultsFormatter.java:133)
at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
at java.lang.Thread.run(Thread.java:595)
Peter M.Already been reported and I think they've fixed in in EA2.
Maybe you are looking for
-
Configure .p7b(PKCS #7 Certificates) in SOA Suite 11g - Enterprise Manager
Hi, currently configured .jks file in em - weblogic domain - security - security provider configuration which is used by owsm policy to validate my incoming signed soap message. (incoming message is signed with the same jks file). so it is working fi
-
Create hotspot over bluetooth with iphone3gs and pc windows 7
i have a lenovo ideapad with windows 7 home premium. I am unable to create a hotspot through my iphone 3gs over bluetooth. PC states error as "there is no driver software installed for bluetooth perpheral device" tried installing driver, but Apple an
-
Hi Guru's, We would like to retain the inventory of supplies in SAP for one of our plants, but we do not want to cost the supplies in the BOM. Our goals are as follows: 1. Receive the supplies into inventory, primarily for tracking purposes, but d
-
How do I make the font bigger for the file folders in Photoshop Elements 11?
The font for the file folders in Photoshop Elements 11 is too small. How do I make it bigger?
-
Connecting eMate to Mac OS X 10.4 or Windows XP
I am considering buying an eMate 300 as a portable word processor. But how difficult is it to connect an old device like this to either an iMac G4 running OS X 10.4, or to a Windows XP laptop? Thanks. -- Jim