Export to excel loses formatting

I have a region whose source is a SQL query.
My SQL query contains function calls that return a value.
source of the region:
select nvl(GETSRHR(:P253_STARTDATE,:P253_ENDDATE),0) as "REQUESTS",
nvl(GETTBHR(:P253_STARTDATE,:P253_ENDDATE),0) as "BENEFITS",
nvl(GETTOTALHRS(:P253_STARTDATE,:P253_ENDDATE),0) as "TOTALS"
from dual
Report template chosen is: default vertical report look 1 (include null columns)
when I run the page the report looks as follows:
REQUESTS 20
BENEFITS 120
TOTALS 140
When I export this it looks like:
REQUESTS     BENEFITS     TOTALS
20          120          140
Why is the formatting lost when I export to Excel? am I missing a step somewhere?
thanks for the feedback

The CSV/Excel export always exports your data horizontally. Similar to what you would get if you were running this in SQL Plus. The vertical look report template only applies to the report when shown in your web page. The template selection has now affect on the structure of the CSV export. If you need to export your data in a different way, one way to implement this would be to write a PL/SQL region or process that stores the data in that format first, e.g. in another table or using HTML DB collections and then write a report that is based on that temporary storage.
Regards,
Marc

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.

  • Export to Excel is formatted differently since we upgraded to XI release 2

    Hi,
    For many of our reports were using the Crystal Reports that came embedded VisualStudio2002. Recently, some of our developers needed to upgrade their laptops to Crystal Reports XI release 2. This forced us to install the Crystal 11.5 redistributable on our web servers, so those developers would be able to run their new reports.
    However, now we are noticing problems with the export-to-excel feature on some of our OLD reports. Even though we have not change/touched the OLD reports at all, the export to excel feature is acting differently.  I strongly suspect it has something to do with the 11.5 redistributable I installed on the servers.
    Specifically, these are the things we noticed missing on our old reports...
    1. Previously, the export-to-excel would mimic the page breaks we setup in the rpt file. Now it does not. The page breaks seem random in the Excel export.  If I export the report to PDF the page breaks seem fine (i.e. exactly how I set them up in the rpt file).
    2. Previously, the page header section would repeat within every page of the Excel document (that is how we wanted it). Now it does not. The page header only shows up once, but then does not repeat anymore.
    Previously, we did not have to set any of the format options in the report, and it worked fine. To try and resolve the problems I have now tried these settings (C#):
    ExcelFormatOptions efo = new ExcelFormatOptions();
    efo.ExportPageBreaksForEachPage =true;
    efo.ExportPageHeadersAndFooters = ExportPageAreaKind.OnEachPage;
    Those format changes did not help at all.  Does anyone know how to get my page breaks back?
    thanks, --Rick

    Hi Rick,
    The version of CR included in .NET 2002 was version 9. There have been a lot of changes done to our exporting dll's since then that cleaned up how CR exported. You won't be able to fix this using code, it is due to your objects in the page layout that is causing the changes.
    There is a Document that the Report Design team has that is "Best Practices" when laying out reports for exporting so I am transferring this posting to the Report Design Forums to help you with "fixing up" your reports. If you still have issues when previewing/printing/exporting through your application they can transfer this post back.
    Thank you
    Don

  • Export to excel - number format

    Hi,
    Our version is SAP ERP Central Component 5.0 and we have just pathed the system from SPS18 to SPS23.
    However from that time has change the export to excel functionality. Now after you select List - Export - Spreadsheet you can select either Excel (in Mhtml format) or All available formats - here the same format as in the old version has option 'Microsoft Excel (In existing XXL format). However when the report is exported eg account numbers do not have the correct format. So you need to convert them first to the correct number format with function VALUE in Excel.
    Can this be somehow fixed?
    Thanks,
    Honza

    Hi,
    Dots and commas is not the issue.
    The issue is that eg doment numbers are in the format in which you cannot vlookup them with other files where document numbers are in number format. So you need first to convert them using excel function value(). And then they have the correct format.
    I am 100% sure there was not the same problem before we installed the higher patch.
    Jan

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

  • How to export to excel and format and send email?

    Hi all,
    I have an sql query that i need to run daily. My question is: how can i create a procedure to export the query result to an excel file with font Arial size 9 with all columns streched for best fit and also sent-it via email with subject and email text to an email address?
    Thanks in advance for your help.
    PS: if possible please provide examples :)

    I didnt use the .bat file.
    file1.sql
    SET ECHO OFF
    SET TERMOUT OFF
    SET FEEDBACK OFF
    SET TIMING OFF
    SET PAUSE OFF
    SET PAGESIZE 0
    SET LINESIZE 255
    SET HEAD OFF
    SET TRIMSPOOL ON
    spool c:\file1.xls
    set feed off markup html on spool on
    your Sql Goes here or @@file2.sql
    set markup html off spool off
    quit;
    you'll get file.xls
    Here's how it executed.
    SQL> SET ECHO OFF
    SQL> SET TERMOUT OFF
    SQL> SET FEEDBACK OFF
    SQL> SET TIMING OFF
    SQL> SET PAUSE OFF
    SQL> SET PAGESIZE 0
    SQL> SET LINESIZE 255
    SQL> SET HEAD OFF
    SQL> SET TRIMSPOOL ON
    SQL> spool c:\file2.xls
    SQL> set feed off markup html on spool on
    SQL> select table_name,last_analyzed from user_tables;
    <br>
    <p>
    <table border="1" width="90%">
    <tr>
    <td>
    CDR2_TEMP
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    CDR2_TEMP2
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    DBA_LOCKS_TEMP
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    LOCK_HOLDERS
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    OLTP_STATS
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    SESSION_KILL_INFO
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    EMP_CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    QUERY_CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    ASSET_ID
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    ADDR_CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    CLONE
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    REQUEST_CLONE
    </td>
    <td>
    27-MAY-08
    </td>
    </tr>
    <tr>
    <td>
    T1
    </td>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    TEMP_ACC_POL
    </td>
    <td>
    </td>
    </tr>
    </table>
    <p>
    SQL&gt;

  • Export to Excel Issues

    We just upgraded from Crystal 8.5 to Crystal 10.  When we export to Excel, the formatting is terrible.  We have close to 100 reports that we routinely export...some with 40,000 rows.  To try to fix these once they're in Excel is out of the question.
    In previous threads I've been reading about a "patch" that supposedly fixes this.  Where can I download this?
    Eric Hill

    The way reports work and export changed significantly in CR 9. While there was a dll available to help move from CR 8.x to CR 9, that dll is no longer available. Not for CR 9, nor any other versions of CR. Instead, you will have to modify your reports as per the article [Crystal Reports Designer Version 10 Exporting to Microsoft Excel|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/10d3ba69-951e-2b10-3093-e3cf287a57c9?quicklink=index&overridelayout=true].
    No other work-arounds or options exist at this time.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • 2013 versus 2010 - Export to Excel

    Hi,
    When exporting a view from Project Server 2013 Project Center to Excel, it seems to export without any formatting (no colours, etc).
    It only exports rudimentary formatting such as the indenting.
    This seems to be different than it used to be.
    Does anyone know if this is expected  behaviour?  Or is there something wrong in our config?  The configuration was upgraded from 2007 - 2010 - 2013.
    thanks,
    http://blogs.umtsa.co.za/nicoo

    Hi Nico,<o:p></o:p>
    I can reproduce the same behaviour in Project Server 2013 environment. The export is without any
    formatting (no colors etc.). Your environment configuration looks precise.<o:p></o:p>
    I have found related thread to your query. Here is the link you may find useful – <o:p></o:p>
    http://social.technet.microsoft.com/Forums/projectserver/en-US/85c8331f-85b9-4e34-9e27-612ffda0b7d4/project-server-2010-project-center-views-export-to-excel-with-formatting?forum=projectserver2010general<o:p></o:p>
    Cheers, Badal

  • Export to excel formatting

    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.

  • Formatting lost when exported to excel

    When I export a worksheet results to excel the formatting is being lost like in my worksheet I wanted a line and space for every grouped item which is lost in excel sheet. Is there a way get around for this ?
    Thanks

    Not exactly sure what formatting you're having a problem with, but I'll list some of the points I can think of, of exporting to Excel and will hopefully cover it. I believe you may be referring to point 1 below, but just in case ...
    1. If you have group sort on for a column or more, then when exported to Excel, you won't have those 'blank' values for the column(s) that's grouped. That's why when you know someone will be exporting to Excel, it's a pain as all group sorts are usually taken back off (which can screw up exactly what you're trying to point out in the workbook).
    2. If you have a page -> item (ie: lots of values you pull down like a LOV), then I believe, that you won't get an Excel worksheet for each value in the LOV but only for the one currently displayed when you performed the File -> Export.
    3. When you export to Excel, you only get actual values, no functions of how it was calculated (ie: it'll be static, not dynamic).
    4. You can export to Excel using Plus and might not get the formatting characteristics you want in Excel. I've seen users specifically bring up Viewer just to get the formatting characteristics (colors, fonts, etc.) when they export from that Disco version.
    5. Sometimes when you export from Disco to Excel, that actual value that gets posted in Excel is different. I know ... it sounds wierd, but it's a fact. The problem is NOT Disco, but is a problem with Windows and a setting has to be altered (although I'd have to hunt what that setting is now though). However, I've only seen this happen a few times, so definitely not the norm.
    Russ

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

  • During export from Discover to Excel, Time Format changes to Number Format

    Hi
    I have a seconds column which is of number datatype. But in my report, I am converting the number in *0HH:MI:SS* format. For example, I have *4952534 seconds*. So my report is showing *1375:42:14* which is a Time Format. It looks good when I view the data in Discoverer Viewer or Plus. But when I try to export the data to Excel, the time format gets converted to *4952534 seconds*, which is creating problems. So can you suggest on how can I preserve the formatting during export to excel from discoverer.
    Thanks
    Sachin

    Hi,
    Excel will not implement the 0HH:MI:SS data format, it just gets the field as a number. You will have to format the field into text using the calculation from my previous post.
    Rod West

  • Why was formatting removed from Export to Excel when exporting from PWA 2013?

    We have recently moved from using Project Server 2007 to Project Server 2013 and one thing that we have noticed is that when we Export to Excel all the formatting has been removed and all the task grouping and alignment has been flatted. 
    Why did Microsoft remove this feature from the Project Server 2013?
    Is there an easy way for anywhere there is an Export to Excel option on the Ribbon to add the formatting back?
    What is the best solution to still retain the indents, bolding, and grouping?

    Jason --
    I can confirm your findings with exporting PWA pages in Project Server 2013 to Excel.  As to why Microsoft removed the feature previously found in Project Server 2007, I have no idea, as I do not work for Microsoft.  I do not believe there is any
    way to force the Export to Excel feature to work the same in 2013 as it did in 2007.  I think it will be up to the user to format the exported Excel workbook as needed.  Hope this helps.
    Dale A. Howard [MVP]

  • How to remove values formatting in export to excel from ALV grid

    Hi all,
    I have small issue, I have ALV Grid with some data, but the problem is with columns containing e.g. gross amounts, because it is displayed in the grid as e.g. 1.764,81, and after export to excel it is still in this format (with dot and comma), so excel doesn't treat it as numeric value but as text, and then when I try to calculate total on the column then this values are not taken to the total. Do you know if that is possible to remove column formatting?
    kind regards,
    Marcin

    I replied too soon to Peter's suggestions.  For some reason, I was able to add new info. to my first new row, but not the second.  However, I finally figured out the problem.
    I found the Help Center page on: "Here are ways to change custom formats and apply changes to table cells:"
    To change the elements associated with a custom format that’s been applied to cells, select the cells and click Show Format in the Format pane of the Table inspector.
    I saw that the "cell format" was listed as "automatic," so I changed it to "Custom;" then left the new custom window at it's default settings. Now my cells would accept pasted info. without spreading it through the lower rows.  Whatever automatic was in the table, it was not what I wanted. Doing this to other new cells, solved my problem.  Thanks again.

  • Formatting of Excel worksheet While using Export to Excel

    Hello Experts,
    I have a requirement to format the workbook according to the user needs while the user clicks "Export to Excel" in the webpage of Web template.
    The major problem is with the hierarchy.. when exporting, the hierarchy nodes have triangular symbols.. is there any way to remove them??
    What can i do, so that i can make changes to the default export format of the workbook, while exporting it??
    Any helpful suggession will be appreciated and rewarded.
    Thanks and Best Regards,
    Vikas Bittera.

    Hi Mark,
    Thank you very much for the response.. however this is not the full solution of my problem..
    Now, if i execute the same query in the BEx explorer analyzzer, then even this setting does not work... it shows traingles.. wht oue intention is to use Excel grouping function, so that the user will have better navigation in hierarchy..
    so is there any way to do this? we need to other formatting of the output.. is it possible that we can change the standard query ouput in excel??
    Looking ahead for your response..
    Thanks and Best Regards,
    Vikas Bittera.

Maybe you are looking for

  • IMPORT/EXPORT in RFC

    Hello, I am programming an RFC that sends a XSTRING a Java web portal, and in this case I have to send a PDF XSTRING generated on the SAP server. Therefore I am calling the program that generates the PDF and the return string of bits through the RFC

  • Upgrade failure, then restore failure, error code is 1604

    IOS 5.01 upgrade to IOS 5.1 failure and can't restart, then restore failure and the error code is 1604

  • Form on Table - Where is Where Clause?

    I am a newbie so sorry if this is a easy question. I created a form on a table. Each user will have one record on the table for them. When they access this page, I want the form to either allow them to create their record for the first time or update

  • Managed MetaData Service

    Is there any way around the limit of 20,000 items for the managed terms? Managed terms (does not include enterprise keywords) 20,000 (20 per term set) I need some input on this before I can proceed with migration from 2007 to 2013.

  • Can't hear the other person on Facetime

    Hi guys So i've been trying to use Facetime but everytime i start up the app, the sound completely cuts and is not recognised. The Sound icon in the top bar turns grey and whenever i try turning up the volume using the keyboard, the Speaker icon come