Skip to Content
author's profile photo Former Member
Former Member

Not able to get exact cell format in webdynpro java while uploading excel f

Hi All,

We have excel upload functionality in our application where uses across the globe used to upload the excel in their respective format (There are three main formats i.e. 1 ###,###.## 2 ###.###,## 3 ### ###.##) .we have validation to check that the excel format and user format is same or not. If format is not same then user will get error message, otherwise excel will get uploaded.

Now the problem is, when I try to upload excel with some numeric values which has thousand separator u201C,u201D & Decimal separator u201C.u201D (e.g. 100,000.00) and try to print cell value in WebDynpro application using JXL API then it gives me same value i.e. 100,000.00. But when I try to upload excel which has thousand separator u201C.u201D & Decimal separator u201C,u201D (e.g. 100.000,00) and try to print cell value using JXL API then it gives me 100,000.00 , Ideally it should print 100.000,00 instead of 100,000.00

We are using JXL API to get the excel content:

Sting l_sheetval = l_sheet.getCell(l_ColCounter, l_RowCounter).getContents();

Please let me know if anybody has any idea regarding this

Thanks

Sandeep

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 18, 2011 at 05:11 PM

    i think it is jxl issue, which ignores the format.

    you'd better try poi.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.