Excel colomn width

I am using this FM to send an excel attachment SO_DOCUMENT_SEND_API1
Problem: excel column width is not adjusting as per field length,
Regards
Raj.
Points are awarded for use ful answers.

I am not able to open the code as I have only LabVIEW 2012. Which line do you mean. Regarding the Excel chart you have all the properties accessable through ActiveX, did you try that? Also you have some of the properties available in RG toolkit as well.
The best solution is the one you find it by yourself

Similar Messages

  • In download to excel from bsp hw to increase excel column width to wrap txt

    in download to excel from bsp how to increase excel column width to wrap text
    in each column.
    My client does not want to manually click each cell aftet downloading to excel to see full text in each column

    Hi,
    You can achieve this by formatting your output using HTML table tag.
    Try the following code.
      DATA: lv_output  TYPE string.
      concatenate
      '<table border="1">'
      '<tr style="font-weight: bold; text-align:center; "><td>Name</td><td width="150">Description</td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>First Name</td><td>Some Description goes here..... ....... ...... </td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>2nd Name</td><td>XYZ.......</td></tr>' cl_abap_char_utilities=>cr_lf
      '</table>'
      into lv_output.
      response->set_cdata( data = lv_output ).
    Regards
    Geogy
    PS. Reward the useful answers.

  • How to make excel columns width autofit  ?

    Hello  Experts ,
    I download data from an internal table  to create an excel attached file and send it to customers by mail. The excel sheet looks untidy .
    the columns width of excel are not autofit .
    It's default 8.43 character .  Costomers can not use equally excel tools. eg.  format->column->autofit selection in excel.
    I was wondering how to make all excel columns' width autofit by means of ABAP . Is there any way to reach this property of excel via SAP  when I send excel attached files from an internal table .
    suggestions will be rewarded .
    Regards ,

    Hi Rajkumar or all,
    If any one able to display the records more than 65k line in Bex report v7.0..
    Pls reply with detail expalination.. Thanks in advance.. will give the reward points..
    Waiting urgently for your response..

  • Maintaining Excel column widths

    I'm using ActiveX to copy a block from an existing Excel spreadsheet into a new Excel spreadsheet.  When I paste the block into the new spreadsheet, along with the data, I get the formatting (borders, shading etc.) that was used in the original file.  However, what I find, is that the column widhts in the new spreadsheeet stay at their default settings.  When I copy the block, I us a range of row/column designators; e.g. A1:E10.  When I paste the block into the new spreadsheet, I just refer to the upper left cell; e.g. A1.  How do I make the column widths in the new spreadsheet the same as the original spreadsheet?  I'm familiar with using a template when using the Report Generation Toolkit.  Is there a similar technique with ActiveX?

    AT1 wrote:
    I'm using ActiveX to copy a block from an existing Excel spreadsheet into a new Excel spreadsheet.  When I paste the block into the new spreadsheet, along with the data, I get the formatting (borders, shading etc.) that was used in the original file.  However, what I find, is that the column widhts in the new spreadsheeet stay at their default settings.  When I copy the block, I us a range of row/column designators; e.g. A1:E10.  When I paste the block into the new spreadsheet, I just refer to the upper left cell; e.g. A1.  How do I make the column widths in the new spreadsheet the same as the original spreadsheet?  I'm familiar with using a template when using the Report Generation Toolkit.  Is there a similar technique with ActiveX?
    If the range columns are of the same width use the Range.ColumnWidth property. When you copy to the new sheet use the row/column designators A1:E10 and set this range column width property to the value of the source worksheet.
    Ben64

  • Excel chart width

    does anyone know how to change the width of the graph?
    i want to make the lines smaller or bigger.
    Solved!
    Go to Solution.
    Attachments:
    excelchart_plot._ablation.vi ‏48 KB

    I am not able to open the code as I have only LabVIEW 2012. Which line do you mean. Regarding the Excel chart you have all the properties accessable through ActiveX, did you try that? Also you have some of the properties available in RG toolkit as well.
    The best solution is the one you find it by yourself

  • 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 in Panelcollection not working

    Hi,
    I am using JDeveloper 11.1.1.4.0. on WinXP
    I am surrounding PanelCollection to existing table in my application.
    After clicking on export to excel option first time it shows file name as my .jspx file and type as HTML, here it throws exception NPE(i.e. exporting fails).
    when i click on the export option in the same page second time it shows the file name as my excel file name and type as Microsoft Excel hence downloads without errors.
    I have used the below code snippet inside panelCollection component:
    <f:facet name="toolbar">
    <af:toolbar id="t1">
    <af:commandImageLink text="Export to Excel"
    inlineStyle="width:95px;" id="cil4">
    <af:exportCollectionActionListener exportedId="tVolDed"
    type="excelHTML"
    filename="c:\\try.xls"/>
    </af:commandImageLink>
    </af:toolbar>
    Could anybody help me out for the same?
    Thanks in advance!

    At my end, the code is working fine.My code is :
    <f:facet name="toolbar">
    <af:toolbar id="t1">
    <af:commandImageLink text="Export to Excel" inlineStyle="width:95px;"
    id="cil4">
    <af:exportCollectionActionListener exportedId="t2"
    type="excelHTML"
    filename="empDtlsExport.xls"/>
    </af:commandImageLink>
    </af:toolbar>
    Could you please try with filename as "try.xls" only.
    Please let us know if you are facing this issue.

  • Columns doesnt wrap in Excel output

    Hi,
    I have a Table in RTF template which has 7 fixed width columns. I have couple of description columns in the Table and I have set "Wrap Text" option for those columns so that column width remains the same even for "long" descriptions. This works fine for PDF output and I get output as I see in the template. Problem is with Excel output. In Excel, column width is automatically adjusted to fit text. "Wrap Text" option is set for the column in MS Word. I have also tried using <fo:block wrap-option="wrap">, <fo:inline wrap-option="wrap">, <fo:wrapper wrap-option="wrap">. But still text is not wrapped in Excel. All I want is that the column width should remain constant and it shouldnt be resized to fix text. Can anyone throw some light on the above issue? Your help is much appreciated.
    Thanks in advance,
    Murari

    No light - but I see the same issue - so it is not just your configuration.

  • Paticular columns in "Export to Excel" functionality of PanelCollection

    Hi,
    I am using JDeveloper 11.1.1.5.0.
    I am rendering (render Property to false) some of the columns in the table before it is doing “export to excel” of PanelCollection functionality.
    The table should display that columns in the front end but while exporting it to excel it should hide that columns.
    I have done below coding for the same:
    In jsff file:-
    <af:panelCollection id="pc2" inlineStyle="background-color: #F9E1E0;" styleClass="AFStretchWidth">
    <f:facet name="toolbar">
    <af:toolbar id="t1">
    <af:commandImageLink text="Export to Excel" inlineStyle="width:95px;" id="cil4" actionListener="#{pageFlowScope.TimesheetService.notToShow
    binding="#{xxyyzzBean.exportCollectionButton}">
    <af:exportCollectionActionListener exportedId="t2"
    type="excelHTML"
    filename="empDtlsExport.xls"/>
    </af:commandImageLink>
    </af:toolbar>
    </f:facet>
    The t2 is the table in which 5 columns are present and which is having Binding with dataTable.
    The code in the Bean class:
    public String notToShow(ActionEvent actionEvent) {
    List<UIComponent> uicomps= dataTable.getChildren();
    for(int i=0;i<uicomps.size();i++)
    UIComponent myComp= uicomps.get(i);
    if(myComp.getId().equals("c1")) //the column which should be part of export to excel.
    myComp.setRendered(false);
    if(myComp.getId().equals("c6"))//the column which should be part of export to excel.
    myComp.setRendered(false);
    ActionEvent ae = new ActionEvent(exportLink);
    ae.queue();
    return null;
    But it goes in infinite loop.
    Could anybody help me out for the same?

    Hi,
    in your code you use "exportCollectionButton" on the commandImageLink and "exportLink" in the code, so this sample doesn't make sense. Assuming its a typo in the code and in fact the notToShow() method calls
    ActionEvent ae = new ActionEvent(exportCollectionButton);
    ae.queue();
    then the cricular reference is not a surpise because you queue an action on the command link itself, which then again queues the same action etc.
    Frank

  • How to export data to an excel by preserving styles

    Hi All,
    I am trying to export data to an excel using ColdFusion. Below is my code.
    <cfheader name="content-disposition" value="attachment; filename=dashboard.xls">
    <cfcontent type="application/msexcel">
    <table width="200" border="1">
      <tr>
        <td width="40"> </td>
        <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
          </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="40"> </td>
       <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
            <td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td><td width="20" bgcolor="red"> </td><td width="20" bgcolor="black"> </td>
          </tr>
          </table>
        </td>
      </tr>
    </table>
    When I try to execute above code by commenting <cfheader><cfcontent> then the output is perfect. styles are preserved. And when I uncomment <cfheader><cfcontent> and execute code, then an excel file will get open. But all the styles are lost. So how to preserve all styles(table width etc.) in excel.
    Can anybody please assist me on this. Thanks in advance.
    Regards,
    Manoz.

    I copied your code and did the test. Result: no problem.
    However, I used the following table data in my test. Did you use any data in yours? To fully test an HTML table, you have to put in some data.
    <!--- <cfheader name="content-disposition" value="attachment; filename=dashboard.xls">
    <cfcontent type="application/vnd.ms-excel"> --->
    <table width="200" border="1">
      <tr>
        <td width="40">xxx</td>
        <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red">AAA</td><td width="20" bgcolor="black">ccc</td><td width="20" bgcolor="red">eee</td><td width="20" bgcolor="black">ggg</td>
            <td width="20" bgcolor="red">&n b s p;</td><td width="20" bgcolor="black">ddd</td><td width="20" bgcolor="red">fff</td><td width="20" bgcolor="black">hhh</td>
          </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="40">yyy</td>
       <td width="160">
          <table width="160" border="1">
          <tr>
            <td width="20" bgcolor="red">111</td><td width="20" bgcolor="black">333</td><td width="20" bgcolor="red">555</td><td width="20" bgcolor="black">&n b s p;</td>
            <td width="20" bgcolor="red">222</td><td width="20" bgcolor="black">444</td><td width="20" bgcolor="red">666</td><td width="20" bgcolor="black">888</td>
          </tr>
          </table>
        </td>
      </tr>
    </table>
    Two other things to note. First, I have used &n b s p; for empty table-data. Secondly, though the MIME type you have used for excel might work, the correct  value is application/vnd.ms-excel.

  • Edit Existing Excel via Java

    Hi every one,
    I am using core java now.
    I need to compare to two excel files between common elements.
    I did it in core java.
    But now i am need to modify existing excel file(width , height and color only) when two excel files between common fields only.
    Please help me asap ,
    Any suggestion appreciate
    regards,
    sundar

    Hello Sundar,
    I think you have not gone through the link properly. It properly mention that using HSSF you can work on Excel sheet.
    It solves your problem for modification:
    HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format.
    HSSF and XSSF provides ways to read spreadsheets create, modify, read and write XLS spreadsheets. They provide:
        * low level structures for those with special needs
        * an eventmodel api for efficient read-only access
        * a full usermodel api for creating, reading and modifying XLS filesThis will be more concern to you:
    If you're modifying spreadsheet data then use the usermodel api. You can also generate spreadsheets this way.If you want to see some examples, please google it, you will get many.
    Regards,
    Ravi-India

  • Data download option in OBIEE??

    When I use 'download DATA' option for few of my reports and the data gets downloaded to my excel ....
    But with out any formatting...
    I manually had to adjust the excel columns widths(drag the column widths) after the download to perfrom few operations...
    Is there any option to avoid that....Like download the data with the specific width of that particular column...

    Aravind Addala wrote:
    Hi User,
    Default format for download data(.csv) is tab separated,
    If you want to try with comma separated format.....
    Refer : Download report from answers in CSV( Comma seperated)
    Currently I am downloading the file in CSV format..
    What do I need to do if I would like to download TSV (tab seperated values)

  • When exporting to CSV missing last delimiter

    Post Author: John nutter
    CA Forum: Exporting
    after upgrading from Enterprise 9 to Enterprise 11 a number of CSV files no longer include a comma after the last value. I have tried all file format options but nothing formats the data as required. Has anyone else come across this problem ?

    Post Author: qcheng
    CA Forum: Exporting
    I am using XI. When I export to Excel, the width of last column is always not like what I formated. I have to add an empty text object after the last column so the actual last column becomes to be the second last column with right format.

  • BW Web

    Hi
    I have a graph connect to a view;
    a text element, a table and a navigation block connect to a query.
    the view is the same that the query except that I remove the keys which I don't want to be on my graph.
    Since I connected the graph to the view instead of the query, when I run the query I have to select 4 times the month I want for the query, instead of only once.
    seeing that I have 4 bloc, I suppose that I have to select the month for each of them. But why aren't they connected like before?
    thanks

    Hi Henrique
    Hope this help
    <!--BW HTML data source object tags: -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZCPUR01_IOP15"/>
             <param name="VARIABLE_SCREEN" value="X"/>
             <param name="NO_SESSION_COOKIE" 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="DATA_PROVIDER_ID" value="IOP_RG"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <html>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1_2"/>
             <param name="QUERY" value="IOP15"/>
             <param name="INFOCUBE" value="ZPURC01"/>
             DATA_PROVIDER:             DATAPROVIDER_1_2
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_3"/>
             <param name="QUERY" value="IOP15"/>
             <param name="INFOCUBE" value="ZPURC01"/>
             DATA_PROVIDER:             DATAPROVIDER_3
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_2"/>
             <param name="DATA_PROVIDER_ID" value="IOP_RG"/>
             DATA_PROVIDER:             DATAPROVIDER_2
    </object>
      <head>
        <title>BW Web Application</title>
        <link href="/sap/bw/Mime/BEx/StyleSheets/Chrome_BWReports_ie6.css" type="text/css" rel="stylesheet"/>
      </head>
      <body>
    <!--BW HTML items object tags: -->
    <TABLE style="WIDTH: 700px; HEIGHT: 60px" cellSpacing=1 cellPadding=1 width=500
    border=0>
      <TR>
    <!-- debut bloc de navigation -->
        <TD
          vAlign=top>           <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="NAVIGATIONBLOCK_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
             <param name="TARGET_DATA_PROVIDER_2" value="DATAPROVIDER_1_2"/>
             <param name="TARGET_DATA_PROVIDER_3" value="DATAPROVIDER_3"/>
             <param name="TARGET_DATA_PROVIDER_4" value="DATAPROVIDER_2"/>
             ITEM:            NAVIGATIONBLOCK_1
    </object>  
    </TD>
    <!-- fin bloc de navigation -->
    <!-- debut graphique -->
        <TD
          vAlign=top>         <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="CHART_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CHART"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="HEIGHT" value="320"/>
             <param name="WIDTH" value="650"/>
             <param name="SUPPRESS_SUMS" value=""/>
             <param name="TITLE_CATEGORIES" value="Resultat Global"/>
             <param name="TMP_CHART_DATA_HANDLE" value="IIP_415574DN3BUR3VS183H9NXNX6"/>
             ITEM:            CHART_1
    </object>                                                                                                                      </TD>
    <!-- fin graphique -->
    </TR></TABLE>
    <TABLE style="WIDTH: 500px; HEIGHT: 285px" cellSpacing=1 cellPadding=1 width=500
    border=0>
    <TR>
    <!-- debut logo  -->
    <TD vAlign="top">   <IMG
          style="WIDTH: 167px; HEIGHT: 48px" height=63
          src="/sap/bw/Mime/Customer/Images/logo.jpg"
          width=208>              
    <!-- debut excel -->
    <A href="<sap_bw_url cmd='PROCESS_HELP_WINDOW'
    help_service='PRINT_WITH_EXCEL'
    item='TABLE_1'
    sap_bw_url cmd='export' format='xls' data_provider_1='dataprovider_t1'
    subcmd='PRINT_EXCEL'>">
    <IMG style="WIDTH: 30px; HEIGHT: 32px"
          height=50
          src="/sap/bw/Mime/Customer/Images/Excel.jpg"
          width=50 border=0></A>  
    <x:bw>
    <hierarchy_ICONS hide="x"></X:BW>
          <BR>                                                                           Export
    <!-- fin excel -->         
      </TD>
    <!-- fin logo  --></TR>
      <TR>
    <!-- debut tableau -->
        <TD vAlign=top><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="WIDTH" value="800"/>
             <param name="BLOCK_SIZE" value="300"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
             <param name="TARGET_DATA_PROVIDER_2" value="DATAPROVIDER_1_2"/>
             <param name="TARGET_DATA_PROVIDER_3" value="DATAPROVIDER_3"/>
             <param name="TARGET_DATA_PROVIDER_4" value="DATAPROVIDER_2"/>
             <param name="HELP_SERVICE" value="PRINT_WITH_EXCEL"/>
             <param name="HELP_SERVICE_CLASS" value="ZCL_RSR_XLS_HELP_WINDOW_PRINT"/>
             ITEM:            TABLE_1
    </object></TD>
    <!-- fin tableau -->
    </TR>
    </TABLE>
          <TABLE style="WIDTH: 569px; HEIGHT: 43px" cellSpacing=1 cellPadding=1
          width=569 border=0>
            <TR>
    <!-- debut text elemnt -->
              <TD vAlign=top><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="WIDTH" value="290"/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="SHOW_VARIABLES" value=""/>
             ITEM:            TEXTELEMENTS_1
    </object></TD>
    <!-- fin text element -->
    </TR></TABLE></TABLE>    
      </body>
    </html>
    thanks
    Phie

  • To blog Administrator

    Administrator,
    I have two very important Unresolved Questions on this forum. How long should I wait for a response? Is the SAP Community the only source of help for .net development with Crystal? Is there some other way to get support more quickly?
    My questions are titled:
    1.   Report too wide for viewer  
    2.   Exporting report to Excel - Column width option  
    Thanks,
    Linda

    Hi Linda,
    You are correct.
    There is no free "support" other than the forums.
    While we do our best to try and help forum customers with issues sometimes it isn't possible to resolve them all.  It just depends on a variety of factors such as our case load, the sheer volume of forum postings, the specific issue that the forum poster is having may not be conducive to troubleshooting in a forum format (for example it may be too complicated to troubleshoot for forum postings), etc.
    For times when it isn't possible to resolve an issue or in cases where a customer needs more immediate or personal assistance, there is the option of purchased support cases.
    If you would like to speak to a technical customer assurance engineer about your Crystal issues you will need to purchase support via the number provided.  Each issue will need a seperate case and needs to be for a currently supported platform (ie. Crystal 10, Crystal XI Release 1, etc are no longer supported).
    Best Regards,
    Jason

Maybe you are looking for

  • Itunes will not open in Windows Vista 32 Bit.

    I am running Windows Vista 32 bit, I have just installed the latest version of Itunes, which installs, when I go to open Itunes, I get an error message, ' MSVCR80.dll was not found. Re-installing the app may fix the problem.' I have triedd re-install

  • How to connect sad ipod to itunes ?

    how to connect sad ipod to itunes ?

  • When Coherence security is enabled there is a significant performance hit

    When Coherence security is enabled, every call to do the cache operation do a security check. This is negatively impacting application's performance. I'm using the built in DefaultController & java keystore login. Is there any workaround so that the

  • Email (online) - signature help

    I can't find a help forum dedicated to emails. So am posting in here instead. I cannot stand the new look email page when accessing btmail on the iPad. The screen is too big, the options have disappeared. I can no longer delete spam all in one go. An

  • Integrating contentmanagement into portal

    I have created a content using BEA content management. Now, I want to integrate it into a portal or a webpage so that user can get the files. I will appreciate if someone can give me links to document where i can get information about this.