Error reading a Excel sheet in BDS

Hi Team,
I have uploaded an excel sheet in BDS by OAER. Now in my program I want to read the excel file. I am putting the code snippet.
DATA;
      l_v_proxy   TYPE REF TO i_oi_document_proxy,
      l_v_control TYPE REF TO i_oi_container_control,
      l_v_container TYPE REF TO cl_gui_custom_container.
CALL METHOD l_v_control->init_control
           EXPORTING r3_application_name =
                                   'BDS-DOI'
                      inplace_enabled = 'X'
                      inplace_scroll_documents = 'X'
                      parent = l_v_container
                     register_on_close_event = 'X'
                     register_on_custom_event = 'X'
            IMPORTING retcode = v_retcode.
    CALL METHOD c_oi_errors=>raise_message
      EXPORTING
        type = 'E'.
  CALL METHOD l_v_control->get_document_proxy
    EXPORTING
      document_type   = 'Excel.Sheet.8'
      document_format = l_v_doc_format "OLE
    IMPORTING
      document_proxy  = l_v_proxy
      retcode         = v_retcode.
  IF v_retcode NE c_oi_errors=>ret_ok.
    EXIT.
  ENDIF.
  CLEAR l_v_error.
  CALL METHOD l_v_proxy->has_spreadsheet_interface
    IMPORTING
      error        = l_v_error
      is_available = l_v_has
      retcode      = v_retcode.
  IF v_retcode NE 'OK'.
    RETURN.
  ENDIF.
But in has_spreadsheet_interface it returns error return code like 'DOCUMENT_NOT_OPEN'.
Can you please help me that what would be the possible causes of the error.
Thanks,
Mainak

Hi,
Its clear now.
Merci
MFH

