Export Excel - with formatting

Dear Friends,
I am exporting the tableview data to the excel using the response->append_cdata function.
I want to export the data byusing formatting options.
For example, I want to export all mycolumn names in Bold letters, with background colors in the excel sheet....
If anybody have a clue on this please help...

Hi,
Excel has a binary format that is very difficult to produce in a "non-Microsoft" environment such as BSP.
There are several post about this kind of issues in the forum.
I think your best shot is to produce XML format for Excel but for this, you need :
Excel 2007
Excel 2003 + Compatibility Pack
on the client side.
Have a look at this page if you want to know about Office 2007 format
http://www.developerfusion.co.uk/show/6170/
Best regards,
Guillaume

Similar Messages

  • Export to excel with formatting was autowrapping text in a cell

    Export to excel with formatting was autowrapping text in a cell without having to check the can grow option.  When the can grow option is checked it does wrap the text however it spans multiple rows, which causes complications when trying to sort. 
    It worked in:
    ProductVersion=10.0.0.533
    ProductName=Crystal Enterprise 10 Embedded
    Doesnt work in:
    Crystal Reports 10.0 Service Pack 6
    After the upgrade the reports did not autowrap, b/c the "can grow" option was not checked.  I believe this was fixed by "ADAPT00305137 Patch ID: 36479914
    Description:
    When users export to Excel 97-2000 with the page-based format, text fields are wrapped, even when the "can grow" feature in the
    Designer is turned off." .   After we turn the option to grow on it does wrap however it spans across multiple rows.  So I guess my question is there a way for it not to span multiple rows when wrapping text?
    Edited by: dforde on Jan 27, 2010 11:12 PM

    I could be wrong, but I believe the export to excel option exports the database values, and the export to HTML exports the values seen in the sheets. If the database values are stored as seconds, the Excel will see them as seconds, and the data will have to be formatted properly in Excel.
    I haven't toyed around with Excel exports that much, but it might be possible to set up a template or macro in excel that would have the proper formatting, and use it when opening the Disco export.

  • Hyperion IR 11 -Export to Excel with formatting

    Hi,
    we have problem in exporting pivot sections to excel with the format intact.
    Is there really an option in Hyperion IR 11, to use this as such?
    I have a script that creates excel, by creating a MHTML And converting it to excel.
    But I need to know other options as well.
    Thanks in advance.

    Hi~
    I get the same question.
    I export pivot sections to excel with the format intact, but it did not work.
    When export pivot sections to excel can not with the format intact
    My script below:
    ActiveDocument.Sections["sectionname"].Export('C:\\test.xls',bqExportFormatOfficeMHTML,true,true);
    What is it wrong? Thanks~

  • Export Excel with BO 5.1

    Post Author: mcolletm
    CA Forum: General Feedback
    Hello all, I would like to know how can I export a table results from a query on excel with BO 5.1.I know that I can do it through "save as" .txt and open this txt file with excel but I don't want this because of bad setup.I know that it is possible to export directly on excel my results but I don't know how...Are there any hidden options I don't cath? Are there any macros which can do this? Thanks in advance for your help Maxime

    Post Author: amr_foci
    CA Forum: Integrated Solutions
    go to this link and find the documentaion about ur specific version
    http://support.businessobjects.com/documentation/supported_platforms/default.asp
    u will find supported platforms and connectivites
    good luck

  • Crystal Report 10 Export Excel (with gridlines)

    Post Author: Angel Tam
    CA Forum: JAVA
    Hi,I am now using Crystal Report 10 with Java to export the report to excel format.  I can do it successfully but all the gridlines (border) are lost.  Is anybody know how to set this feature.  My source code is as follows.<%@ page contentType = "text/html; charset=UTF-8"%><%@ page import = "com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,                   java.util.,                   java.io.,                   javax.servlet.,                   javax.servlet.http.,                   com.crystaldecisions.sdk.occa.report.application.,                   com.crystaldecisions.sdk.occa.report.lib.ByteArray.,                   com.crystaldecisions.sdk.occa.report.exportoptions.,                   com.crystaldecisions.sdk.occa.report.lib." %><%/******************************************************************************************** *                Exporting the report to desired format and destination ********************************************************************************************/// Declare the PrintOutputControllerPrintOutputController poController;try {        // Retrieve the ReportClientDocument object from session        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute("rptDoc");        // Clear ReportClientDocument object from session cache        session.setAttribute("rptDoc", null);                               // Get the print output controller object    poController = clientDoc.getPrintOutputController();     // Use the report documents PrintOutputController to export the report to a ByteArrayInputStream    // Change the int value to a ReportExportFormat    ByteArrayInputStream byteIS = (ByteArrayInputStream) poController.export(ReportExportFormat.MSExcel);    // Portable Document Format    String strExt = ".xls";                // Exported File Extension    String strMime = "application/vnd.ms-excel";    // Mime Type        // Create a byte&#91;&#93; (same size as the exported ByteArrayInputStream)    byte byteArray&#91;&#93; = new byte&#91;byteIS.available()&#93;;    // Copy the contents of the ByteArrayInputStream into a byteArray&#91;&#93;    int x = byteIS.read(byteArray, 0, byteIS.available());     response.reset();    // Clear out response stream            // Set the browser's mime type    response.setContentType(strMime);    response.addHeader("Content-disposition", "inline; filename=exported" + strExt);    // Use the SevletOutputStream to send the byteArray's data to the browser    response.getOutputStream().write(byteArray); } catch (Exception e) {    out.println("An error has occurred while exporting the report.<BR>" + e.toString());    out.println(e);}%>----
    I think these few lines may be useful to do the setting but I don't really how to use.  Hope somebody can help me.  Thank you.ExcelExportFormatOptions XLExpOpts = new ExcelExportFormatOptions();XLExpOpts.setShowGridlines(true);ExportOptions exOpts = new ExportOptions();exOpts.setFormatOptions(XLExpOpts);exOpts.setExportFormatType(ReportExportFormat.from_int(ReportExportFormat._MSExcel));Angel

    Post Author: Angel Tam
    CA Forum: JAVA
    Hi,I am now using Crystal Report 10 with Java to export the report to excel format.  I can do it successfully but all the gridlines (border) are lost.  Is anybody know how to set this feature.  My source code is as follows.<%@ page contentType = "text/html; charset=UTF-8"%><%@ page import = "com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,                   java.util.,                   java.io.,                   javax.servlet.,                   javax.servlet.http.,                   com.crystaldecisions.sdk.occa.report.application.,                   com.crystaldecisions.sdk.occa.report.lib.ByteArray.,                   com.crystaldecisions.sdk.occa.report.exportoptions.,                   com.crystaldecisions.sdk.occa.report.lib." %><%/******************************************************************************************** *                Exporting the report to desired format and destination ********************************************************************************************/// Declare the PrintOutputControllerPrintOutputController poController;try {        // Retrieve the ReportClientDocument object from session        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute("rptDoc");        // Clear ReportClientDocument object from session cache        session.setAttribute("rptDoc", null);                               // Get the print output controller object    poController = clientDoc.getPrintOutputController();     // Use the report documents PrintOutputController to export the report to a ByteArrayInputStream    // Change the int value to a ReportExportFormat    ByteArrayInputStream byteIS = (ByteArrayInputStream) poController.export(ReportExportFormat.MSExcel);    // Portable Document Format    String strExt = ".xls";                // Exported File Extension    String strMime = "application/vnd.ms-excel";    // Mime Type        // Create a byte&#91;&#93; (same size as the exported ByteArrayInputStream)    byte byteArray&#91;&#93; = new byte&#91;byteIS.available()&#93;;    // Copy the contents of the ByteArrayInputStream into a byteArray&#91;&#93;    int x = byteIS.read(byteArray, 0, byteIS.available());     response.reset();    // Clear out response stream            // Set the browser's mime type    response.setContentType(strMime);    response.addHeader("Content-disposition", "inline; filename=exported" + strExt);    // Use the SevletOutputStream to send the byteArray's data to the browser    response.getOutputStream().write(byteArray); } catch (Exception e) {    out.println("An error has occurred while exporting the report.<BR>" + e.toString());    out.println(e);}%>----
    I think these few lines may be useful to do the setting but I don't really how to use.  Hope somebody can help me.  Thank you.ExcelExportFormatOptions XLExpOpts = new ExcelExportFormatOptions();XLExpOpts.setShowGridlines(true);ExportOptions exOpts = new ExportOptions();exOpts.setFormatOptions(XLExpOpts);exOpts.setExportFormatType(ReportExportFormat.from_int(ReportExportFormat._MSExcel));Angel

  • Plus vs desktop in export excel with drill

    Hi,
    In a crosstab report, if I do a drill down, there is a date on the left which remains blank if the date repeats itself.
    If I export the report to excel from DESKTOP, the date (even if blank in the report) is repeated in the excel report which is exactly what the user wants.
    If I export the report to excel from PLUS, the date is not repeated. That causes problems in sorting the report.
    I know where to define the group sort if I want it in a Discoverer report, but where can I define it in a report generated from a drill down?
    Thank you.
    Leah

    I suggest you purchase a case and have a dedicated support engineer work with you directly:
    http://www.sdn.sap.com/irj/boc/gettingstarted
    Or
    http://store.businessobjects.com/store/bobjects/Content/pbPage.CSC_map_countyselector/pgm.67024400?resid=jFmmLgoBAlcAAALO-iYAAAAP&rests=1278687224728

  • Copying SQL Script from Oracle SQL Developer into Excel with formatting

    I need to copy a SQL Script into Excel in order to develop some VBA code. Is there any nice way that I can copy SQL Script from Oracle SQL Developer into Excel and retain its formatting? I am a stickler for having legible, readable SQL and like to have all my columns lined up and aliases lined up. When we used to use SQL Navigator, the tab formatting seemed to copy and paste just fine. Now that we have migrated to Oracle SQL Developer, the formatting seems to get all messed up.
    And suggestions are greatly appreciated and Thanks in advance for your review and am hopeful for an answer.
    Thanks.
    PSULionRP

    I suppose you want a real tabulator instead of spaces. You can configure this in the preferences (SQL Formatter - Oracle). You have to apply it then to your existing code (e.g. CTRL-F7), but new code should get it right from the start.
    Hope that helps,
    K.

  • Exporting Excel with shielded fields

    Hello,
    I have develop an Application where the user can produce an Excel-File. In this Excel-File are some cells with an formel. This I don't want to show to the comsumer. I have find the "setLock"-Property of the CellFormat, but no "setShielded" or what ever. There is an Attribute is called "isRead", but I can not set this Attribute. In Excel I have this option, but not in this API. Does anybody of you hove an solution for this?
    Thanks,
    Peter

    I've tried that but you have to go through the import wizard to get the data into Excel. I've looked through the API's for Excel to find out how to automatically import the CSV file but have not found anything yet. Any suggestions?

  • Download ALV output to excel with formatting

    Hi All,
    i want to download ALV output to excel sheet and the uneditable fields in ALV oputput should be locked (uneditable) in excel also.
    Can you please tell me approach to achieve this functionality?
    Thanks in advance.

    Thanks Vamsi. Your Suggestion was helpful.
    I have used excel integration and used SET PROPERTY OF (COLUMN) 'LOCKED' = 1.
    For more details refer below mentioned link.
    http://webcache.googleusercontent.com/search?q=cache:SoY6hFC17PoJ:wiki.sdn.sap.com/wiki/display/Snippets/Download%2BData%2Binto%2BMultiple%2BSheet%2BExcel%2BDocument%2Bwith%2BNon%2BEditable%2BColumns%2B(Password%2Bprotected)%2BUsing%2BABAP%2BOLESetPropertynoteditableexcelsapABAP&cd=1&hl=en&ct=clnk&gl=in&source=www.google.co.in (http://webcache.googleusercontent.com/search?q=cache:SoY6hFC17PoJ:wiki.sdn.sap.com/wiki/display/Snippets/Download%2BData%2Binto%2BMultiple%2BSheet%2BExcel%2BDocument%2Bwith%2BNon%2BEditable%2BColumns%2B%28Password%2Bprotected%29%2BUsing%2BABAP%2BOLESetPropertynoteditableexcelsapABAP&cd=1&hl=en&ct=clnk&gl=in&source=www.google.co.in

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • Export with formatting

    How would we export pdf with formatting. Basically we save the data and use it to show the pdf later. We are missing the formatting while we do so.

    With AA XI, there are options to make the export look much like the PDF versus retain formatting as well as Acrobat can determine the format. From what I have seen, AA XI has done the best yet of any AA version. It gets better if the PDF was made with the tagging that comes with PDF Maker in OFFICE and such. That tagging contains information about the formatting of the original file. So a lot depends on how the PDF was made. Other than that, the best you can do is to try the various options with the export to the other file types to see what works best. Do not expect perfection -- the export was never a major goal of a PDF that is supposed to be a final form.

  • Exporting alpha numeric values using File Export Excel option

    Hi,
    When we export the report output to excel using the option file /export/excel/fully formatted grids and text, the text where we have alphanumeric characters, only the number component is getting exported. An example is 'Switch - Cisco 3750 (Goa) '. When the report data is exported, we can see only 3750 in the excel file. How do we fix this issue. Any help is highly appreciated.
    P

    Hello,
    Try exporting in the 'fully formated grids and text'. It shouldl give you the 'member alias' used in the report.
    Looks like if you export in the 'querry ready grids and text' it will show the 'member name' as in database although the report may have used the 'member alias'.
    Regards

  • How to export data from MS Project 2010 to MS Excel 2010 with formatting

    I have created a Project 2010 export map to Excel 2010.  It works fine.  I have two questions that I cannot determine an answer.  I'm not sure if its a project or excel setting.  I have spend hours trying to make it
    work with little success.
    1.  When the task name field is exported to excel it losses summary/task indent.  Is there a way to set it up so it works via the export map?
    2.  The Start & Finish fields in project is setup as 5/26/11 when they exports to excel it shows up as 5/26/11 8:00 AM.  Is there a way to set it up either in project export map or excel so its formated as a date field. 
    Excel's Format Cell function does not seem to work converting them back to just 5/26/11.
    How can I keep the outlines and formatting in my data while exporting it to Excel.
    I would appreciate any guidance.
    Yogesh

    Rameshchandra --
    Two things I would recommend:
    Do not add your question at the end of a post that is marked as Answered.  In the future, please post your question as a new question so that everyone will notice it and be able to answer it.
    Because this is a programming question, please repost your question as a new post in the Project Customization and Programming user forum at:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/home?forum=project2010custprog&filter=alltypes&sort=lastpostdesc
    Hope this helps.
    Dale A. Howard [MVP]

  • Export webi to excel with the exact same format

    Hello expert,
         I develped a webi report, but when I exported it into excel file, its format is defferent from WEBI report, such as text for legend with multple lines in webi presented in one line in excel,  there are a few descrepency.  please tell me how can I export webi to excel with the exact same format?
    Many Thanks,

    Hi,
    There are options for the "save as excel" step .   either a) for formatting ,   or b) for data
    these should help.
    The reason why there are 'undesirable'  rows (also, merged rows / columns) is because your report document has table outlines which have been positioned 'by eye'.
    When the rendering algorythm outputs it content,  it's looking at pixel-level , so the relative position of borders can get messed-up. It's mainly due to slightly sloppy formatting.
    Regards,
    H

  • How do I export v-card formatted files for use with either Numbers or Excel?

    How do I export v-card formatted files for use with either Numbers or Excel?

    Did you open Automator and just look around?
    Actions are listed in the left pane.
    You drag them into the workflow on the right in the order you need to process the items that you want.
    If this is a on-off requirement, just make a Workflow. If you plan to use it often, make it an Application.
    If you want to select the contacts you want to export, use a get Selected action. You'd then select the contacts in Contacts App before running the workflow.
    I'm not on a Mac to take screenshots, so you'll have to look at Automator's help or google for more info.

Maybe you are looking for

  • Iphone cannot connect to itunes, iphone cannot connect to itunes

    Please i need help i forgot my iPhone passcode and now it ask me to connect to itunes what do i do please help.

  • Total in Discoverer Plus

    I have created a report in Discoverer Desktop Edition (Version 4.1.44.00.00). The 'Person Code' column has 'Count Distinct Total' and the total has been displayed on the report. When I run the same report in Plus (Release 4.1.44.00.00) the total show

  • Vmfex - veth "unknown e 1"

    I have an issue in which a VM vnic does not show up within the VMs tab within UCSM, the veth on the FI also lists the interface status as ‘unknown e 1’. Note this is not high performance vm-fex. What I have found is the issue only arises when the VM

  • Change to payment card not saved

    I changed the credit card used to pay for my subscription on 20 July from Visa to Amex, but my subscription renewed on 23 July against the Visa. I have a £1 authorisation from "Ayden UK Ltd" showing on my Amex on 20 July so I know the details were ac

  • Exchange server 2013 sp1 hardware requirement for 500 user

    please give me details like CPU ? RAM? HDD? SERVER BRAND NAME?