Export to excel-Width setting

Hi,
I am trying to export a Discoverer viewer report to Excel through export option.
In Excel,I need to manually set the width of each column.Is there any woutomatic way of setting the width automatically in the process of exporting.
Thanks
Sridhar

I haven't done a lot of exporting to Excel, but I remember a posting a while ago that mentioned Excel ignores most (if not all) of the formatting from Disco. This would also include column widths.
Then again, I could be remembering wrong...

Similar Messages

  • Export to excel character set problem

    Hello,
    I'm having troubles exporting a query to excel in ApEx,
    signs like é ü are displayed incorrect. I have been searching for a while now but i can't find out what is wrong. The DAD of the DB is UTF8 and ApEx is also UTF8. Could anyone give me hint what could be wrong?
    Here is an example:
    WÜRTH is displayed WÃœRTH
    When I trow in a convert from UTF8 to WE8ISO8859P15
    WÜRTH is displayed as W�TH
    FROM 'US7ASCII', 'WE8ISO8859P1'
    WÜRTH is displayed as W??RTH
    I use the following procedure:
    PROCEDURE p_export_lots(p_public_sale_id IN public_sales.public_sale_id%TYPE,
    p_language_cd IN item_descriptions.language_cd%TYPE)
    IS
    CURSOR c_excel
    IS
    Select itm.item_id, to_char(long_description) long_description
    from items itm, item_descriptions des
    where itm.item_id = des.item_id
    and language_cd = p_language_cd
    and dossier_id In ( SELECT dossier_id
    FROM dossiers
    WHERE public_sale_id = p_public_sale_id)
    ORDER BY to_number(lotnr_from);
    v_trans VARCHAR2(400);
    BEGIN
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="export.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    FOR rec_excel IN c_excel LOOP
    v_trans := rec_excel.long_description;
    htp.p(' '||';'||rec_excel.item_id||';'||v_trans||';'); -- a new line in excel
    END LOOP;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true;
    END p_export_lots;
    Thanks in advance

    hmmm the DAD should be "AL32UTF8" not "UTF8" ...
    as long as you use the htp.p procedure all your output is being converted to
    AL32UTF8 (as the DAD setting states).
    Why don't you use the APEX-provided export-to-excel function. IKf you navigate
    to the application settings and there to the globaization settings you can enable
    the "automatic CSV encoding" - Setting this to "yes" should do the trick for you ...

  • CR export to excel in BOE displays multiple page headers

    We are using CR 2008 and BOE 3.1. In Designer when report exported to excel with setting show page header once / report works fine.When moved to enterprise and scheduled the same report ( setting check box use report settings) and getting the output format as excel gives multiple page headers . any idea on this. Are the parent settings overiding the user settings. This happening in QA environment as well.Any idea on this ?

    There is an option on the advanced export options to handle headers different ways.  Including how to include headers.  The different SDK's don't handle the all the same however so in some cases you have to modify the report the present headers and footers differently.

  • Web Intelligence export to Excel misses some fields

    Hi,
    Our system is running BusinessObjects Enterprise XI 3.1 with SP3 (no fix packs).  The behavior I'm seeing is when exporting a particular Webi doc to Excel. 
    Here is some background info for the document I am attempting to export to Excel. The doc contains a section and the section has a crosstab including description header cells.  I have added an additional cell at the top of the section with section specific information in it- nothing that strange yet.  If my InfoView (Web Intelligence) preferences is set so that 'Select a priority for saving to MS Excel' is set to 'Prioritize easy data processing in Excel' then the exported document is missing the additional cell at the top of the section (all other data is fine).  If the setting is set to 'Prioritize the formatting of the documents' then the Excel export works perfectly.
    My question is why would this be?  The cell is just a simple dimension (string).  My only fear about changing this Excel setting is that there is a warning in the 'Business Objects XI 3.1 Release Notes' guide.  It states
    Large Web Intelligence documents should be saved to Excel format using the "Prioritize data processing" option". The generated Excel might not open if the document is large and saved with the "prioritize formatting" option.
    Thanks,
    Steve

    We are experiencing similar issue using BO 4 SP2 Patch 10 when exporting to Excel with setting 'Prioritize easy data processing in Excel'.  Exporting data worked after changing WEBI settings to 'Prioritize the formatting of the documents'
    Documentation regarding this option states following:
    "Under "Select a priority for saving to MS Excel", select the option that best fits your needs:
    u2022 If you want to display the data in a format that is similar to working in Web Intelligence, then
    choose Prioritize the formatting of the documents.
    u2022 If you want to display the data in a text format, then choose Prioritize easy data processing in
    Excel."
    If I understand this explanation correctly then both options should have extracted the same content to Excel. Difference should have been how the contents were formatted and should not have caused loss of information.
    I logged support ticket for this issue.

  • Crystal Report 2008 doesn't set  page size when export to excel file

    Hi,
    I am using Crystal Report 2008 Developer edition.
    At Crystal report design time setting the below page setup:
    Page Options -
       to A3(297X420 mm)
    Orientation --- Landscape
    and using the following code in .net (c#)
    I am using below format options to export in excel in .net 2005
    ReportDocument oReport = new ReportDocument();
    oReport.FormatEngine.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    oReport.FormatEngine.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA3;
    if (aParamlist.ReportFormat == ReportFormatEnum.MicrosoftExcel)
    ExcelFormatOptions excel = new ExcelFormatOptions();
    excel.ExcelUseConstantColumnWidth = false;
    // Use detail section one as a guideline to determine column width
    excel.ExcelAreaGroupNumber = 1;
    //excel.ExcelAreaType = AreaSectionKind.Detail;
    excel.ExcelAreaType = AreaSectionKind.Detail;
    // Prepare exporting options
    ExportOptions export = oReport.ExportOptions;
    export.FormatOptions = excel;
    export.ExportFormatType = ExportFormatType.Excel;
    oReport.Export();
    when export to excel it doesn't set the Paper Size to  A3(297X420 mm).
    Is there any way to set the paper size while export to excel or in other formats also????
    Thanks & Regds,

    Hi,
    thanks for your email.
    This is not happening in development environment.It is setting the paper size anf paper orientation properly.
    this is happening in the production environment where only redist installation is done.
    thanks

  • Set Field as text before exporting to excel

    HELLO GURUS,
    i have a program which exports material numbers and other relevant data from sap tables to excel sheet.
    certain material numbers contain text 'E' in between the material number (Eg. 17700E0056). When such data is exported to excel, Excel treats these as exponential numbers and converts them to scientific notation (1.77E+60).
    How do I export the data as it is?
    Is there a way that i can convert it to text format before exporting it to excel..?

    Hi,
    try moving the values to a CHAR field before download to Excel
    or
    when building your field catalog , specify the field length same as of that fields data element.
    eg. your material number is of char 10.
    so set yout outputlen eq 10.
    g_flcat-outputlen = '10'.
    this works.
    Thanks & regards.
    Edited by: anusha25 on Nov 8, 2011 5:02 PM

  • Export Excel width in REUSE_ALV_GRID_DISPLAY

    Hello experts!
    I have a problem when i try export to excel in REUSE_ALV_GRID_DISPLAY. The characters number is lower than 1023, exactly around 540 and the columns headers 693, but the export truncates columns. i.e: 66 total columns but it shows 62  columns on first line and 4 the second line. My question is, Is it possible to increase the maximum width to 1023, acording the notes 855314 - Downloading a list from the ALV to Excel?
    Regards.

    Hello jose,
    Have a look on this,
    OLE Excel - changing colum width
    http://wiki.scn.sap.com/wiki/display/SI/OLE+concept+for+downloading+the+report+output+into+excel
    OLE excel document creation and formating
    Hope useful,
    Regards,
    sudheer

  • Financial Reporting exporting to Excel - Column Width Issue

    Hello Experts,
    We are having an Hyperion Financial reporting issue from long time. I spent so much time and still I couldn't able to make it work.
    I would like to take help you guys.
    Issue: In Hyperion Financial Reporting, if I change the columnA size 10 to 20 and saved the report.
    In work space, I have refreshed the report ( I do the latest timestamp), run the report and exported into excel. The Coloumn size is not changing. I have tried in many ways, Still it's not working for me.
    Could any one try and let me know whether it's working for you or not. and please advice me how to make this work if this is working for you.
    Thanks a lot for your help
    Thanks,

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • Export to Excel - Formatting Issues

    I am using Crystal XI and Excel 2010.
    I have created a report that is Letter size and Landscape orientation.  I export it to Excel and, when I open it in Excel, the columns seem to look ok, but the segmens that are in the Report Headers (there are two) are stretched way out to the right so that printing causes two pages to be printed with the second page containing the fields that were located on the right edge of the report's headers.
    The title banner is also shifted so that, where it is centered on the report, it is now almost right aligned on the first page of the Excel sheet.
    The Page Header, Footer and Detail sections appear to be correct.
    I tried a redesign changing it to Portrait orientation and this (sort of) fixes the headings (when Excel is set o print in Landscape), but the Page Header, Footer, and Details sections are squeezed up to a third of the page width.
    I'm accepting all defaults for the export, and the Report Headers re required (ie, exporting data only is not an option).
    Is this a known issue, or is it something I'm not doing right?
    TIA

    when you export the data, do you have an option for excel data only?
    Yes I do.  It's labeled "Microsoft Excel 97-2000 - Data only (XLS)
    when you click on the export
    select to application, i believe that is the only time you get the options.
    No, the options will also appear when you select "Disk file" as the Destination.  But neither way works as advertised.
    to next step select options
    when you select the options it drops down
    on the bottom you have boxes on the left and right
    Yes, but, while there are four check boxes on the left ("Export object formatting", "Export images", "Use worksheet functions for summaries", and "Maintain relative object position"), there are only three on the right ("Maintain column alignment", "Export page header and page footer", and "Simplify page headers")
    I tried checking 1, 2, and 4 on the left and 1, 2, and 3 on the right.  No joy.
    Just now tried checking 1, 2, and 4 on the left and 1 and 2 on the right.  Also no joy.

  • Export to Excel from PL/SQL Procedure

    Hello,
    I am creating a report using PL/SQL and html code. Once the report is display, I click on "Export to Excel" button. it should open the new window with Excel. The window opens in Excel, but no data. I have following code
    as the first statement in the procedure.
    OWA_UTIL.MIME_HEADER ('application/vnd.ms-excel', FALSE);
    and this is the script
    <script language="JavaScript">
    var param_list
    l_param_list := l_param_list || '&p_app_main_id=' || p_app_main_id;
         l_param_list := l_param_list || '&p_from_date=' || p_from_date ;
         l_param_list := l_param_list || '&p_to_date=' || p_to_date ;
    htp.prn('
    param_list = ''');
    htp.prn( l_param_list);
    htp.prn('''
    function NewWindow(mypage,myname,w,h,scroll){
    var win = null;
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = ''height=''+h+'',width=''+w+'',top=''+TopPosition+'',left=''+LeftPosition+'',scrollbars=''+scroll+'',resizable''
    win = window.open(mypage,myname,settings)
    win.focus();
    function ExportToExcel() {
    var wndname = ''ExpCodeMoveRep'';
    var wndw = screen.width-10;
    var wndh = screen.height-10;
    var wattr = ''scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes'';
    var wndurl = ''pm_codemove_report?p_output=E'';
    wndurl = wndurl + param_list;
         NewWindow(wndurl,wndname,wndw,wndh,wattr);
    </script>
    My submit is
    htp.prn('
    <p align="center">
    <input type="button" class="printbutton" value="Close" class="button" OnClick="window.close();"> 
    <input type="button" class="printbutton" value="Export To Excel" class="button" OnClick="ExportToExcel();">');
    Can anyone tell me what is wrong.
    I have the same code in another schema and it is working fine. Both schema are on the same server. Do they have any set up on appserver in DAD file to be able to see the data in Excel?
    Thanks
    Yagna

    Thank you for your answer dccase!
    I decided to go with on demand process. I have trouble with calling procedure from (button URL - javascript:popupURL('#OWNER#.exportXML')) pop window which cause "Forbidden, The requested operation is not allowed" error. I read that this is because I'm using XE edition and there is no HTMLDB_PUBLIC_USER role in XE.
    Now, I use on demand process and button URL link:
    javascript:popupURL('f?p=&APP_ID.:0:&APP_SESSION.:APPLICATION_PROCESS=PLSQL_Export_XML:NO::')
    It is working. Now I have to find solution to automatically close popup window :-)
    Thanks!
    Marko

  • Template with tabs Export to excel with variable dataprovider

    I have looked at examples in this forum of how others have used an "export to excel" button with a variable dataprovider but I cannot get these examples to work for my situation.
    I have a web template with 2 tabs, 1 dataprovider on each. The template has an icon button for "export to excel". The code came from 0QUERY_TEMPLATE. The tabs require a JavaScript function which hides all items except for the one on the selected tab and sets the property for the selected tab. I got the code for this from the WEB API reference for BW 3.x.
    I cannot get the button "export to excel" to export the selected (non-hidden) data provider. I need somehow to have a variable for dataprovider on the command to export. 
    Any help would be greatly appreciated.
    Provided below is my template.
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_PROPERTIES"/>
    <param name="TEMPLATE_ID" value="ZTEST_EXPORT"/>
    <param name="VARIABLE_SCREEN" value="X"/>
    TEMPLATE PROPERTIES
    </object>
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_DATA_PROVIDER"/>
    <param name="NAME" value="DATAPROVIDER_1"/>
    <param name="QUERY" value="ZPC_010"/>
    <param name="INFOCUBE" value="ZPC_M01"/>
    DATA_PROVIDER: DATAPROVIDER_1
    </object>
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_DATA_PROVIDER"/>
    <param name="NAME" value="DATAPROVIDER_2"/>
    <param name="QUERY" value="ZPC_011"/>
    <param name="INFOCUBE" value="ZPC_M01"/>
    DATA_PROVIDER: DATAPROVIDER_2
    </object>
    <html>
    <head>
    <link href="/sap/bw/Mime/Customer/StyleSheets/ServicePortalBWReports.css" type="text/css" rel="stylesheet"/>
    <Script type="text/javascript">
    <!--
    /* function goto_tab: Show all items, starting with tabname, Hide all other items */
    function goto_tab(tabname) {
    SAPBWOpenURL(SAP_BW_URL_Get()'&item=TAB*&multi=X&hidden=X&cmd_1=item%3d'tabname+'*%26hidden%3d %26multi%3dX');
    /* DHTML function to set correct span-Tag visible
    For each Tab in Tab-Header (head_TAB) check, if item TABx is visible
    If Item is visible set Header as selected
    Otherwise set corresponding span-Tag to not visible */
    function set_actual_tab() {
    i=0;
    do {
    i++;
    if (document.getElementById('head_TAB'+i) != null) {
    /* Check if Object tag is hidden */
    var prop = SAPBWGetItemProp('TAB'+i);
    var hidden=true;
    if (prop != null){
    for(j=1;j<prop.length;j++){
    if (prop[j][0] == "HIDDEN") hidden = (prop[j][1]=='X');
    if (hidden) {
    document.getElementById("TAB"+i).setAttribute('style', 'display:none;visibility:false;',false);
    else {
    document.getElementById("head_TAB"+i).setAttribute('className', 'SAPBEXTbsTABsel',false);
    } while (document.getElementById('head_TAB'+i) != null)
    -->
    </script>
    </head>
    <body>
    <TABLE class=SAPBEXNavLineBorder cellSpacing=0 cellPadding=1 width=5 border=0>
    <TR>
    <TD width="5%">
    <TABLE cellSpacing=1 cellPadding=2 width="100%" border=0>
    <TR>
    <!-- Display Export Excel--->
    <TD class=SAPBEXNavLine><A href="<SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DATAPROVIDER_1'>">
    <IMG alt="Export to MS Excel" src="Mime/BEx/Icons/S_X_XLS.gif" border=0></A></TD>
    </TD></TR></TABLE></TD></TR></TABLE>
    <TABLE cellSpacing=1 cellPadding=5 width="75%" border=0>
    <TR>
    <TD vAlign=top>
    <P>
    <TABLE cellSpacing=0 cellPadding=5 border=0>
    <TR>
    <TD class=SAPBEXTbsTab id=head_TAB1><A href="javascript:goto_tab('TAB1')">Tab 1</A></TD>
    <TD class=SAPBEXTbsTab id=head_TAB2><A href="javascript:goto_tab('TAB2')">Tab 2</A></TD>
    </TR></TABLE>
    <TABLE class=SAPBEXTbsBdyEdg cellSpacing=0 cellPadding=5 width="5%"
    border=0>
    <TR>
    <TD vAlign=top>
    <SPAN id=TAB1><object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="TAB1"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
    <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
    <param name="GENERATE_CAPTION" value=""/>
    ITEM: TAB1
    </object></SPAN>
    <SPAN id=TAB2><object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="GET_ITEM"/>
    <param name="NAME" value="TAB2"/>
    <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
    <param name="DATA_PROVIDER" value="DATAPROVIDER_2"/>
    <param name="GENERATE_CAPTION" value=""/>
    <param name="HIDDEN" value="X"/>
    ITEM: TAB2
    </object></SPAN>
    </TD></TR></TABLE></P>
    <SCRIPT type=text/javascript>
    <!--
    /* This function call is needed to set the correct state */
    set_actual_tab();
    -->
    </SCRIPT>
    </TD></TR></TABLE>
    </body>
    </html>

    Kevin,
    Try calling a javascript function (e.g. excel_export) when the export icon is clicked on.
    Using the prop array find the tab that is not hidden and then use that index to build your export command. i.e. if tab1 is visible then pass dataprovider_1 to the excel download command.
    Another method would be to place a hidden field on the form to store the dataprovider and then read that field in the javascript function.  You would have to update this field when you switched between the tabs.
    Cheers,
    Kelly

  • Crystal 11.5 truncating column headers on export to excel

    Hi,
    We are currently (or finally as the case may be) upgrading our reports from Crystal 8.5 to Crystal 11.5 (which I know is a few versions behind but unfortunately the software that we integrate with is only compatible to 11.5).
    However, I've been having a problem exporting to excel.
    The column headers (which can be in a range of report header/page header/group header) are truncating to the the length that they display on the screen before the export.  When I view them in crystal viewer I can see that the entire text field is available.  However this does not flow through to export to excel.
    I have utilised the "Can grow" formatting option however this then creates a merged field up 3 rows high in excel and the report then has problems using excel functions like sort etc. 
    I also attempted to use the data only option which does export the full text in the column names but then I lose the rest of my formatting.
    There were no issues exporting from v8.5
    I have snapped to grid.
    The actual data exports without issue it is only the column headers (text) which pose a problem.
    I am unable to reduce the amount of data that we include in our report to free up space to display the entire text.
    I would prefer to not reduce to a 4pt text size to ensure that it exports correctly as this will have significant impacts for those people who actually export the reports.
    Is anyone able to shed some light on how to resolve this issue?   I've googled and searched these forums extensively but can't quite find a resolution to the issue and would really appreciate any assistance that anyone can offer me. 
    Kind regards
    Janne

    Ian
    It works for me whether my headers are text fields or field headers. Once I export them I expand the columns and set the cells to wrap, and I get the complete contents. Ditto for the fields themselved, and text fields containing data fields.
    I always export excel(97-2003)data only with Column width based on objects in the details & checking   Export object formating, Maintain relative object position, Maintain column alignment, export page header and page footer, Simplify page headers.
    Allow fields to grow is off on everything during exports.
    Note: nearly all my reports are designed in Crystal 2008 without any SQL commands and all exports are done manually. Perhaps it is a XI.5 issue?
    Edited by: Debi Herbert on Oct 5, 2011 10:07 AM

  • ADF 11g: Desktop Integrator- Export to Excel issue

    Hi,
    We are using ADF 11g.
    In our application we have one feature where end users can download data in excel format from our web application.
    To export data to excel file, users need to click Export to Excel button. But after deployment of code to standalone WLS 11g we are facing following issue with this functionality:
    To export data to excel file we have to keep pressing control key through out the operation
    If we don't do so it does not downloads the file.
    We want the file should be downloaded as soon as user clicks Export to Excel button. (We don't want users to keep pressing control key through this process)
    Please help on this how to achieve this.
    Thanks and Regards
    Manav Ratra

    Hi Shay,
    I implemented this functionality following Franks blog on export data to excel.
    Ya in your application we are able to export to excel without holding control Key.
    The same is happening in our case if we run application using integrated WLS 11g on JDev 11.1.1.3
    but after hosting the application on standalone WLS 11g. We need to hold control key. :|
    Are there any properties which we need to set to avoid this.
    here is code :
    *<af:commandButton text="Export to Excel"*
    *binding="#{backing_Rates.btn_Export}"*
    *id="btn_Export" inlineStyle="width:150.0px;"*
    *shortDesc="Click to Save table in excel sheet">*
    *<af:exportCollectionActionListener exportedId="pctbl:t1"*
    *type="excelHTML"*
    *filename="#{backing_Rates.seName}_Rates.xls"*
    *title="Rates for - #{backing_Rates.seName} are:"/>*
    *</af:commandButton>*
    Please help.
    Thanks & Regards
    Manav Ratra

  • Hidden report items with toggle are visible in Excel when a report is exported to Excel.

    Hi
    I have  4 Bar charts and 4 text boxes in one report in SSRS Report . These charts  are hidden based on parameters. I have one visible chart and one text box when report is rendered .
    When report is exported to excel  4 charts  are visible. Each Bar chart has one textbox in toggle box.  If I set toggle to None  all hidden charts  will be invisible in excel file.
    I used   iif(Globals!RenderFormat.Name=" EXCEL",False,True)
     but it does not work when the chart is toggled by a text box.<v:shape alt="" id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:6in;height:396pt;"
    type="#_x0000_t75"></v:shape>

    Hi Katherine
    Thank you for your quick response.
     I am working with three versions .(SQL SERVER 2008, 2008 R2 and  2012)
    I designed all reports  in SQL Server 2008 and  uploaded them in other versions.
    For example, I have a chart that it is invisible when the report is initially run.
     I want to hide this chart in excel when I export  it to Excel format.
    In SQL Server 2008: If  the toggleitem of a chart sets to a text box  the chart is visible in excel when it is a hidden item  in the report .
    I checked in PDF and word format  it is fine and  hidden items  are not displayed.
    There is  this scenario  for SQL Server 2008 R2  and  SQL Server 2012. I tested  Globals! RenderFormat  in two versions but it  does not
    work. The main  issue is  toggleitem. If I remove toggleitem  from  hidden items  they are invisible in three versions when they are exported to Excel. I  am not sure if I design report in Sql Server 2008 R2  I can hide some
    report items with toggle in Excel format or Not?
    Thanks 

  • SSRS report export to excel

    Hi All,
    I have one developed SSRS report which is a matrix report (having customer name in column area and customer code in row area);
    and it is working ok no issue here. 
    Now I want to do something like :
    Is it possible while exporting to excel, I can interchange rows data to columns data and columns data to rows data ? (so that customer name comes in row area; and customer code comes in column area)
    Hope question is straight forward and clear.
    Regards 

    Hi ,
    I have tried to do dynamic grouping based on the Format of rendering, however in dynamic grouping not allowed to use the Global Built-In Fields, Variables, ReportItems collections.
    Finally only way left for us to use our classical trick to set the visibility on and off.
    This trick can be applied by creating two different Matrix and show one matrix depending on Format rendering.
    My trick is to create two groups within the matrix and hide and show one group based on format rendering.
    I have created detailed level of post in below link.
    https://msbitips.wordpress.com/2015/04/21/ssrs-transpose-columns-of-a-report-dynamically-when-rendering-in-different-format/
    RDL for your reference:-
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>SSRS report export to excel</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>14pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.36in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="Tablix2">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox14">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Customer Code</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox14</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox18">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!Result.Value)</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox18</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox16">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox16</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox19">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox19</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Result">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!Result.Value)</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Result</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="CustomerCode1">
    <GroupExpressions>
    <GroupExpression>=Fields!CustomerCode.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!CustomerCode.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="CustomerCode1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!CustomerCode.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>CustomerCode1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <Visibility>
    <Hidden>=IIF(Globals!RenderFormat.Name="EXCEL",false,true)</Hidden>
    </Visibility>
    </TablixMember>
    <TablixMember>
    <Group Name="customerName">
    <GroupExpressions>
    <GroupExpression>=Fields!customerName.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!customerName.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="customerName">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!customerName.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>customerName</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <Visibility>
    <Hidden>=IIF(Globals!RenderFormat.Name="EXCEL",true,false)</Hidden>
    </Visibility>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="customerName1">
    <GroupExpressions>
    <GroupExpression>=Fields!customerName.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!customerName.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="customerName1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!customerName.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>customerName1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <Visibility>
    <Hidden>=IIF(Globals!RenderFormat.Name="EXCEL",false,true)</Hidden>
    </Visibility>
    </TablixMember>
    <TablixMember>
    <Group Name="CustomerCode">
    <GroupExpressions>
    <GroupExpression>=Fields!CustomerCode.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!CustomerCode.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="CustomerCode">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!CustomerCode.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>CustomerCode</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <Visibility>
    <Hidden>=IIF(Globals!RenderFormat.Name="EXCEL",true,false)</Hidden>
    </Visibility>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.53in</Top>
    <Left>0.5925in</Left>
    <Height>0.75in</Height>
    <Width>3in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>1.51958in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DS">
    <DataSourceReference>DS</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>36063f24-6742-4f6a-a067-0e7a60156149</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DS</DataSourceName>
    <CommandText>select 'customer1' customerName,'Code1'CustomerCode,11 Result
    union
    select 'customer1' customerName,'Code2'CustomerCode,14 Result
    union
    select 'customer1' customerName,'Code3'CustomerCode,17 Result
    union
    select 'customer2' customerName,'Code1'CustomerCode,12 Result
    union
    select 'customer2' customerName,'Code2'CustomerCode,15 Result
    union
    select 'customer2' customerName,'Code3'CustomerCode,18 Result</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="customerName">
    <DataField>customerName</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="CustomerCode">
    <DataField>CustomerCode</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="Result">
    <DataField>Result</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>3c1c52a7-70c0-4ed8-8f18-f621ef973a48</rd:ReportID>
    </Report>
    Thanks
    Prasad

Maybe you are looking for

  • Is there a student discount for Photoshop CS6?

    I am slightly confused about this, looking for an answer on my own I went through this process: I found the page for the Creative Suite 6 Products, and on the right side it says "CS6 or Creative Cloud? If you want all-new versions of your favorite cr

  • How to Create HTML page from portal

    Hi I have a requirement to create html pages from portal. There will be an author who can choose document type as HTML and then he will write html codes on saving it should be saved as HTML doc in UCM. and publisher should be able to display it on po

  • Indonesian (id) locale is not supported by ADF ?

    I have 2 resources file : UIResources.properties and UIResources_id.properties I have configured my browser using Indonesian (id). I have configured <supported-locale>id</supported-locale> in faces-config. Launch browser, but always show my default E

  • Missing hp solution center.. please help..

    hi everyone, new here.. i just bought a new deskjet D4360.. i'm using a XP professional .. i'll tell the story of what i did and went through till my current condition..  it started with the time when i first tried to install my printer, installation

  • How to rganize projects in albums

    I have a number of projects under Library Albums, one project per day, like events in iphoto. So when trying to organize, creating an album per month, then putting all the projects in a month in to this alum it is not possible - I must be very stupid