How do i use activeX to open and display a MS Excel workbook using LabVIEW?

I have created the attached vi to try to display the excel file ODSHelp.xls however when it is run nothing seems to happen, if you run it again you get a message saying that it is already open.
Attachments:
activeX_for_excel.vi ‏27 KB

You can use the activeX container to do that and one more thing is if you want to open an excel file in a front panel, try to put your data in table and I think this is more easier. Open your excel file and get the data and put it into the array and from there you can easily connect to the table. Hope this will help.
Best Regards,
Saw Naing Aye

Similar Messages

  • How do you get IDcs5 to open and display properly??

    Purchased InDesign CS5 and it worked well for the first few months then it decided not to open up properly onscreen? Now when opening all I ever get is a tiny portion of the tool bar appearing in the upper left corner of the screen. If I use the 'expand' button it only fills the screen with a completely blank page which is of no use. So I'm left to resort to manually clicking and dragging the toolbar to open the workspace to fill the screen......even then, it tends to 'snap back' to the tiny toolbar in the upper left corner? This is very annoying and frustrating to say the least! I'm working in a windows environment running Windows 7 if that makes any difference. I've searched but there appears to be no fix for this? Why does it not just open up on screen properly like every other program??? Why can't the folks at ADOBE fix this? The only reason I'm using this program is because one of our biggest clients insists on using InDesign, otherwise I'd dump it! Does anyone know the cause or fix for this? Sure would appreciate it! Thanks!

    @Peter – I cannot tell what's going on here, because I'm working on a Mac OSX 10.6.8.
    I've seen such a thing in InDesign CS4, but not in InDesign CS5.5 anymore.
    However, maybe it is possible to resize the main window by scripting its bounds.
    For that, one file must be opened and its window must be resized with JavaScript. At least on a Mac. Could be different on Windows, because some UI elements behave different from OS to OS.
    To get the right values for the bounds you could do the following:
    Start InDesign, maximize it manually, open a new document. You need not to save it.
    Then start the following line of code, that will read out the bounds of the window and present them as text in a "palette" type of window:
    #targetengine "session";
    //Get the bounds and convert them to a String object:
    var myMessageString = String(app.documents[0].windows[0].bounds);
    var w=new Window("palette","ReadOutBoundsOfWindow:");
    var e=w.add("edittext",[0,0,200,50],myMessageString,{multiline: true,scrolling:true});
    e.active = true;
    w.show();
    As a result you'll get a string of 4 numbers in a "palette" highlighted.
    Copy/paste the values together with separating commas to your text editor or the ESTK.
    Currently I'm on a MacBook Pro and the numbers I will get with that method are: 22,0,999,1680.
    The numbers will be different, depending on your screen size and resolution. They are values for pixels in the form: [top, left, bottom, right].
    Now you can close the palette.
    That was just the preparation for the following lines of code, that will set the bounds.
    Every time after you restarted InDesign, you could execute the following script (you can assign a keyboard shortcut to it):
    app.documents.add();
    //Exchange the values in the brackets with YOUR values you obtained with the other script.
    //Thiese values set the working window to a specific size [top, left, bottom, right]:
    app.documents[0].windows[0].bounds = [22,0,999,1680]; //Thiese are the values of my specific MacBook Pro.
    //Now we don't need the dummie document anymore. Close it:
    app.documents[0].close(SaveOptions.NO);
    Like I said, it's working on a Mac.
    Don't know if it will on MS Windows.
    Uwe

  • How to use ActiveX to open/write to Excel template but not to overwrite it

    Hi there again (it's me...if anyone recognised me...)
    I managed to use ActiveX to open Excel and make it visible onto the screen. But I would like to know how can I make Excel open an Excel template and let me write data to the cells without overwriting the original template. I did try to use another program source such as the EXCEL TOOLKIT but I can't still figure out how does it work for my case. Is there a simpler example for me to refer too? Please help.
    Thank you,
    juni

    Hi Mike..
    I have tried to use the examples provided LabView 6.0. I don't understand how to use the Range value to get the data from my global array and also how to open the template and write data to it.
    At the moment, I could only open a saved dialog box and a default string filename is used to save my data into a new Excel but not the formatted excel which I want.
    If possible, please help again. Vi attached.
    Attachments:
    savefile.vi ‏109 KB
    datarecords.vi ‏12 KB

  • I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get into Word?

    I just purchased Export PDF, and when I use it, it opens them in WordPad (which I never use) instead of Word. Thus, the pictures are not there, and the fonts are changed. How do I get them imported into Word?

    Hi,
    I checked your account,your Export PDF subscription is in 'Pending' status.
    Once it gets confirmed you will be able to use it.
    Please let us know if you require further assistance.
    Regards,
    Florence

  • Help, how to open and display blobs from tables

    Dear all,
    I am trying to store ms-word files on a table using a blob column.
    Does anyone how to open the files and display them from a form using 9iAS?
    Thank you.
    Carlos.

    And there may be, but you won't likely find that here. Do some time searching Google and maybe you'll find code that someone was nice enough to make freely available, although I wouldn't count on it. Were i a programmer and took the time to read those docs and write the code, I'd want to be paid for my time. But there are a lot of programmers who swear by freeware! You may get lucky.

  • Error code "-21468272​84" when trying to open an Excel workbook using ActiveX

    Hi all,
    i have a problem using ActiveX to open excel files. I get error code "-2146827284" (unknown error) when trying to open a workbook. This problem occurs on only one machine i work with, on the others it works fine. All machines have the same setup, Excel97 and Excel2007 installed on them.
    Any ideas??
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    ExcelToolkit open.PNG ‏53 KB
    ExcelToolkit open FP.PNG ‏32 KB

    andyforpresident wrote:
    For sure the file is there, the _application object gets created without an error.
    Creation of the application object has nothing to do with opening the workbook, which is what is generating the error. If you are getting an error with opening the workbook then you either have the wrong path, a permissions issue, a network issue, or the file is already open.

  • How do I configure DW to open and load a file?

    I have DreamWeaver CS5 running on a Mac. Whenever I double-click to open a DreamWeaver compatible file (such as an HTML file), if DW is not already open, DW launches but does not load the file. Once DW is launced, I can double-click the file and it will load. How do I configure DW to open and load a file together?
    DW: v11 b 4993
    OS X: 10.7.4 (11E53)

    HTML files are normally configured to open in a browser. The default on a Mac is to open the file in Safari.
    You can right-click the filename in the Mac Finder, and select Open With > Dreamweaver CS5 from the context menu.
    Alternatively, select an HTML file in Mac Finder, and press Cmd+I to open the Info panel. In the Open With section, select Dreamweaver CS5 as the default program, and click the Change All button.

  • I switched to mountain lion and from Acrobat pro 9 to 10.  now safari will not open pdf files.  acrobat preferences says it is trying to use version9 to open and i removed version 9.  any ideas?

    I switched to mountain lion and from Acrobat pro 9 to 10.  now safari will not open pdf files.  acrobat preferences says it is trying to use version9 to open and i removed version 9.  any ideas?

    Make sure you have updated Acrobat X to the latest version 10.1.3.  They updated the PDF plug-in in 10.1.1:  http://kb2.adobe.com/cps/837/cpsid_83708/attachments/Acrobat_Reader_ReleaseNote_ 10.1.1.pdf#page=4

  • How do I record a sound file and send it as an attachment using my 4s?

    How do I record a sound file and send it as an attachment using my 4s?

    Hi,
    The following is the program[Click Here| http://saptechnical .com/Tips/ABAP/email/EmailProgram.txt] which will send any format file. Actual Creator of the program is Amit Bisht.
    Thanks & Regards,
    Rock.

  • Why can't I open and answer an instant imessage notification using just one key(such as enter key)? If I shouldn't, what's the use of answering right from notification?

    Why can't I open and answer an instant imessage notification using just one key(such as enter key)? If I shouldn't, what's the use of answering right from notification? I can instead, move my mouse to the app, right?

    Hi,
    The Alert option in Notifications gives the Reply option
    9:33 pm      Monday; December 8, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How do I keep multiple windows open and switch back and forth?

    How do I keep multiple windows open and switch back and forth?

    billyg27,
    if you hold down a Command key and press the Tab key, it will show a set of icons representing your currently opened programs. Press Tab until you arrive at the program you’d like to switch to, and then release the Command key.

  • Open and display image in MVC layout

    Hello!
    I cant figure out how I shall do this in an MVC layout:
    The program request user to open an image file that are then displayed in a JLabel
    My setup at the moment resolve in a nullpointerexeption because it dont get any actual image file, but I dont understand what I have missed.
    I can not post the whole code fo you to run because it is to big, so I post the part that are the most important. please have a look.
    PicturePanel
    //Import Java library
    import javax.swing.*;
    import java.awt.*;
    public class PicturePanel extends JPanel {
         //Variables
         private ImageIcon picture;
         //Method to get information of the selected file
         PicturePanel (String fileName) {
              picture = new ImageIcon (fileName); //Get the filename
              int w = picture.getIconWidth(); //Get the image with
              int h = picture.getIconHeight(); //Get the image height
              //Set preferable size for the image (Use the properties for the selected image)
              setPreferredSize(new Dimension(w, h));
              setMinimumSize(new Dimension(w, h));
              setMaximumSize(new Dimension(w, h));
         //Method to draw the selected image
         protected void paintComponent(Graphics g) {
              super.paintComponent(g); //We invoke super in order to: Paint the background, do custom painting.
              g.drawImage(picture.getImage(), 0, 0, this); //Draw the image at its natural state
    }From my model:
    //Local attributes
         boolean check = false; //Used to see if a statement is true or not
         PicturePanel pp;
         JFileChooser fc;
         int returnVal;
    //newFile in File menu
         public void newFile() {
              //Open a file dialog in users home catalog
              fc = new JFileChooser();
              //In response to a button click:
              returnVal = fc.showOpenDialog(pp);
              System.out.println("You pressed new in file menu");
         }From my controler:
    //User press "New" in File menu
              else if (user_action.equals("New")) {
                   //Call method in model class
                   model.newFile();
                   //Update changes
                   if (model.returnVal == JFileChooser.APPROVE_OPTION) {
                        System.out.println("Hello1");
                        File f = model.fc.getSelectedFile();
                        if (model.pp != null)     
                             model.pp = new PicturePanel(f.getAbsolutePath());
                        System.out.println("Hello2");
                        //Display image (Here is line 83)
                        view.setImage_DisplayArea(model.pp);
                        System.out.println("Hello3");
              }From my view:
    //Sets the image to be displayed on the image_display area (Here is line 302)
         public void setImage_DisplayArea(PicturePanel pp) {
              image_display.add(pp);
         }The complet error:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at java.awt.Container.addImpl(Container.java:1015)You pressed new in file menu
    Hello1
    Hello2
         at java.awt.Container.add(Container.java:351)
         at View_Inlupp2.setImage_DisplayArea(View_Inlupp2.java:302)
         at Control_Inlupp2.actionPerformed(Control_Inlupp2.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1050)
         at apple.laf.CUIAquaMenuItem.doClick(CUIAquaMenuItem.java:119)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1091)
         at java.awt.Component.processMouseEvent(Component.java:5602)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
         at java.awt.Component.processEvent(Component.java:5367)
         at java.awt.Container.processEvent(Container.java:2010)
         at java.awt.Component.dispatchEventImpl(Component.java:4068)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
         at java.awt.Container.dispatchEventImpl(Container.java:2054)
         at java.awt.Window.dispatchEventImpl(Window.java:1801)
         at java.awt.Component.dispatchEvent(Component.java:3903)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Edited by: onslow77 on Dec 16, 2009 5:00 PM
    Edited by: onslow77 on Dec 16, 2009 5:04 PM

    Hello again!
    Anyone that can help me figure out how to implement this in an MVC layout, I feel stuck.
    I post a little program that open and display an image file so that you better can understand what I whant to do.
    ShowImage
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.File;
    import javax.swing.filechooser.*;
    public class ShowImage extends JFrame{
         //Variables
         JFileChooser fc = new JFileChooser();
         PicturePanel pp = null;
         ShowImage () {
              super("Show"); //Title
              //Create the GUI
              JPanel top = new JPanel();
              add(top, BorderLayout.NORTH);
              JButton openBtn = new JButton("Open");
              top.add(openBtn);
              openBtn.addActionListener(new Listner());
              //Settings for the GUI
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              pack();
              setVisible(true);
         class Listner implements ActionListener {
              public void actionPerformed(ActionEvent ave) {
                   int answer = fc.showOpenDialog(ShowImage.this);
                   if (answer == JFileChooser.APPROVE_OPTION){
                        File f = fc.getSelectedFile();
                        //Check
                        System.out.println(f);
                        System.out.println(pp);
                        if (pp != null)
                             remove(pp); //Clean so that we can open another image
                        //Check
                        System.out.println(pp);
                        //Set the PicturePanel
                        pp = new PicturePanel(f.getAbsolutePath());
                        //Check
                        System.out.println(pp);
                        //Add PicturePanel to frame
                        add(pp, BorderLayout.CENTER);
                        validate();
                        pack();
                        repaint();
         //Main
         public static void main(String[] args) {
              new ShowImage();
    }PicturePanel
    //Import Java library
    import javax.swing.*;
    import java.awt.*;
    public class PicturePanel extends JPanel {
         //Variables
         private ImageIcon picture;
         //Method to get information of the selected file
         PicturePanel (String fileName) {
              picture = new ImageIcon (fileName); //Get the filename
              int w = picture.getIconWidth(); //Get the image with
              int h = picture.getIconHeight(); //Get the image height
              //Set preferable size for the image (Use the properties for the selected image)
              setPreferredSize(new Dimension(w, h));
              setMinimumSize(new Dimension(w, h));
              setMaximumSize(new Dimension(w, h));
         //Method to draw the selected image
         protected void paintComponent(Graphics g) {
              super.paintComponent(g); //We invoke super in order to: Paint the background, do custom painting.
              g.drawImage(picture.getImage(), 0, 0, this); //Draw the image at its natural state
    }//The endEdited by: onslow77 on Dec 16, 2009 7:30 PM

  • New "Photos" is a piece of JUNK!  How do I get my image numbers to display as imported like they used to? Can no longer make Events or view old events as before either.

    How do I get my image numbers to display as imported like they used to? Can no longer make Events or view old events as before either.
    If this is replacing Aperture and previous iPhoto it is USELESS...WAY fewer options for editing available. New "Photos" is a piece of JUNK!

    Hi.
    I have just migrated my library from Aperture to photos. All seems to have gone smoothly, except for one thing. All of my photos are 'untitled', whereas in both Aperture, and previously iPhoto, the filename was used for the title. If I hit CMD+I and get info, the title is still there as the filename, as I use the filename for all titles.
    Is there a way to batch copy all filenames as photo titles, this was done automatically in Aperture and iPhoto, as when photos were imported the filename was used automatically.
    Any help appreciated.
    Thanks.

  • Im using xcode 4.6 and im having problems reading files using the fopen function in c

    Im using xcode 4.6 and im having problems reading files using the fopen function in c

    Yes, but that would not cause the "build  failed" message.
    right I missed that part. Looks like two problems then.
    //  main.m
    //  ASCTestFopen
    //  Created by Frank Caggiano on 3/2/13.
    //  Copyright (c) 2013 Frank Caggiano. All rights reserved.
    #import <Foundation/Foundation.h>
    #include <stdio.h> 
    int main(int argc, const char * argv[])
        @autoreleasepool {
            FILE *fp, *fopen();
            // insert code here...
            if((fp = fopen("~/test.txt","r")) == NULL)
                NSLog(@"open failed");
        return 0;
    This will compile ad run in Xcode with a project type of comand line tool

  • TS2771 How do I get the connect to iTunes display off so I can use iPod again?

    How do I get the connect iTunes connection display off so I can use iPod again?

    By connecting the iPod to your computer and restoring via iTunes.
    iTunes 10 for Windows: Update and restore software on iPod, iPhone, or iPad

Maybe you are looking for