Alternative ways to read excel in Sharepoint

Now I'm facing with a problem of reading excel file on SharePoint server.
In the old ways I usually use the OLEDB to read excel through the connection string, but it's just work on 32 bit system, then I attempt to convert my app to x86 platform target, but unfortunately my app (is a WebPart) which SharePoint is not allowed to work
with.
I do many googling and hearing SharePoint Module (Microsoft.SharePoint.dll) can do that but I can't find any references. Anyone know and can you help me?
Thanks.

Hi EngSoonCheah,
According to your description, my understanding is that you want to read excel file on the SharePoint Server.
I suggest you can use Microsoft OpenXML library to achieve it.
Before using OpenXML to read excel, you may need to download and install it firstly:
Download OpenXML for Office
Here is a code demo about reading excel using OpenXML for your reference:
Read and Write Microsoft Excel with Open XML SDK
Best Regards 
Zhengyu Guo
TechNet Community Support

Similar Messages

  • Alternative way to read data

    I have extremely large data files in this format:
    027/18/01 3:58 PM
    0300010300000000000000000304000000000003010100000001
    027/18/01 4:03 PM
    0300020300000000000000000304000000000003010100000002
    027/18/01 4:12 PM
    0300030300000000000001000004000000000003010202000002
    027/19/01 8:28 AM
    0300040300000000000001000004000000000003010100000001
    027/19/01 9:07 AM
    0300050300000000000001020000000000000000010100000001
    first 5 lines data out of possible 1000
    first 6 places are just identifiers, the rest is data represented in binary form( respondent 1, question 1 had answer 03...etc)
    This is my read code:
    try{
           DataInputStream dis = new DataInputStream(new FileInputStream(DataFile));
                         while(!EOF){
                             try{         
                                  input = dis.readLine();
                                     if(input == null){
                                           EOF = true;
                                           break;
                                  data = new char[input.length()];
                                  data = input.toCharArray();
                                  prefix = new String(data, 0, 2);
                                    if(Integer.parseInt(prefix) == 1){
                                        CheckName();
                                    else
                                    if(Integer.parseInt(prefix) == 2){
                                        DateTime();
                                    else
                                    if(Integer.parseInt(prefix) == 3){
                                        ConvertData(data, numberOfQuestions, answers_per_question);
                            catch(IOException e){
                                      System.err.println(e);
                          }// close while
                             dis.close();
                    catch(IOException e){System.err.println( e );}Problem is the larger the dat file gets the slower the read process gets, anyway to use a buffer in this instance( would it make it that much faster? ).
    Thanks
    Jim

    Try adding a BufferedInputStream wrapping your FileInputStream. Could help.

  • Error while reading excel file from application server into internal table.

    Hi experts,
    My requirement is to read an excel file from application server into internal table.
    Hence I have created an excel file fm_test_excel.xls in desktop and uploaded to app server using CG3Z tcode (as BIN file type).
    Now in my program I have used :
    OPEN DATASET v_filename FOR INPUT IN text mode encoding default.
    DO.
    READ DATASET v_filename INTO wa_tab.
    The statement OPEN DATASET works fine but I get a dump (conversion code page error) at READ DATASET statement.
    Error details:
    A character set conversion is not possible.
    At the conversion of a text from codepage '4110' to codepage '4103':
    - a character was found that cannot be displayed in one of the two
    codepages;
    - or it was detected that this conversion is not supported
    The running ABAP program 'Y_READ_FILE' had to be terminated as the conversion
    would have produced incorrect data.
    The number of characters that could not be displayed (and therefore not
    be converted), is 445. If this number is 0, the second error case, as
    mentioned above, has occurred.
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_CONVERSION_CODEPAGE', was not
    caught and
    therefore caused a runtime error.
    The reason for the exception is:
    Characters are always displayed in only a certain codepage. Many
    codepages only define a limited set of characters. If a text from a
    codepage should be converted into another codepage, and if this text
    contains characters that are not defined in one of the two codepages, a
    conversion error occurs.
    Moreover, a conversion error can occur if one of the needed codepages
    '4110' or '4103' is not known to the system.
    If the conversion error occurred at read or write of  screen, the file
    name was '/usr/sap/read_files/fm_test_excel.xls'. (further information about
    the file: "X 549 16896rw-rw----201105170908082011051707480320110517074803")
    Also let me know whether this is the proper way of reading excel file from app server, if not please suggest an alternative .
    Regards,
    Karthik

    Hi,
    Try to use OPEN DATASET v_filename FOR INPUT IN BINARY mode encoding default. instead of OPEN DATASET v_filename FOR INPUT IN text mode encoding default.
    As I think you are uploading the file in BIN format to Application server and trying to open text file.
    Regards,
    Umang Mehta

  • What is the best way to read and manipulate large data in excel files and show them in Sharepoint

    Hi ,
    I have a large excel file that has 700,000 records in it. The excel file has a few columns that change every day.
    What is the best way to read the data form the excel file in fastest and most efficient way.
    2 nd Problem,
    I have one excel file that has many rows each row contain some data that has certain keywords.
    What I want is  to segregate the data of rows into respective sheets(tabs ) in the workbook.
    for example in rows have following data 
    1. Alfa
    2beta
    3 gama
    4beta
    5gama
    6gama
    7alfa
    in excel
    I want there to be 3 tabs now with each of the key words alfa beta and gamma.

    Hi,
    I don't really see any better options for SharePoint. SharePoint use other production called 'Office Web App' to allow users to view/edit Microsoft Office documents (word, excel etc.). But the web version of excel doesn't support that much records as well
    as there's size limitations (probably the default max size is 10MB).
    Regarding second problem, I think you need some custom solutions (like a SharePoint timer job/webpart ) to read and present data.
    However, if you can reduce the excel file records to something near 16k (which is supported rows in web version of excel) then you can use SharePoint Excel service to refresh data automatically in the excel file in SharePoint from some external sources.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • What is the best way to read an excel document ?

    I just want to be able to read excel spreadsheets. Do I need to purchase AppleWorks (with the other older stuff on it) or Office for Mac? Is there a better way? Thanks!
    MacBook Pro 17"   Mac OS X (10.4.6)  

    hi Rick - Welcome to Apple Discussions!
    do i understand correctly that you only want/need to view xcl spreadsheets, not work with them etc?
    if so, this might work for you:
    http://www.versiontracker.com/dyn/moreinfo/macosx/14982
    an alternative is NeoOffice, which is an open source office suite that can read (and work with) excel documents, among other things...
    http://www.neooffice.org/
    cheers

  • Update Excel to sharepoint and edit the data.

    Hi experts,
    Happy New Year to all,
    I would like to know is it possible to update my excel sheet having 10 different fields (Columns) to share point, and edit them as a list. Want to know step by step procedure.
    My requirement is as below
    I want to update the list of activities for each member of my team, in a excel in the first 5 columns and then upload to the share point daily, as my team members were placed in different locations, I want them to update their achivements
    for the day in the next 5 respctive columns. By filtering on their names respectively. So that  I can check online and take the report back to excel whenevery i required.
    I want to know
    1) Step by step procedure I can upload the excel to share point
    2) is it possible to restrict the data on particular field, to respective users.
    Request to let me know how i can achive.

    Excel and SharePoint List does not allow two way sync it is only unidirectional.
    You have to go by Scott's suggestions or else Office Web Apps which will allow excel Semiformal co-authoring (http://office.microsoft.com/en-us/sharepoint-server-help/document-collaboration-and-co-authoring-HA101812148.aspx).
    Here is how you can use the import Excel funcationality in SharePoint custom list.
    1. Define a table to your Excel Data and Save the excel file
    2. Go to your site, create a new list either using Site Settings or All site content menu, by selecting Import SpreedSheet
    3. select table in the import dialog box
    SharePoint will create a new list with the excel data.
    As per your requirement , the challenges that we have are -
    "a excel in the first 5 columns and then upload to the share point daily"
    You cannot reimport excel to a list as per your above requirement, there is only one way of importing to a list library and every time it will create a new list.
    " I can check online and take the report back to excel whenevery i required."
    You can export the list to excel file for processing offline and again there is no resync between Excel and List.
    "is it possible to restrict the data on particular field, to respective users"
    You can use item level permission for restricting user access to a list item or use SharePoint designer custom workflow to give item level access.
    http://www.sharepointbriefing.com/spcode/article.php/3911751/Implementing-ItemLevel-Security-in-SharePoint-2010-and-2007.htm
    http://social.msdn.microsoft.com/Forums/en-US/1911c999-8083-4d35-9cdc-3b9c3a7242a7/how-to-create-item-level-permission-for-list-in-sharepoint-2010?forum=sharepointgeneralprevious
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Jar files required to read excel file in SAP PI 7.3.1 sp09 dualstack

    Hi experts,
    I need to read excel file (.xls) using SAP PI and process it to target system. I have read blogs
    and found that there are 2 ways to read an excel file in PI using file adapter.
    1) Developing a custom adapter module
    2) Using XSLT code.
    So in order to develop a custom adapter module, i have followed the following blogs
    **************** - XI - Step-by-step guide to develop Adapter Module to read Excel file
    and
    Excel Files - How to handle them in SAP XI/PI (The Alternatives)
    and
    http://wiki.scn.sap.com/wiki/display/ABAP/Adapter+Module+To+Read+Excel+File+with+Multiple+Rows+and+Multiple+Columns
    I am unable to find the jar files in SAP PI at OS level as per the first blog(think they were obsolete).
    Please let me know
    1) What are the required jar files needed to read excel file and their location
    2) Even if i use the old jar files as mentioned in the first blog can i achieve my requirement
    3) Following this blog Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way if i apply the same logic at sender side, will it work? Because through case studies i came to know that we cannot read a .xls file using XSLT code. Correct me if i am wrong.
    Looking for your valuable suggestions.
    Regards
    Shilpa

    Hi Shilpa
    Welcome to SCN!
    The blog you refered to might be for previous versions of PI. You can refer to the following two wikis to find out what are the relevant JAR files for PI 7.3 and also how to get them.
    XI libraries for development - Process Integration - SCN Wiki
    Where to get the libraries for XI development - Process Integration - SCN Wiki
    It also looks like for newer versions, you might not need to manually get and add those JAR files into your NWDS project - please refer to the first comment on the blog below. I have not tried it personally as I'm not using the latest NWDS, but you can try that first, and if it does not work, then go get them manually.
    PI 7.4 - Adapter Module Creation using EJB 3.0
    Do note that you should be using the JAR files that is corresponding to your PI server version.
    As for your third question, that does not apply to you. XLS is the older non-XML format, and therefore cannot be read by XLST since it is in binary format.
    Rgds
    Eng Swee

  • Reporting and exporting to Excel in SharePoint Online

    Hi
    I've developed a SharePoint site to replace a legacy Access database that dealt with consumer complaints and queries. In the Access database I'd developed a feature that allowed users to filter the complaints by a number of criteria and export them to Excel
    and I'm trying to do the same in SharePoint.
    If it were on-premises SharePoint I'd just create a parameterised SSRS report which would solve all my problems. However being SharePoint online, this is not an option. I'd like the users to be able to select complaints from any date range, for any category
    of complaint and for any product supplier (plus a few other criteria). The idea is that they want to be able to then send the filtered data to individual suppliers. Doing this out of the box with views throws up several problems. The main one is that any export
    to Excel of a view exports the entire set of data, meaning that users themselves would need to create a new view for every export they wished to perform, which is not practical.
    My question is: what is the best way in SharePoint online to export a filtered subset of a list to Excel?
    I can use SharePoint designer, but not C# in order to achieve the goal. We also have SharePoint Online Plan 2 if that makes it easier.
    Thanks in advance,
    Duncan

    Hi Duncan,
    Well its easy to Reporting and exporting to Excel in SharePoint Online,
    See the Youtube link below and other links for more descriptions.
    Office 365: Synchronize Excel with SharePoint Online
    Reporting and exporting to Excel in SharePoint Online
    Thanks
    Indul Hassan (www.indulhassan.com)

  • Apple says my epson perfection 1240u scanner no longer supported with 10.7. Is there an alternative way to get it to work?

    Apple says my epson perfection 1240u scanner is no longer supported with 10.7.
    Is there an alternative way to get it to work?

    Download updates from the manufacturers pages:
    http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=14549&BV_UseBVCooki e=yes&infoType=Downloads&platform=OSF_M_…

  • What is the best, most efficient way to read a .xls File and create a pipe-delimited .csv File?

    What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85

    You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
    csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
    In the flat file connection manager, set the column delimiter to the pipe character.

  • Alternative way to transfer file from pc to iphone other than using itunes

    i need an alternative way to transfer vedios, pictures, and docs from pc to iphone

    You could try Bluetooth on both.

  • Alternative way of Updating of Subinventory Accounts

    Hi.
    Issue at hand : How to update (alternative way) the subinventory accounts of FIN and STAGE?
    Facts :
    1. Current setup includes - OM, Financials, INV ( but only to a very minimum level, having 2 Subinventories FIN and STAGE used for Order-to-Cash Cycle )
    2. Recently, MFG and INV are being implemented.
    3. Standard Costing
    Since, there are already onhand and transactions using FIN and STAGE, we are looking at updating the accounts (setup) of FIN and STAGE to a different set.
    I am aware of the procedure provided by Oracle on updating Subinnventory accounts, creating a new subinv and transferring onhand to that new subinv, handle reservations, etc., then update the account setup, and return the onhand, etc.
    One team member suggested that we update the subinventory accounts directly from the database, similar to the script below:
    Update MTL_SECONDARY_INVENTORIES
    set material_overhead_account = 78373,
    overhead_account = 78373,
    resource_account = 78373,
    outside_processing_account = 78373
    where organization_id in (1234, 9999) and secondary_inventory_name in ('FIN', 'STAGE');
    Question: What do you think is/are the implications of this process?
    Your help would be very much appreciated.
    Thank you.

    Basically I have windows server with Oracle 11g (11.2.0.1) server and the database on this server needs to retired and move the data of it to a new server has Linux 64 and Oracle 11g built on it. Here are my answers below:
    What exactly have you tried and done?
    A.  I used "Cross-Platform Transportable Database" to transfer data from Windows to Linux and I am already done, database on the new server (Linux) has been tested and upgraded to latest release (11.2.0.4), my next step is the cutover but the data is too old (2 weeks ago) so I need to take a new data from the current prod server.
    How long did it take and what is your downtime requirement for this migration and what how do you define a "huge database"?
    A. RMAN convert took approximately 5hrs to convert data files from Windows to Linux (Please note that I used rman convert on source server)
    and It took me a day and half to copy the converted files remotely from source in which files been placed to the destination server (the network bandwidth was about 100kb/s so it was so slow) next time I will copy data files on external hard disk then mount them on the new server if I use RMAN convert again.
    End users accepts that the database can be in read only mode for one day business hours but they can't take it more so I'm really concern about the time when taking a new snapshot of data. Also, the size of data is about 380G and that's why I asked again if data pump will be more useful and faster than RMAN for copying data to the new platform.
    Sorry if I made you confused!
    Thanks again for all the support on here.

  • How to Read Excel Work Sheet Name

    Hi
    I am try to read Excel sheet from SAP B one. any one tell me how to get the Sheet name through Programmatically in C#....
    Senthil Kumar

    There are two ways you can do that:
    #1
    A - put the budget.htm file on your server where you can link to it.
    B - on the web page add an HTML snippet with the folloiwng code:
    <iframe height="XXXpx" allowTransparency="true" frameborder="0" scrolling="no" style="width:XXXpx;border:none" src="URL TO BUDGET.HTM FILE"></iframe>
    Set the width and height, in pixels, so that the snippet will display the entire table.
    #2
    A - open the budget.htm file with a text editor and copy all of the code.
    B - add an HTML snippet to the iWeb page and paste the code into the snippet.
    An example of both methods are near the bottom of this demo page: Tables.
    With method 1, you can edit or change the table without having to use iWeb. Just replace the budget.htm file with the new and improved version on the server. That will automatically be seen in the published site.
    OT
    Message was edited by: Old Toad

  • Alternative ways to use NAS with FCPX

    So here is my dilemma, I would like to use my NAS to have an "archived" library of all my video files that I've worked on in FCPX. Thing is I've tried opening the library file directly from my NAS, but FCPX will not recognize it.  It give me an error something that I have to use "SAN"...  I've read some other threads where you can create sparse images but I don't want to have a set size as my "archived" library as it keeps growing.  So I guess my question is, are there any alternative ways to utilize my NAS with FCPX. I want to be able to easily access these "archived" files every so often. TIA!

    Youn can't use it in FCP, only with Compressor. In Compressor make a new QuickTime preset or duplicate an Apple preset and change the codec to x264.

  • Alternative ways of displaying image from database?

    hi - I'm working with some legacy/inherited/already-written Forms that just use block triggers to 'select values into :Fields..' to populate the text boxes on the canvas.
    Whenever I've managed to display db-based images before, it's always been on blocks that are based just on the table, and Forms shows the image okay.
    These forms I'm using at the moment though aren't based on tables, they just get populated from the trigger.
    I don't believe you can select into a blob/image, or at least I haven't been able to get that to work.
    Are there any alternative ways of populating an image place-holder, with a blob field from the database? (other than using a table-based block)??
    thanks.

    May be you can separate the image item to a DB block with primary key of the table and create a relation between two blocks. So when the first block is populated through trigger, it would fetch the image on 2nd block automatically.

Maybe you are looking for