Read an Excel cell using LabView

Hello,
I'm trying to read Excel cells with LabView, witch can be numeric data
or text.
I want to chose the Excel cell to read.
I try to use AtiveX commands in order to do so, but it doesn't work,
and I don't understand all concepts of activeX.
I searched on the web, but I didn't find any simple example witch can
run for me.
Can we do it without activeX commands?
Do you have any simple example to send me?
Thank you for your help.
Jean-Louis, France.

Here is a simple VI that uses ActiveX to read an Excel cell. It is set up for string values, but it can be changed. If you get a broken run arrow, than you may have to reconfigure some of the propery nodes for your version of Excel.
Attachments:
Get_Excel_Cell_Sub.vi ‏99 KB

Similar Messages

  • Read large Excel cell content using ABAP class i_oi_spreadsheet

    Hello,
    I am trying to read an excel file using ABAP methods of interface i_oi_spreadsheet.
    Unfortunetly some of my cells contain data that exceeds the 256 characters size.
    To retrieve the content of the excel speadsheet, I am using method get_ranges_data.
    Unfortunetly as the returned structure is of type soi_generic_table, the content of the cell is truncated to the maximum limit of 256.
    Is there a way to read cells with large content ??
    Thanks
    Regards
    Jean-Pierre

    Same problem for me on ECC 6.0. Hope for a solution.

  • Read image from excelsheet using labview

    i need to know how to read image from excel sheet using Labview...m not able to get the appropriate property to display the image stored in excel sheet.
    thank you

    you need to ask Microsoft to find out the property name/location under Microsoft Excel. 

  • Read an excel file using JSP in MII 12.1

    Hi,
    I want to read an excel file using jsp page. I dont want to use the UDS or ODBC for connecting to excel.
    I am trying to use org.apache.poi to read the excel file in jsp page.
    While running, its showing a compilation error "package org.apache.poi.hssf.usermodel does not exist"
    I have the jar files for it, where do we need to upload it so that jsp page works.
    Thanks a lot
    Regards,
    Neha Maheshwari

    The user doesn't want to save the excel file in server.
    I want to upload file and save its contents in database.
    I have the code to read and save excel data in database but not able to get the location to deploy the jar file.
    In general, if we are creating a jsp page in MII workbench which is using some jar file.
    Whats the location to upload this jar file so that the jsp page works correctly?

  • Create a check box in excel cell  using sap abap

    Dear Sap Master's,
    Please give me some idea on  how to create a check box in excel cell using abap program..
    (OLE concept).
    Thanks
    Moderator message: please search for available information first.
    Edited by: Thomas Zloch on Jan 12, 2012

    select the cell then open the cell formatter:
    process should be similar in the iOS version.  I do not have any iOS devices with Numbers so I cannot check.  I did find this link that may help:
    http://support.apple.com/kb/PH3374?viewlocale=en_US

  • Create heck box in excel cell using sap

    Dear Sap Master's,
    Please give me some idea on how to create a check box in excel cell using abap program..
    (OLE concept).
    Thanks,
    Naveen.
    Moderator message: please do some research before posting, show what you have done yourself when posting.
    Edited by: Thomas Zloch on Jan 17, 2012

    Not resolved

  • Read a excel file using swings

    Does anyone know about reading an excel file using swings?
    Right now, I am using com.f1j.ss.*. But looking for more examples like reading and writing a excel file.
    Please suggest me with some good examples?

    1- Swing allows you to design a graphical user interface (to display data from a db or excel file for example)
    2- [Here |http://www.rgagnon.com/javadetails/java-0516.html] several ways to read/write excel.

  • How to populate arrayList values in a Excel cell using java

    Hi ,
    Iam trying to create Excel sheet using java with Apache-POI api's.I need to display values from an arrayList into Excel cell as drop down.kindly suggest me any idea or share any code if u have any.
    Thanks in advance
    Regards
    Rajesh

    I suggest you use google to find examples.

  • Prevent copy of excel cells using OLE

    Hi All,
    I have protected my excel worksheet. But the cells can be copied. I want to prevent this copy of cells using OLE.
    I have gone through the EXCEL proerties. But dont know how to exact use them?
    Thanks in Advance
    -neha

    Hello Neha,
    I don't think CutCopyMode is the correct answer
    Try the below code. It prevents the selection of cells, hence preventing copying.
    REPORT  zkris_ole_protectsheet.
    *                  Start of Selection                                  *
    START-OF-SELECTION.
      TYPE-POOLS ole2 .
      DATA:
             workbook TYPE ole2_object,
             excel     TYPE ole2_object,
             sheet TYPE ole2_object,
             cells TYPE ole2_object.
      CREATE OBJECT excel 'EXCEL.APPLICATION'.
      IF sy-subrc NE 0.
        WRITE: / 'No EXCEL creation possible'.
        STOP.
      ENDIF.
      SET PROPERTY OF excel 'DisplayAlerts' = 0.
      CALL METHOD OF excel 'WORKBOOKS' = workbook .
      SET PROPERTY OF excel 'VISIBLE' = 1.
    * creating workbook
      SET PROPERTY OF excel 'SheetsInNewWorkbook' = 1.
      CALL METHOD OF workbook 'ADD'.
      CALL METHOD OF excel 'WORKSHEETS' = sheet
        EXPORTING
        #1 = 1.
    * naming and activating the index sheet
      SET PROPERTY OF sheet 'NAME' = 'Index'.
      CALL METHOD OF sheet 'ACTIVATE'.
      CALL METHOD OF sheet 'Cells' = cells
        EXPORTING
        #1 = 3
        #2 = 3.
      SET PROPERTY OF cells 'Value' = 'You cannot select me'.
      CALL METHOD OF sheet 'PROTECT'
        EXPORTING
          #1 = 'pass' " Password
          #2 = 1 " Protect Drawing Objects
          #3 = 1 " Protect Contents
          #4 = 1." Protect Scenarios
      SET PROPERTY OF sheet 'EnableSelection' = -4142.

  • How can I change the names of the Excel Worksheets using LabView?

    Hi Everyone...
    I want to start a project but I want to be capable to create and change the names of the worksheets in excel using LabView.
    We know the default name of the worksheets (Sheet 1, Sheet 2...)
    Can I make this change only using labview with some activeX, properties and methods...
    Best regards...
    Mexico
    LabView 8.0

    Hello,
    Yes, you can modify the name of an Excel Sheet with ActiveX property Node or Invoke Node.
    There are some good examples in the NI Example Finder of Labview on "Communicating with external Applications -> ActiveX -> Excel ->..."
    To modify the name of a sheet, you need to use the property "Name" of the reference "Sheet"
    Best regards
    Nick_CH

  • How to read the excel file using webdynpro abap?

    Hi,
    how to read and modify excel file using webdynpro abap?
    Regards,
    Pavani

    For reading excel file follow the steps :
    1. Use a File upload UI element and bind it with xstring.
    2. Now your excel will be uploaded and stored in Xstring.
    3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.
    4. Now split the string at new line so as to make an internal table .
      Ex . SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE it_table.
      here it_table is type table of string.
    5.now loop at the internal table and separate the content of this table separated by tab.
      Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.
    it_new type string_table.
    6. For more info , refer this thread :
    Re: How to upload excel file in Webdynpro application using ABAP

  • Read&write Excel file using java

    Hi everybody,
    I have an assignment about methods that read and write an excel file using java (Eclipse SDK), so if anyone know about that please post the solution as soon as possible.
    Thanks
    Sendbad

    http://onesearch.sun.com/search/onesearch/index.jsp?qt=read+write+excel&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • Determinin​g Excel Version using Labview

    I have a program that writes data to an excel spreadsheet than run a
    macro. The target computer for the application may have excel 97 or
    excel 2000. Because of subtle difference between 97 and 2000 I am
    required to use different macros and some different VI. I would like
    to programmatically determine which version of excel is installed.
    This will help me to determine which macro and different VI use.

    Brian is right. Open an automation refnum, create a property node and one of the properties to be selected is "version".It returns the current version of excel in use(Tried it with 97 and 2000)
    Cyril
    Cyril Bouton
    Active LabVIEW Developper

  • Generate/Read ATML TestResults Files using LabVIEW

    I've become very interested recently in saving all my test results into XML files.  Seems like the wise way to go about this would be to use the ATML standard (http://grouper.ieee.org/groups/scc20/tii/IEEE1636-1TestResults/TestResults.html#complexType_doubleAr...).  I know this standard is supported in TestStand but I was wondering if any tools exist that would make it easier to use in LabVIEW.  (I could write it from scratch using LabVIEW's built in XML VIs but I'm not very familiar with XML in general so this would be time consuming)
    Any suggestions would be appreciated.
    ~GollumGTH

    Perry S wrote:
    Here is a picture of a the ATML report. Let me know if you have any questions.
    Based on his question, I think a copy of the XML file itself would be of more value, since he would like to construct the file himself. The image does not show the structure of the data.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Read / Write Excel file using package dbms_util and util_files

    hi,
    i am beginner to this so please elaborate the answer more concisely

    there's a ton of reading on this subject on google my friend.
    http://www.google.co.uk/search?hl=en&source=hp&biw=954&bih=517&q=plsql+read+write+excel&btnG=Google+Search&aq=f&aqi=&aql=&oq=plsql+read+write+excel
    and check the forum faq, there's a topic on excel in here:
    SQL and PL/SQL FAQ
    Edited by: smon on Mar 2, 2011 3:39 AM

Maybe you are looking for