Excel format options

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

Similar Messages

  • 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 PM

    Hi 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);

  • 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.

  • Xml report output in excel format without using options tab in EBS

    How to get xml publisher report output in excel format without using options tab in EBS?
    I am getting XML Publisher report output in excel format by using options tab while submitting the concurrent request .
    But i want to get excel output automatically.
    Can anyone give idea to get XML publisher Report output in excel without selecting options tab.
    Thanks in advance
    Sandeep V

    Hey Sandeep,
    I am working on a similar format for a report and if possible can you please give me some guidelines. I have initially created reports using XML Publisher, but for those , the output preview format was PDF. So, if I select the preview format as EXCEL will it give me output in Excel and for this to happen, how do I define the rtf template. I believe the working will be same as for PDF, create a rdf report, get output in XML and apply the template to get the data in Excel or there is something different to this.
    Thanks,
    Sunil

  • What would be the best Adobe Product option for me if I only need it to be able to convert PDF documents to Excel Format?

    Hello, I'm hoping to pick everyone's brain about which Adobe Acrobat Product / License I would need if the only Function I require is the ability to convert PDF documents to Excel format. This would not include Scanned documents.

    Only you can decide what is a "best fit".
    PDF content export to Excel can be performed by Acrobat XI or either of Adobe's online subscription services "ExportPDF" or "PDF Pack".
    Be well...

  • Are You All Able to get the Output In EXCEL Format

    Hi All,
    I have one question. Are You All Able to get the Output In EXCEL Format?? I am working on Oracle Apllication 11.5.10.2 and my XML builder is 5.0.1. Problem which i m facing is this...... Whenever i am submitting a concurrent program with format type different from PDF i could not able to view the ouput in desired format. When i am pressing view output it gives me a file in XML and when i save that file with extention 'xls' or 'rtf' then i could able to see the saved file in desired format.
    Can anyone tell me where is the problem??? Is it a bug?
    I am using microsoft world 2000 sp-3.
    Please give your valuable comments. May be your comments can solve my problem..
    Thanks
    Ravi

    Hi I got Same issue
    When I change Format to EXCEL from
    Submit request>> Option>> Format = EXCEL
    In window I am getting something HTML code and
    when I try to copy it to Browser from Tools>> Copy File in to Browser I am getting following message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://our url.com:8000/OA_CGI...
    <p class="c0"><a name="Text4" id="Text4"><a name="Text1_1" id="Text1_1"><span class="c1">Dept No <...
    But I can see the output when Format is PDF
    Pls suggest solution ,I am using EBS 11.5.10.2.
    Thanks
    Rahul
    Message was edited by: Rahul
    user576181

  • Email functions - formatting options, PDF attachme...

    I was typing an email and liked the autocorrect function, auto spacing...
    BUT there are no text formatting options whatsoever??
    There is no undo button??
    There is no attachment capability..only pics.?? No PDF, word, excel??
    Moderator's note: We have provided a subject-related title to help other forum users easily view and respond to this post.

    Sorry I ain't done yet. My trigger happy go lucky phone send the message at a flash. I tried to work around the none formatting issue using the word in the office but as I could not get it to work as expected within reasonable amount of time and number of tries I gave up. If you format a phrase and copy it it just copies the last format and ignores the copied formatting. Plus how do you make the f. Keyboard go away easily? Why internet has no forward arrow, only back! Is this some kind of joke? Why when texting can't you move back and forth with arrows, just the stupid cursor. NO undo function????? Elementary mr Watson, elementary. +You have to be an oracle to guess when an app will close when u hit the back arrow rather than go back!! Apps must not close like that. Pretty disheartening. Pretty pretty for a good looking phone like this.
    And to be honest I am not going to buy a new phone for another three to four years come hell. Unless wify breaks my old one she uses now and I give her the brick.
    Moderator's note: We have provided a subject-related title to help other forum users easily view and respond to this post.

  • Excel empty with 'excel inplace' option

    Hi everyone,
    in order to show my alv data in an excel format, with 'excel inplace' option, this sheet appears empty. However, if i choose to download the data into a excel file, it appears right.
    Do you know the reason of this?
    Thanks

    Implement OSS Note 782922 - Excel Inplace: Header Sheet contains garbage characters.
    This will require installation of SAP GUI Patch Level 8.
    Also , You can try be installing SAP GUI with all options checked.

  • 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,
    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

  • Cells merge issue when extracting webi report in excel format

    Hi Experts,
    We have some WEBI reports in BO XI 3.1.
    The reports have header where we are showing report name and some values which user selects in prompt.
    Now the issue is that when we save our webi report in excel format, many cells get merge.
    I have read many post on scn which suggest some solutions like changing the autofit width option to no and aligning the header width with colums.
    Tried both the option but no success.
    Is there any other way to achieve this.
    Thanks in advance,
    Regards,
    Rishabh

    Hi,
    We managed to find the workaround for this merge cell issue.
    Sharing it might be helpful for someone.
    - Align the report name and other block in report in such a way that the ends are in line with the end point of any column. The only limitation is that when applying pivot to the excel output we neet to click on any of the ccolumn so that excel identify the data set.
    - Second workaround is to break the webi document in two parts report1 will contain the report name and the block to show the prompt values selected by the user where as report2 will contain the table withactual data. The only limitation with this workaround is that when exporting the repot output to excel we will get two tabs in the excel sheet one containing the prompt values and secont tab containing the actual data.
    Regards,
    RS

  • Subject: How to get MB5B report in excel format

    Dear experts,
    Please help me how I get automatically MB5B Report in excel format. In Layout there is no option to convert excel format.
    regards,
    rss
    Edited by: rs_sharma on Jun 26, 2011 10:16 AM

    Dear experts,
    Please help me how I get automatically MB5B Report in excel format. In Layout there is no option to convert excel format.
    regards,
    rss
    Edited by: rs_sharma on Jun 26, 2011 10:16 AM

  • Unable to save webi report in excel format

    Hi All,
    I have a question. I recently upgrsded my internet explorer from IE 7 to IE 8.
    Previously, i was able to save webi reports in excel format without any issues.Even after upgrading to IE version8, i was able to save webi reoprts to excel without any issues for 2 weeks.
    Suddenly I am unable to save Webi reports in excel format now.When I select the Save to my computer as Excel option the saving dialog box appears and hangs forever.
    Can someone please advise me on this??
    Please hel as it is very urgent.

    Hi All,
    Trying to replicate WEBI Excel Download issue.
    Operating system : Windows 7
    Internet Explorer : IE8 Version 8.0.7600.16385CO.
    Jre Version : 1.6_ greater than 1.8 version.
    If anybody having above specifications in your machines Please try to save a webi reports to excel format and send me the results.

  • Saving the report in Excel format form BO

    Hi Team,
    Would like to know how to provide/grant an access to User to save his/her BO reports in Excel format. Save as option is not being highlited for the user for saving the data into EXcel format.
    Thanks.

    Hi,
    Just check the preferences in the WEBI,
    Just goto the option under preferences and check whether Prioritize easy data processing in Excel is enabled.
    Select a priority for saving to MS Excel:
       Prioritize easy data processing in Excel 
    Regards,
    Ragoth.C

  • Download alv report in excel format in Linux

    Hi All,
    I am working on SAP GUI for Java in Linux PC. I have installed
    Open Office.
    After executing an alv report there is no spreadsheet option
    to download the report in excel format .
    Also, when doing Save as Local File -> Spreadsheet ,
    the report is not downloaded in proper format.
    So, how to download the alv reports in excel format ?

    Hi Vinod ,
    Save as Local File -> Spreadsheet
    It will ask for Directory and file name with .xls format . Give proper name e.g. test.xls and save, and after saving file right click on the file and click on Open with "OpenOffice.org calc".
    It will definetly work.
    Abhijeet

Maybe you are looking for