How to parse excel spread sheet contains merged cells in SharePoint 2010 sand box solution?

Hi All,
in my requirement i need to parse  excel file which contains merged cells. i need to get this functionality in sandbox solution. in my server i can not use interop dll or open xml.  can anybody help me on this.
Regards,
Venu

Hi Venu,
There are a couple of other threads with code samples that reads excel files from document libraries, so you can try out those if you like. You probably  have to modify them a bit to adjust to Sandbox requirements, but they should do well as starting
points anyhow.
https://social.technet.microsoft.com/forums/sharepoint/en-US/81d2535c-49cc-4fad-8308-39c4a33fd004/read-excel-file-for-sandbox-solution-for-office365
http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/1fce430c-5e2c-401e-ad8a-99e890d1dcef
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/5b5c96d4-17fb-42ad-8c30-e184fe26c5ef
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Uploading excel spread sheet using gui_upload

    Can any one guide me for how to upload excel spread sheet using function gui_upload.

    Use the FM gui_upload.
    TYPES : BEGIN OF tp_data,
              line(4096),
            END   OF tp_data.
    DATA: l_filename_ip TYPE string,
            tl_data       TYPE STANDARD TABLE OF tp_data WITH HEADER LINE.
      l_filename_ip = p_input.
    *--Upload Data
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = l_filename_ip
                filetype                = 'ASC'
                has_field_separator     = ''
           TABLES
                data_tab                = tl_data
           EXCEPTIONS
                file_open_error         = 1
                file_read_error         = 2
                no_batch                = 3
                gui_refuse_filetransfer = 4
                invalid_type            = 5
                no_authority            = 6
                unknown_error           = 7
                bad_data_format         = 8
                header_not_allowed      = 9
                separator_not_allowed   = 10
                header_too_long         = 11
                unknown_dp_error        = 12
                access_denied           = 13
                dp_out_of_memory        = 14
                disk_full               = 15
                dp_timeout              = 16
                OTHERS                  = 17.
    File name is string type so convert it into string as shown above. Now give the path of the required file and give the required extension. Extension is necessary. Give EXL fr excel sheet and TXT for notepad file etc. Call the FM and u will get all the data in the internal table tl_data.
    Now once u get all the data in tl_data u can split it into ure required internal table as shown below.
    Write the below logic after calling the above FM.
    LOOP AT tl_data .
    *--Taking the contents of the input file leaving the header part
          PERFORM split_and_save USING tl_data-line.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " gui_upload
    *&      Form  split_and_save
          Splitting the contents from the input file and saving them into
          an internal table
         -->P_TL_DATA_LINE  text
    FORM split_and_save USING fp_data.
    *--Local data declaration
      DATA : tl_data TYPE STANDARD TABLE OF tp_data WITH HEADER LINE,
             l_type  TYPE c,
             c_comma(1) TYPE c VALUE ','.
    *--Split at the Comma
      SPLIT fp_data AT c_comma INTO TABLE tl_data.
      CLEAR inputtab.
    *--Move it to the target fields
      DO.
        ASSIGN COMPONENT sy-index OF STRUCTURE inputtab TO <fs_field>.
        IF NOT sy-subrc IS INITIAL.
          EXIT.
        ENDIF.
    *--Extract source data
        CLEAR tl_data.
        READ TABLE tl_data INDEX sy-index.
    *--Populate the target
        <fs_field> = tl_data-line.
      ENDDO.
    *--Append this record
      APPEND inputtab.
    ENDFORM.                    " split_and_save
    The above code will give u the required internal table.
    Reward if helpful..
    Cheers,
    Sharadendu

  • How to transfer a set of data from Excel spread sheet to an Access database

    hi,
    Can any one please tell me how to transfer a set of data from Excel spread sheet to an Access database using SQL query.I'm using java API currently. I have done all sorts of ODBC connection in administrative tools.The file is in correct location. I have done certain coding but with errors.Help me to get rid of these errors,
    Coding:*
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection datacon=DriverManager.getConnection("jdbc:odbc:exdata","",""); *//For Excel driver*
    Connection datacon1=DriverManager.getConnection("jdbc:odbc:stock1","",""); *// For mdb driver*
    Statement datast=datacon.createStatement();
    Statement datast1=datacon1.createStatement();
    ResultSet excelrs=datast.executeQuery("select item_code,sdata,closing_stock from phy "); *//phy is the excel file*
    while(excelrs.next())
    String ic=excelrs.getString("item_code");
    System.out.println(ic);
    String d=excelrs.getString("sdate");
    double cs=excelrs.getDouble("closing_stock");
    int dbrs=datast1.executeUpdate("insert into second values('"+ic+"','"+d+"',"+cs+")"); *//second is the mdb*
    excelrs.close();
    }catch(Exception e)
    System.out.println(e);
    Error:*
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object 'C:\JavaGreen\phy.xls'. Make sure the object exists and that you spell its name and the path name correctly.
    thanks,
    kumar.

    JAVA_GREEN wrote:
    No i haven't mixed up.But the file from where i have to retrieve the data is in csv format.Even though i created another csv driver.and tried but i cud not find a solution to load/transfer a set of records from one file(in Excel/csv format) to another file(in mdb format).plz help me.Is there any other methods for this data transfer.A csv file is NOT an excel file.
    The fact that Excel can import a csv file doesn't make it an excel file.
    If you have a csv file then you must use a csv driver or just use other code (not jdbc) to access it. There is, normally, a ODBC (nothing to do with java) text driver that can do that.

  • How to convert Oracle Report Output to Excel Spread Sheet..

    Hello Sir,
    How to convert Oracle Report Output to Excel Spread Sheet..
    Thanks..

    Hello,
    Please give us more information what kind of report(s). Sample example etc.,
    Sri

  • How to use a servlet to display an excel spread sheet onto a browser?

    Hi, I have a problem here, I couldn't display an excel spread sheet onto a browser..Can anybody enlighten me on how to go about it?
    Thanks

    Hi, I tried to refresh the 'application/vnd.ms-excel'
    page by calling it again from another frame...it give me a blank page.
    Does it means that the excel sheet cannot be reopen once it's open?
    thanks

  • How can I form a group in address book. I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to.

    I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to. I can either use address book or transfer them to BTYahoo contacts and send from there.

    Hello, if you have the font that Photoshop is supposed to use to write the barcode, and each image is also listed in the spreadsheet, you can use the little known feature called variables: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.h tml
    see this video: 
    http://www.youtube.com/watch?v=LMAeX5pexNk
    Or this one:
    http://tv.adobe.com/watch/adobe-evangelists-julieanne-kost/pscs5-working-with-variables/

  • How to read a spread sheet ( .xls ) file using a pl/sql procedure or func

    Hello All,
    Is it possible to read a spread sheet using Oracle pl.sql .
    I know their is a util package that is read a file but how to read a spread sheet ... ?
    thanks
    kumar

    hi kumar,
    Here is an example of how i read an excel file
    DECLARE
    l_start_file_name varchar2(50) := 'invoice_excel_c';
    l_end_file_name varchar2(50)   := '.csv';
    l_file_name varchar2(100);
    l_sql varchar(32767);
    refresh_cdc varchar2(5) := '00304';
    begin
    l_file_name := l_start_file_name||REFRESH_CDC||l_end_file_name;
    l_sql :=
    'create table exter_invoice_excel               '||
    '(                                              '||
    'Product_name                varchar2(255),     '||
    'Net_Sales                   Number,            '||
    'Net_Adjustments             Number,            '||
    'Cancels_Count               Number,            '||
    'Cancels_Amount              Number,            '||
    'Cashes_Count                Number,            '||
    'Cashes_Amount               Number,            '||
    'Claims_Count                Number,            '||
    'Claims_Amount               Number,            '||
    'Returns_Count               Number,            '||
    'Returns_Amount              Number,            '||
    'Free_Prize_Count            Number,            '||
    'Free_Prize_Amount           Number,            '||
    'Free_Promo_Count            Number,            '||
    'Free_Promo_Amount           Number,            '||
    'Promo_Credit_Count          Number,            '||
    'Promo_Credit_Amount         Number,            '||
    'Return_Commission           Number,            '||
    'Net_Discounts               Number,            '||
    'Total_Fees                  Number,            '||
    'Sales_Commission            Number,            '||
    'Cash_Commission             Number,            '||
    'Tkt_Charge                  Number,            '||
    'Subscription_Commission     Number,            '||
    'Interim_Sweeps              Number,            '||
    'Net_Due                     Number,            '||
    'Retailer_id                 Number,            '||
    'Retailer_Name               varchar2(255)      '||
    ')                                              '||
                  'ORGANIZATION EXTERNAL (                 '||
                  ' TYPE oracle_loader                     '||
                   ' DEFAULT DIRECTORY GTECHFILES          '||
                   ' ACCESS PARAMETERS (                   '||
                   '   RECORDS DELIMITED BY NEWLINE        '||
                   '      CHARACTERSET WE8MSWIN1252        '||
                   '   BADFILE ''invoice_excel.bad''       '||
                   '   DISCARDFILE ''invoice_excel.dis''   '||
                   '   LOGFILE ''invoice_excel.log''       '||
                   '   FIELDS TERMINATED BY '','' RTRIM      '||
                   '  MISSING FIELD VALUES ARE NULL        '||
                   '   )                                   '||
                   '   LOCATION ('''||l_file_name||''')    '||
                   ' )                                     '||
                   'PARALLEL                               '||
                   'REJECT LIMIT UNLIMITED ';
            execute immediate l_sql;
          l_sql:=  'INSERT INTO INVOICE_EXCEL_TEMP                '||
                      ' ( Product_name               ,            '||
                      '  Net_Sales                   ,            '||
                      '  Net_Adjustments             ,            '||
                      '  Cancels_Count               ,            '||
                      '  Cancels_Amount              ,            '||
                      '  Cashes_Count                ,            '||
                      '  Cashes_Amount               ,            '||
                      '  Claims_Count                ,            '||
                      '  Claims_Amount               ,            '||
                      '  Returns_Count               ,            '||
                      '  Returns_Amount              ,            '||
                      '  Free_Prize_Count            ,            '||
                      '  Free_Prize_Amount           ,            '||
                      '  Free_Promo_Count            ,            '||
                      '  Free_Promo_Amount           ,            '||
                      '  Promo_Credit_Count          ,            '||
                      '  Promo_Credit_Amount         ,            '||
                      '  Return_Commission           ,            '||
                      '  Net_Discounts               ,            '||
                      '  Total_Fees                  ,            '||
                      '  Sales_Commission            ,            '||
                      '  Cash_Commission             ,            '||
                      '  Tkt_Charge                  ,            '||
                      '  Subscription_Commission     ,            '||
                      '  Interim_Sweeps              ,            '||
                      '  Net_Due                     ,            '||
                      '  Retailer_id                 ,            '||
                      '  Retailer_Name               ,            '||
                      '  SOURCE                      ,            '||
                      '  INSERTED_DATE               ,            '||
                      '  CDC                         ,            '||
                      '  UPLOADED                                 '||
                      ')                                          '||
    '              select                                         '||
                      '  ltrim(rtrim(product_name)) ,             '||
                      '  Net_Sales                   ,            '||
                      '  Net_Adjustments             ,            '||
                      '  Cancels_Count               ,            '||
                      '  Cancels_Amount              ,            '||
                      '  Cashes_Count                ,            '||
                      '  Cashes_Amount               ,            '||
                      '  Claims_Count                ,            '||
                      '  Claims_Amount               ,            '||
                      '  Returns_Count               ,            '||
                      '  Returns_Amount              ,            '||
                      '  Free_Prize_Count            ,            '||
                      '  Free_Prize_Amount           ,            '||
                      '  Free_Promo_Count            ,            '||
                      '  Free_Promo_Amount           ,            '||
                      '  Promo_Credit_Count          ,            '||
                      '  Promo_Credit_Amount         ,            '||
                      '  Return_Commission           ,            '||
                      '  Net_Discounts               ,            '||
                      '  Total_Fees                  ,            '||
                      '  Sales_Commission            ,            '||
                      '  Cash_Commission             ,            '||
                      '  Tkt_Charge                  ,            '||
                      '  Subscription_Commission     ,            '||
                      '  Interim_Sweeps              ,            '||
                      '  Net_Due                     ,            '||
                      '  Retailer_id                 ,            '||
                      '  Retailer_Name               ,            '||               
                      ' '''||l_file_name                           ||''', '||
                      '   sysdate                    ,            '||
                      ' '''||    REFRESH_CDC                       ||''', '||
                      '''N'''                                      || 
                      'FROM                                       '||
                      'exter_invoice_excel                        '||
                      'WHERE retailer_id is not null and ltrim(rtrim(product_name)) in (''Loto'',''Inst Tk'')';
            execute immediate l_sql;   
            l_sql :='drop table exter_invoice_excel';
            execute immediate l_sql;
    exception
    when others then
    rollback;
    l_sql :='drop table exter_invoice_excel';
    execute immediate l_sql;
    debug_message('INVOICE_EXCEL_UPLOAD/'||REFRESH_CDC,'Unexpected Error '||sqlerrm);
    END;
    --truncate table invoice_excel_tempjust go through the code, it would help u for sure
    cheers

  • Create new users from an excel spread sheet

    Hi Everyone.
    I am very new to SAP and I have only done the ABAP programming course last month.
    To make mme become familiar with ABAP - I was given a task of creating users from an Excel spread sheet - This will be used later on when we implement the new SAP system and decommision the legacy system.
    I am just wondering If anyone has created such program - I would appreciated If I can have a copy So I can learn how it is done -
    At the moment, I was thinking of using BAPI_USER_CREATE1 and BAPI_TRANSACTION_COMIT to create users and optimise the creation call. Is there any thing else that I should be aware of ? I'd be appreciated if someone drop me some ideas - Thanks in Advance

    Hi Samantak.
    Thanks for your quick response.
    Since posting the question, I discovered that within  'BAPI_USER_CREATE1'  sub-call statements - comit is already done. Now my questions are:
    1) Do I still need 'BAPI_TRANSACTION_COMIT' to optimise the CREATE new newusers call ?  Apparently, yes.......I am curious for the reason 'why' since comitting is already done.
    2) I did an interactive call of the 'BAPI_USER_CREATE1'  - a user id was actually created in the system.  Now, my second question is.. Is there a way of calling 'BAPI_USER_CREATE1'  without comitting the data (i.e. create user record on file)..
    I want to call this whout comitting because I want to sort out the number of 'good' records from the supplied data list - and presenting the success percentage to the users before comitting the data.
    Thanks

  • SAP BO XCelsius : Drilldown from pie chart to raw data ( Excel Spread Sheet) in Xcelsius

    Hi,
    I am working on a dashboard where my requirement says, Drill down data from Pie-Chart to Raw data ( Excel Spread sheet).
    Clicking on one pie should show me the required data in Excel format
    May I know if this is possible to create from Dashboard design tool SAP R4
    Thanks
    Javeed

    Hi Javeed,
    Drilling data from pie charts is very much possible. The data drilled down can be shown either in spread sheet format via components called "Scorecard" "List View". But if its specified that you need the current data drilled down to a separate excel spread sheet only then, you may need to use the third party components for it.
    There are many such components available for free. There are components available which are paid as well. You will have to find out which ones are free. Check out the threads below.
    How to export data out of Xcelsius to Excel
    CSV Connector
    http://pentaho-bi-suite.blogspot.sg/2013/12/exporting-table-component-to-excel-or.html
    Export Data from Dashboards | Just-BI | Business Intelligence
    SAP Dashboard Components - Multi Colour Column Chart, Hierarchical ComboBox &amp; Export To Excel Manufacturer from Beng…
    SAPexperts | Give Dashboard Users the Ability to Export Data to Excel at Run Time
    I hope this derives you to come conclusion.
    Thanks,
    Sara

  • Display Excel spread sheets

    Hello...I'm very green with my BB 8830 and not sure if and how to load a Excel spread sheet on my device.
    Do I need additional SW?
    Thanks...

    Tross,
    Yes, you can reference any cell in your document from any other cell. An example of a cell reference to a different sheet, table and cell is:
    =Sheet 2 :: Table 1 :: C4
    Jerry

  • I want to open excel spread sheets make additions and export back to pc users.  Is numbers suitable for this activity?

    I want to open excel spread sheets make additions and export back to pc users.  Is numbers suitable for this activity?  I am using a MACBook Air

    just read this in an other answer:
    Pages can open docx files, Numbers can open xlsx files. Each can export to  can export .doc or .xls to the newest Word or Excel format.respectvely, but not to the more recent .docx or .xlsx.
    Translation is not perfect in either direction. Numbers and Excel handle some similar features (eg. pop-up menus vs data validation) differently, and the translator cannot translate from one implementation to the other.
    If much of your work is going to be transferred between your machine and Windows machines running either MS Excel or MS Word, with editing taking place at both ends of the tunnel, then you'll probably be better off with Office, or one of the Office clones on the Mac end.

  • Problem in writing data to excel spread sheet using jdbc

    Hi Friend,
    I have written a jdbc application ,that retrives data from oracle8i database and writes to excel spread sheet.
    Here I am facing a problem while writing date vales to the spread sheet.
    It is just writing 00.00.0 , instead of a date like 21/10/2005, where I am going wrong , can any one guide me.
    Thanks in advance.

    Don't cross-post!
    http://forum.java.sun.com/thread.jspa?threadID=643815&tstart=0
    Especially when you already got your answer in the other post jackass. If you don't understand the answer then say so there.

  • Problem in writing data to excel spread sheet

    Hi Folks,
    I have developed a jdbc application that writes data to excel spread sheet.while trying to write data to excel, it could not write date values properly.it is writing 00.00.0 for all the date feilds.
    Can some one help here.
    Thanks in advance.

    You can try VistaJDBC at http://www.easyhr.com.au/software/easy_mdb_mde_compactor.htm .
    Otherwise you can write your code to csv/xml/dbase III format, since Excel can open those file format easily.

  • When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet. Example- MIME-Version: 1.0 X-Document-Type: Workbook Content-Type: multipart/related; boundary="====Boundary===="

    I have a Macbook Air. I have MS office installed and work in Excel often with no issues. But When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet.
    Example-
    MIME-Version: 1.0
    X-Document-Type: Workbook
    Content-Type: multipart/related; boundary="====Boundary===="
    --====Boundary====
    Content-Location: file:///C:/HOLD.XHT
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="utf-8"
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns="http://www.w3.org/TR/REC-html40">
    <HEAD>
    <meta name="Excel Workbook Frameset">
    <xml>
    <x:ExcelWorkbook>
      <x:ExcelWorksheets>
       <x:ExcelWorksheet>
        <x:Name>BTB</x:Name>
        <x:WorksheetSource HRef="./IBIT0001.xht"/>
       </x:ExcelWorksheet>
       <x:ExcelWorksheet>
        <x:Name>GSM</x:Name>
        <x:WorksheetSource HRef="./IBIT0002.xht"/>
       </x:ExcelWorksheet>
       <x:ExcelWorksheet>
        <x:Name>RODetail</x:Name>
        <x:WorksheetSource HRef="./IBIT0003.xht"/>
       </x:ExcelWorksheet>
      </x:ExcelWorksheets>
    </x:ExcelWorkbook>
    </xml>
    </HEAD>
    </HTML>
    --====Boundary====
    Content-Location: file:///C:/IBIT0001.xht
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="utf-8"
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns="http://www.w3.org/TR/REC-html40">
    <HEAD>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <style>
    <!--table
            {mso-displayed-decimal-separator:"\.";
            mso-displayed-thousand-separator:"\,";}
    @page
            {margin:1.0in .75in 1.0in .75in;
            mso-header-margin:.5in;
            mso-footer-margin:.5in;
            mso-page-orientation:landscape;}
    tr
            {mso-height-source:auto;}
    col
            {mso-width-source:auto;}
    br
            {mso-data-placement:same-cell;}
    .style21
            {color:blue;
            font-size:10.0pt;
            font-weight:400;
            font-style:normal;
            text-decoration:underline;
            text-underline-style:single;
            font-family:Arial;

    Try search/ask in the forum devoted entirely to Excel issues:
    http://answers.microsoft.com/en-us/mac/forum/macexcel

  • Exporting Content of a JSP page into Excel Spread Sheet

    I am trying to export the content of a JSP page into an excel spread sheet. I know this issue had been posted before, but if you any one has the source code of a sample that's working please send it to me at [email protected]
    Your help is appreciated.
    Jamais.

    http://forum.java.sun.com/thread.jspa?threadID=664249

Maybe you are looking for

  • OBIEE 11g: Error while starting obiee services

    Hi All, I am facing problem while starting OBIEE services. Error Message: The configuration file (C:\obi\user_projects\domains\bifoundation_domain\config\fmwconfig\jps-config.xml) was not found or is inaccessible. I tried staring services through EM

  • Connect to oracle database with php script

    Hello! How can I connect to an Oracle database with a PHP script? I read about it at www.php.net: "Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Ora

  • No pictures displayed

    This is for the computer at work. We're running a PowerMacG5, 160GB, dual 1.8G ghz. We opened ip iPhoto 4.0.3 (4H2) and all the photos are not being dislpayed. The photos are in the hard drive in their folders and albums as they had been before but i

  • Crash iTunes when moving files in downloads list?

    Twice in a row now I've been able to crash iTunes when moving files in the Downloads list (trying to change the priority). This happened twice when I tried to drag a file up above the list to get the list to scroll. iTunes would thrash the disk for a

  • Buttons too sensitive

    After the latest update, the buttons on the screen of the phone while telephoning are far too sensitive. For instance, it goes to Facetime acccidently by being too near to my cheek/ear. Is there some way to make the buttons less sensitive? Thank you