<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to export the data as integer into excel sheet? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741014#M1466822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why don't you use double instead Label?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nikhiL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2008 09:54:01 GMT</pubDate>
    <dc:creator>nikhil_bose</dc:creator>
    <dc:date>2008-04-30T09:54:01Z</dc:date>
    <item>
      <title>How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaq-p/3741005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I am working on export to excel functionality and using JEXCEL API to create it.  When I export the data to excel sheet, the data are stored in text format in the excel sheet.  If I click on summation button on excel sheet,  it is not summing up the column values since it is stored as the text format.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();){&lt;/P&gt;&lt;P&gt;String attributeName = (String)iter.next();&lt;/P&gt;&lt;P&gt;for(int index = 0; index &amp;lt; dataNode.size(); index++){&lt;/P&gt;&lt;P&gt;try{&lt;/P&gt;&lt;P&gt;IWDNodeElement nodeElement = dataNode.getElementAt(index);&lt;/P&gt;&lt;P&gt;String colVal = nodeElement.getAttributeAsTex(attributeName);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Label value = new Label(j, index + 1, colVal);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sheet.addCell(value);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;j++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here colVal is the variable which holds the data in string format.  So I was just trying to convert it into integer format and used &lt;STRONG&gt;Integer.parseInt(colVal)&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Label keyword accepts only the int,int,string arguments.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other option to change it as integer value while exporting to excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subashini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 06:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaq-p/3741005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T06:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741006#M1466814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest for this issue.  Hope I have explained my issue clearly.  If not,  Pls let me know as this is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subashini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 07:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741006#M1466814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T07:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741007#M1466815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tell me what you need excatly? &lt;/P&gt;&lt;P&gt;where and what for you writing this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need colValue in Excel as integer or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nikhiL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 07:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741007#M1466815</guid>
      <dc:creator>nikhil_bose</dc:creator>
      <dc:date>2008-04-30T07:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741008#M1466816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never used JExcel API as such. But while searching google, JExcel Api is developed by TeamDev and Sourceforge. Which of it you are using? Also please tell, &lt;STRONG&gt;sheet&lt;/STRONG&gt; is the object of which class. Only after seeing API, people can help you. Can you post the link of java doc of JExcel API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, you can try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Label value = new Label(j, index + 1, "" + Integer.parseInt(colVal));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 07:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741008#M1466816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T07:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741009#M1466817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it may help u..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 07:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741009#M1466817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T07:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741010#M1466818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at following links, may be worth for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/x/0mq" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/x/0mq&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nikhiL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 07:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741010#M1466818</guid>
      <dc:creator>nikhil_bose</dc:creator>
      <dc:date>2008-04-30T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741011#M1466819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls refer the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the same coding which is mentioned in this link.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also I cannot use integer.parseInt(colval)  because new Label()  will accept only the int,int,string as parameters.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here goes my to excel method code which exports the data to excel sheet .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private FileInputStream toExcel(IWDNode dataNode, Map columnInfos) {&lt;/P&gt;&lt;P&gt;String fileName = "output.xls";&lt;/P&gt;&lt;P&gt;IWDCachedWebResource cachedExcelResource = null;&lt;/P&gt;&lt;P&gt;int i = 0;&lt;/P&gt;&lt;P&gt;try{&lt;/P&gt;&lt;P&gt;File f = new File("output.xls");&lt;/P&gt;&lt;P&gt;WritableWorkbook workbook = Workbook.createWorkbook(f);&lt;/P&gt;&lt;P&gt;WritableSheet sheet = workbook.createSheet("First Sheet", 0);&lt;/P&gt;&lt;P&gt;for(Iterator coluinfoitr = columnInfos.keySet().iterator(); coluinfoitr.hasNext();){&lt;/P&gt;&lt;P&gt;Label label = new Label(i, 0, (String)columnInfos.get(coluinfoitr.next()));&lt;/P&gt;&lt;P&gt;sheet.addCell(label);&lt;/P&gt;&lt;P&gt;i++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int j = 0;&lt;/P&gt;&lt;P&gt;for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();){&lt;/P&gt;&lt;P&gt;String attributeName = (String)iter.next();&lt;/P&gt;&lt;P&gt;for(int index = 0; index &amp;lt; dataNode.size(); index++){&lt;/P&gt;&lt;P&gt;try{&lt;/P&gt;&lt;P&gt;IWDNodeElement nodeElement = dataNode.getElementAt(index);&lt;/P&gt;&lt;P&gt;String colVal = nodeElement.getAttributeAsText(attributeName);&lt;/P&gt;&lt;P&gt; Label value = new Label(j, index + 1, colVal);&lt;/P&gt;&lt;P&gt;sheet.addCell(value);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;catch (Exception e){&lt;/P&gt;&lt;P&gt;wdComponentAPI.getMessageManager().reportException(" Data Retrive Err :" + e.getLocalizedMessage(),false);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;j++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;workbook.write();&lt;/P&gt;&lt;P&gt;FileInputStream excelCSVFile = new FileInputStream(f);&lt;/P&gt;&lt;P&gt;cachedExcelResource = getCachedWebResource(excelCSVFile, fileName, WDWebResourceType.getWebResourceType("xls", "application/ms-excel"));&lt;/P&gt;&lt;P&gt;wdContext.currentContextElement().setExcelDownload(cachedExcelResource.getURL());&lt;/P&gt;&lt;P&gt;workbook.close();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is exporting the data in text format.  So I am unable to sum up the column values in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an alternate solution wherein I can export the data in integer format to excel sheet and then sum up the column values by clicking on summation button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subashini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 08:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741011#M1466819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T08:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741012#M1466820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to get javadoc for JExcel API but the link &lt;A href="http://jexcelapi.sourceforge.net/" target="test_blank"&gt;http://jexcelapi.sourceforge.net/&lt;/A&gt; is not opening. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 09:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741012#M1466820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T09:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741013#M1466821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try to open the link which i sent before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls try to open the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.andykhan.com/jexcelapi/tutorial.html" target="test_blank"&gt;http://www.andykhan.com/jexcelapi/tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subashini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Subashini on Apr 30, 2008 11:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 09:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741013#M1466821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T09:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741014#M1466822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why don't you use double instead Label?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nikhiL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 09:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741014#M1466822</guid>
      <dc:creator>nikhil_bose</dc:creator>
      <dc:date>2008-04-30T09:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741015#M1466823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the link you provided in last message I found out the following code which may be helpful to you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WritableCellFormat integerFormat = new WritableCellFormat (NumberFormats.INTEGER);&lt;/P&gt;&lt;P&gt;Number number2 = new Number(0, 4, 3.141519, integerFormat);&lt;/P&gt;&lt;P&gt;sheet.addCell(number2); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 09:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741015#M1466823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741016#M1466824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal/Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not asking how to format an integer.  I just want to know how to convert string into integer.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with integer.parseInt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But label accepts only int,int,string as arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil - Can you explain how to use double?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send any sample code for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subashini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 10:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741016#M1466824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T10:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741017#M1466825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;String colVal = nodeElement.getAttributeAsTex(attributeName);
Label value = new Label(j, index + 1, colVal);
sheet.addCell(value);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;String colVal = nodeElement.getAttributeAsTex(attributeName);

WritableCellFormat integerFormat = new WritableCellFormat (NumberFormats.INTEGER);
Number number = new Number(j, index + 1, Integer.parseInt(colVal), integerFormat);
sheet.addCell(number);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 10:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741017#M1466825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the data as integer into excel sheet?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741018#M1466826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set cell format as number&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WritableCell cell = sheet.getWritableCell(2, 4);

NumberFormat twodps = new NumberFormat("####.##");
WritableCellFormat cellFormat = new WritableCellFormat(twodps);
cell.setFormat(cellFormat);
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Add Number Cell&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 Number number = new Number(2, 4, colValue);
 sheet.addCell(number);
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nikhiL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nikhil Bos on Apr 30, 2008 3:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 10:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-export-the-data-as-integer-into-excel-sheet/qaa-p/3741018#M1466826</guid>
      <dc:creator>nikhil_bose</dc:creator>
      <dc:date>2008-04-30T10:11:26Z</dc:date>
    </item>
  </channel>
</rss>