Similar Messages

  • Error while importing excel sheet in Import manager

    Hi Experts,
    Please find below error while importing Excels sheet as a source into import manger and advice.
    logon error: failed to open table Text Table for insertion
    Error: Query must have at least one destination filed in sap MDM Import manager
    Regards,
    MFH

    Hi,
    Its clear now.
    Merci
    MFH

  • Read an excel sheet and selected two columns like A and C will plot as a XY Graph (X as a A column and Y as a C column)

    hi sir i am read excel sheet using labview ,but unable to plot the selected colomns,so its needfull ,please find any body to sollution to the problem .i i already did some part ,it is take  too much delay
    Attachments:
    CSV File to XY GRAPH 13.lvproj ‏9 KB

    shambhulinga a écrit :
    hi sir i am read excel sheet using labview ,but unable to plot the selected colomns,so its needfull ,please find any body to sollution to the problem .i i already did some part ,it is take  too much delay
    First, you are not reading an Excel sheet but a text file (a csv file is a text file). From the listing of the function used (from the lvproj file) you are using the Read From Spreadsheet function, this function will return a 2D array. Use the Index Array function to extract the x and y value columns. Bundle them (using the Bundle function) and wire the output to your XY-Graph.
    Ben64

  • Error while sending excel sheet as attachment to Mail Receiver

    Hi everyone,
    I am facing the below error when I am trying to send data to Mail receiver adapter. The attachment is excel sheet.
    Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of MessageTransformBean.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of MessageTransformBean..
    I don't understand where the problem is. This has been running since long time and last month we have changed our web dispatcher details. I hope everything is fine. But not sure the root cause for this issue.
    Please help me in resolving this.
    Thank you.
    Regards
    Bhanu T.

    Check if this helps: MessageTransformBean module
    Confirm that you have configured the MessagetransformationBean properly.
    Are you trying to convert some payload into Excel and send it as an attachment in the Mail CC? If yes, then I hope that you have included the correct Content_type value.
    Check this for more info on Content_type: /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    Regards,
    Abhishek.

  • How to read an excel sheet in java

    hi all!
    i want to read data from an excel sheet.could U plz send me the code from scratch.
    thanks in advance

    Look for jxl.jar (http://www.andykhan.com/jexcelapi/) or jexcel. Worked fine for me. And as for the code: see the example programs and documentation....
    Sample:
         private ArrayList procesExcelFile(File file){
              logger.info("Processing XSL file ("+file.getAbsolutePath()+")");          
              ArrayList result = new ArrayList();
              Hashtable xlsRow = null;
              int row;
              try{
                   // Open sheet
                   WorkbookSettings wbs = new WorkbookSettings();
                   wbs.setInitialFileSize( (int) file.length());
                   Workbook workbook = Workbook.getWorkbook(file,wbs);
                   Sheet sheet = workbook.getSheet(0);
                   // Init XML tags on 1st header
                   this.readTagLine(sheet.getRow(0));
                   // Read sheet row by row, skip first & empty rows
                   for(row = 1; row < sheet.getRows(); row++){
                        xlsRow = this.convertRowToTable(sheet.getRow(row));
                        if(!xlsRow.isEmpty()){
                             result.add(xlsRow);
                   logger.info("Processed XSL file, " + result.size() + " rows found (excl. header)");
              catch(IOException ioe){
                   logger.error("Error reading XLS file", ioe);
                   succes = "false";
              catch(BiffException be){
                   logger.error("Could not get workbook from XLS file", be);
                   succes = "false";
              catch(OutOfMemoryError oome){
                   logger.fatal("Not enough memory for processing XLS file", oome);
                   succes = "false";
              return result;
         }now gimme them Duke Dollars ;)

  • Error while uploading Excel sheet

    Hello Everybody,
    I haave developed one application in which I am uploading one excel sheet. This code is working fine on my local WAS. But, it is giving me following error on Development server.
    Application error occurred during request processing.
      Details:   java.lang.NoSuchMethodError: com.sap.engine.services.servlets_jsp.lib.multipart.MultipartMessage.setCharset(Ljava/lang/String;)V
    Exception id: [0012799E23D0004E0000021C000022E900043C0595771BD9]
    From the error it seems that it is not from my application but this error is coming from the server side. What could be the issues/problem from the server?
    Did anybody encounter the same error?
    Please help me in this regard.
    Thanks,
    Bhavik Devisha

    Hello Bhavik,
    are you using any external library in your project?
    Can you please share the code which is posing problem?
    Ashu

  • Reading from Excel sheet

    I am trying to read a single column of data from an Excel sheet.
    My Excel looks like this:
    appnum
    100
    200
    abc201
    300
    def301
    400
    500
    My Excel sheet is called "appnumbers.xls" and the sheet is also called "appnumbers".
    I have created the DSN and called it "appnumbers".
    This is my code:
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.DriverManager;
    public class readExcel
        public static void main( String [] args )
            Connection c = null;
            Statement stmnt = null;
            try
                Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
                c = DriverManager.getConnection( "jdbc:odbc:appnumbers", "", "" );
                stmnt = c.createStatement();
                String query = "select appnum from [appnumbers$]";
                ResultSet rs = stmnt.executeQuery( query );
                System.out.println( "Found the following app numbers:" );
                while( rs.next() )
                    System.out.println( rs.getString( "appnum" ) );
            catch( Exception e )
                System.err.println( e );
            finally
                try
                    stmnt.close();
                    c.close();
                catch( Exception e )
                    System.err.println( e );
    }The output is as follows:
    100.0
    200.0
    null
    300.0
    null
    400.0
    500.0
    1. Why do the numbers appear like integers (100 shows up as 100.0)?
    2. Why do the aplhanumeric characters appear as null?

    Yeah, the excel odbc driver tries to gues the type of each column, based on the type of the first "data row" in each column. It's smart enough to ignore column headers, but it's not smart enough to read the whole column of values before deciding the type, so it's treating your alphanumeric values as an integer.
    try sticking "abc123" in as the first data row and see what happens.
    I believe, though I've never actaully done it, that you can programatically specify the datatype for each column, overriding the default silly guess work.
    if that doesn't work try exporting the spreadsheet as XML and parsing it, instead of relying on the dodgy odbc driver at all.
    Keith.
    Message was edited by: corlettk

  • Read fron Excel Sheet on Browser.

    Hi All,
    I ve a project in which I have generated an Excel sheet taking data from XML using jakarta POI.Till now it works well, the Excel sheet is displayed on browser.Now the challenge is If user edit some data in Excel Sheet displayed on browser,there should be a Submit button clicking on which the edited data must be reflected in the XML.
    Any help in this direction would be highly appreciated.
    Thanks.

    Thanks for sending this link, know i want to
    display and existing Excel chart Using OLE is it
    possible in jsp/servletYes, you can do it.
    http://www.javaworld.com/javaworld/jw-03-2004/jw-0322-poi.html
    Pls try to use google. Search this string in google - "Excel java OLE"
    Cheers

  • How i can send measurment reading to excel sheet?

    q.1: i have some readings and i want to send them to excel sheet
    q.2: how i can draw a gragh for these readings?
    Solved!
    Go to Solution.
    Attachments:
    Temp.vi ‏59 KB

    You can do this directly like this right?
    Attachments:
    gr.vi ‏12 KB

  • Read multiple excel sheets using dataset...

    Hello Experts,
    I've searched the forums and I cannot find any suitable threads for regarding my question. Anyway, I wanto to read and .XLS file residing in the application server using the DATASET commands.However, I am having a shortdump saying "An exception with the type CX_SY_CONVERSION_CODEPAGE".

    Continue.......
    IF iref_error->has_failed = 'X'.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      CALL METHOD iref_document->release_document
    *  EXPORTING
    *    no_flush = ' '
         IMPORTING
           error    = iref_error
    *    retcode  =
      IF iref_error->has_failed = 'X'.
        CALL METHOD iref_error->raise_message
          EXPORTING
            type = 'I'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    *&      Form  SUB_FILE_F4
    *       F4 help for file path
    FORM sub_file_f4 .
      DATA:
      l_desktop       TYPE string,
      l_i_files       TYPE filetable,
      l_wa_files      TYPE file_table,
      l_rcode         TYPE int4.
    * Finding desktop
      CALL METHOD cl_gui_frontend_services=>get_desktop_directory
        CHANGING
          desktop_directory    = l_desktop
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        MESSAGE e001(00) WITH
            'Desktop not found'.
      ENDIF.
    * Update View
      CALL METHOD cl_gui_cfw=>update_view
        EXCEPTIONS
          cntl_system_error = 1
          cntl_error        = 2
          OTHERS            = 3.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
         EXPORTING
           window_title            = 'Select Excel file'
           default_extension       = '.xls'
    *      default_filename        =
           file_filter             = '.xls'
    *      with_encoding           =
           initial_directory       = l_desktop
    *      multiselection          =
        CHANGING
          file_table              = l_i_files
          rc                      = l_rcode
    *     user_action             =
    *     file_encoding           =
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5
      IF sy-subrc <> 0.
        MESSAGE e001(00) WITH 'Error while opening file'.
      ENDIF.
      READ TABLE l_i_files INDEX 1 INTO l_wa_files.
      IF sy-subrc = 0.
        p_file = l_wa_files-filename.
      ELSE.
        MESSAGE e001(00) WITH 'Error while opening file'.
      ENDIF.

  • How to read/write Excel sheets using java

    Hello,
    I have downloaded poi-2.5.1-all-bin and it has
    poi-2.5.1-final-20040804 , poi-contrib-2.5.1-final-20040804, poi-scratchpad-2.5.1-final-20040804 jar Files
    i am unable to configure POI which i have downloaded, when i do
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    it gives error while compilation saying cannot find Sheet class, Workbook class
    should i use ant to build it or which jar file path should i specify in the classpath, because i have downloaded the POI package on to my desktop and included the specified the entire path of all the jar files in the classpath but still the same problem.
    Please guide me.

    dvrsandeep wrote:
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    it gives error while compilation saying cannot find Sheet class, Workbook class
    Either it isn't in your class path or you are using the wrong names. Simple as that.
    Just as a possibility since you didn't import a "Sheet" class but rather a "HSSFSheet" that certainly suggests something is wrong.

  • Error download to excel sheet

    Hello,
    I have a big problem that I don't understand.
    I have to save data from SAP to Excel file using OLE2 methods.
    But there is a cell (BJ5) that always shows the same value: 0.000. It doesn't matter the value is sent from SAP.
    The format of this cell IS NOT the problem. I have tried general, text... and others.
    Thanks in advance.

    Not answer please.
    I'm stupid.

  • Error in uploading excel sheet data into internal table

    Dear all,
    i am facing problem when uploading data from excel. i used KD_GET_FILENAME_ON_F4.i select the file and pass on to ALSM_EXCEL_INTO_INTERNAL_TABLE.and i get the ERROR....
      Illegal type when transferring an internal table to a FORM. this is my code .
    types : begin of ty_mm01,
            matnr like rmmg1-matnr,
            mbrsh like rmmg1-mbrsh,
            mtart like rmmg1-mtart,
            maktx like makt-maktx,
            meins like mara-meins,
            matkl like mara-matkl,
            bismt like mara-bismt,
            spart like mara-spart,
            mtpos like mara-mtpos_mara,
            end of ty_mm01.
    data :  tt_mm01 type standard table of ty_mm01,
            wa_mm01 like TT_MM01.
    data : t_bdcdata like standard table of bdcdata,
           t_bdcmsgcoll like standard table of bdcmsgcoll.
    constants:  begcol TYPE i value 1 ,
                begrow TYPE i value 1,
                endcol TYPE i value 100,
                endrow TYPE i value 32000.
    selection-screen : begin of block bdc with frame.
    parameter : tfile like rlgrap-filename obligatory.
    selection-screen : end of block bdc.
    at selection-screen on value-request for tfile.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
       PROGRAM_NAME        = 'ZMM_MAT_MAS_BASIC_DATA'
       DYNPRO_NUMBER       = '1000'
       FIELD_NAME          = 'TFILE'
       STATIC              = 'X'
      MASK                = ',*.xls,'
      CHANGING
        FILE_NAME           = tfile
    start-of-selection.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = tfile
        I_BEGIN_COL                   = begcol
        I_BEGIN_ROW                   = begrow
        I_END_COL                     = endcol
        I_END_ROW                     = endrow
      TABLES
        INTERN                        = tt_mm01
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks in advance

    Hi,
    Check these FM : KCD_EXCEL_OLE_TO_INT_CONVERT
    Report ZPSP_TEST.
    data: bdc_DATA like bdcdata occurs 0 with header line,
    mess_tab like bdcmsgcoll occurs 0 with header line.
    DATA: BEGIN OF ITAB OCCURS 0 ,
    tcnt TYPE i, "Table Counter &H0D
    WERKS LIKE T001W-WERKS,
    BNFPO LIKE EBAN-BNFPO,
    MATNR LIKE MARA-MATNR,
    MENGE LIKE EBAN-MENGE,
    END OF ITAB.
    start-of-selection.
    PERFORM upload_data.
    loop at itab.
    perform bdc_dynpro using 'SAPMM06B' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'EBAN-BSART'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'EBAN-BSART'
    'NB'.
    perform bdc_field using 'RM06B-LPEIN'
    'T'.
    perform bdc_field using 'EBAN-WERKS'
    ITAB-WERKS.
    perform bdc_dynpro using 'SAPMM06B' '0106'.
    perform bdc_field using 'BDC_CURSOR'
    'RM06B-EKGRP'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RM06B-BNFPO'
    ITAB-BNFPO.
    perform bdc_dynpro using 'SAPMM06B' '0106'.
    perform bdc_field using 'BDC_CURSOR'
    'EBAN-MENGE(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'EBAN-MATNR(01)'
    ITAB-MATNR.
    perform bdc_field using 'EBAN-MENGE(01)'
    ITAB-MENGE.
    perform bdc_dynpro using 'SAPMM06B' '0102'.
    perform bdc_field using 'BDC_CURSOR'
    'EBAN-MENGE'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    *perform bdc_field using 'RM06B-EEIND'
    record-EEIND_010.
    *perform bdc_field using 'RM06B-LPEIN'
    record-LPEIN_011.
    *perform bdc_field using 'EBAN-EKGRP'
    record-EKGRP_012.
    *perform bdc_field using 'EBAN-BADAT'
    record-BADAT_013.
    *perform bdc_field using 'EBAN-FRGDT'
    record-FRGDT_014.
    *perform bdc_field using 'EBAN-PREIS'
    record-PREIS_015.
    *perform bdc_field using 'EBAN-WAERS'
    record-WAERS_016.
    *perform bdc_field using 'EBAN-PEINH'
    record-PEINH_017.
    *perform bdc_field using 'EBAN-REPOS'
    record-REPOS_018.
    perform bdc_dynpro using 'SAPMM06B' '0106'.
    perform bdc_field using 'BDC_CURSOR'
    'EBAN-MENGE(02)'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    *perform bdc_field using 'RM06B-BNFPO'
    record-BNFPO_019.
    *perform bdc_field using 'EBAN-MATNR(02)'
    record-MATNR_02_020.
    *perform bdc_field using 'EBAN-MENGE(02)'
    record-MENGE_02_021.
    perform bdc_dynpro using 'SAPMM06B' '0102'.
    perform bdc_field using 'BDC_CURSOR'
    'EBAN-MENGE'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    *perform bdc_field using 'EBAN-MENGE'
    ITAB-MENGE_023.
    *perform bdc_field using 'RM06B-EEIND'
    record-EEIND_024.
    *perform bdc_field using 'RM06B-LPEIN'
    record-LPEIN_025.
    *perform bdc_field using 'EBAN-EKGRP'
    record-EKGRP_026.
    *perform bdc_field using 'EBAN-BADAT'
    record-BADAT_027.
    *perform bdc_field using 'EBAN-FRGDT'
    record-FRGDT_028.
    *perform bdc_field using 'EBAN-PREIS'
    record-PREIS_029.
    *perform bdc_field using 'EBAN-WAERS'
    record-WAERS_030.
    *perform bdc_field using 'EBAN-PEINH'
    record-PEINH_031.
    *perform bdc_field using 'EBAN-REPOS'
    record-REPOS_032.
    perform bdc_field using 'EBAN-TXZ01'
    'BEARING 2"X2"'.
    perform bdc_field using 'EBAN-MENGE'
    '65'.
    perform bdc_field using 'RM06B-EEIND'
    '2005/01/03'.
    perform bdc_field using 'RM06B-LPEIN'
    'D'.
    perform bdc_field using 'EBAN-EKGRP'
    'M11'.
    perform bdc_field using 'EBAN-BADAT'
    '2005/01/03'.
    perform bdc_field using 'EBAN-FRGDT'
    '2005/01/03'.
    perform bdc_field using 'EBAN-PREIS'
    ' 1,120.00'.
    perform bdc_field using 'EBAN-WAERS'
    'EUR'.
    perform bdc_field using 'EBAN-PEINH'
    '1'.
    perform bdc_field using 'EBAN-REPOS'
    'X'.
    perform bdc_dynpro using 'SAPMM06B' '0102'.
    perform bdc_field using 'BDC_CURSOR'
    'EBAN-MENGE'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'EBAN-TXZ01'
    'DRILLING PIPE 10"'.
    perform bdc_field using 'EBAN-MENGE'
    '75'.
    perform bdc_field using 'RM06B-EEIND'
    '2005/01/03'.
    perform bdc_field using 'RM06B-LPEIN'
    'D'.
    perform bdc_field using 'EBAN-EKGRP'
    'M11'.
    perform bdc_field using 'EBAN-BADAT'
    '2005/01/03'.
    perform bdc_field using 'EBAN-FRGDT'
    '2005/01/03'.
    perform bdc_field using 'EBAN-PREIS'
    ' 0.53'.
    perform bdc_field using 'EBAN-WAERS'
    'EUR'.
    perform bdc_field using 'EBAN-PEINH'
    '1'.
    perform bdc_field using 'EBAN-REPOS'
    'X'.
    perform bdc_dynpro using 'SAPMM06B' '0106'.
    perform bdc_field using 'BDC_CURSOR'
    'RM06B-BNFPO'
    perform bdc_field using 'BDC_OKCODE'
    '&H3DBU'.
    *perform bdc_field using 'RM06B-BNFPO'
    CALL TRANSACTION 'ME51' USING BDC_DATA MODE 'A'.
    endLOOP.
    FORM upload_data.
    *local variable declaration
    DATA : lv_index TYPE i,
    l_count TYPE i.
    *local constants declaration
    CONSTANTS:
    lc_start_col TYPE i VALUE '1' ,
    lc_start_row TYPE i VALUE '2' ,
    lc_end_col TYPE i VALUE '256' ,
    lc_end_row TYPE i VALUE '65536'.
    *local field symbol declaration
    FIELD-SYMBOLS : <lf_s>.
    *loacal internal table declaration
    DATA : li_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.
    *refresh internal table for each loop
    CLEAR: li_intern,
    l_count .
    REFRESH li_intern.
    to upload the data in excel on the presentation server this function
    module converts the data from excel file into an internal table
    containing row no col no and value
    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
    EXPORTING
    filename &H3D 'Give file location here'
    i_begin_col &H3D lc_start_col
    i_begin_row &H3D lc_start_row
    i_end_col &H3D lc_end_col
    i_end_row &H3D lc_end_row
    TABLES
    intern &H3D li_intern
    EXCEPTIONS
    inconsistent_parameters &H3D 1
    upload_ole &H3D 2.
    checking for data in internal table
    CHECK NOT li_intern[] IS INITIAL.
    sorting internal table
    SORT li_intern BY row col.
    collecting data into an internal table
    LOOP AT li_intern.
    MOVE: li_intern-col TO lv_index.
    lv_index &H3D lv_index + 1.
    ASSIGN COMPONENT lv_index OF STRUCTURE itab TO <lf_s>.
    MOVE : li_intern-value TO <lf_s>.
    AT END OF row.
    l_count &H3D l_count + 1.
    itab &H3D l_count.
    APPEND itab.
    ENDAT. " at end of row
    ENDLOOP. " loop at li_intern
    Reg,
    Siva
    Edited by: Siva Prasad on Jun 1, 2009 8:41 AM
    Edited by: Siva Prasad on Jun 1, 2009 4:25 PM

  • Numberformat error in generating excel sheet

    i am changing the numberformat through these commands but getting error :-
    NumberFormat fivedps =fivedps=new NumberFormat("#######.##");
    WritableCellFormat fivedpsFormat = new WritableCellFormat(fivedps);
    WritableCellFormat fivedpsFontFormat = new WritableCellFormat (times16font, fivedps);
    ERRORS:-
    java.text.NumberFormat is abstract; cannot be instantiated
    NumberFormat fivedps =fivedps=new NumberFormat("#######.##");
    constructor WritableCellFormat (java.text.NumberFormat)
    location: class jxl.write.WritableCellFormat
    WritableCellFormat fivedpsFormat = new WritableCellFormat(fivedps);
    how do i solve these problems and achieve the same functioning?

    Try DecimalFormat

  • How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

    Hi,
    To achieve these are the steps that I had followed :
    1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
    2. Add Documnet Library link to Trusted Connection Proivder
    3. Open Visual Studio as Run as Administrator
    4.Create an SharePoint 2013 Empty Project.
    5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
    6.Service added successfully
    7.Create a class file and add the Service Reference namespace
    There is no such class as ExcelService to call. 
    Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
    Requirement is :
    Need to read the excel sheet  from Document Library and transfer all data into DataTable.
    Please help asap. 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

Maybe you are looking for