Creating a table in Excel using ActiveX functions

Hi,
I am new to labview and have have a project where i need to create tables in labview using activeX, i cannot seem to get the Invoke node Table (under range) to work, any help would be much appreciated.

This question is not related to LV at all. So in general, this question is more for MSDN (Microsoft Developer Network).
That being said, here the steps you have to implement in LV:
Open Automation Server Excel._Application
Set property Visible to true (otherwise, you won't see the result unless you save the workbook)
Create a Workbool
In the Workbook, create a Worksheet (that's what you call a "table")
That's it.
Norbert
PS: Due to "reference lifetime", you want to keep the VI running (e.g. event based waiting for a button press) otherwise Excel will shutdown as soon as you release the reference to Excel._Application.

Similar Messages

  • Writing to Excel using ActiveX improvement?

    Hello,
    At my company we have Labview 2011 basic version with DAQmx. I am writing a program to get temperature data from thermocouples (16), dump it in an array and then store it in Excel using ActiveX. ActiveX seems only to allow writing element by element to my spreadsheet.  When you do acquisition for a long period of time it can be very long! I like using ActiveX because it allows some flexibility such as choosing which sheet and cell I can write my data. Is there a solution to dump the array in one operation using ActiveX?
    I know there is a block call write to spreadsheet which accept 1D and 2D array of data but doesn't allow the same flexibility. I also found report generation but is it made to write data? While waiting for your answer I'll try to dig a little more that blockset.
    Thank you very much and I hope to hear from the community really soon.
    Regards

    I have to appologize. The solution given by Electromecha was good but only outside a loop. Again, I have 16 thermocouples and when I use Electromecha's solution inside a For loop it will copy only the first element. I attached two pictures. One is the program and the second is the result in the spreadsheet. You will notice that inside my loop I added an indicator to read the array before writing it in Excel. The indicator shows the array perfectly with all elements in it. The only way I found to work around this issue is to use indexing and write element by element in Excel. That is way too long!
    For your information, the loop itteration is defined using the array size which is 16 (for 16 thermocouples). The subvi inside the loop allows me to get the column letter from the itteration number. Finally using the size of one full array of results I get the end cell row. 
    If more explanation is required please let me know. 
    Many thanks!
    Attachments:
    Excel.JPG ‏89 KB
    Program.JPG ‏69 KB

  • Error Message: "Excel cannot complete this task with available resources" when creating pivot table with Excel 2013

    Hi, 
    One of our users encountered this problem with Excel 2013 while creating pivot tables, particularly with large files. We tried to modify Virtual Memory
    of the pc but error still persist. Why does this happen and how can we resolve this? Thanks.
    Another error message encountered by the user, this time when opening large files. The files she tried to open are working fine in 2010. But when opened in 2013, it prompted : "There
    isn't enough memory to complete this action. Try using less data or closing other applications."

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Did your user using the Excel 2013 and Excel 2010 with same PC? If not, please let me know the both of the 2 PCs' hardware list/Windows operation system info.
    Did you using Excel 2013 32bit version and Excel 2010 64bit version?
    General speaking, this issue usually occurs with Office 2013 32 bit version. It has a limitation of 2Gb of memory that can be used by its process. And the 64-bit Excel can handle larger workbooks.
    Thus, if your user using 32bit Excel, I recommend try 64bit Excel instead.
    Here is a similar issue, we also could try it:
    http://answers.microsoft.com/en-us/office/forum/office_2007-excel/excel-cannot-complete-the-task-with-available/d31b1822-ebde-4c9b-8d11-e54bb652847d
    If you have any update, please feel free let us know.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Write to excel using Range function - Excel_write_range.vi

    I am using the write using range Excel function to dump some data into Excel.
    My data is an array consisting of decimal numbers (data type double) but I have to use "Number To Fractional String" before I can dump this array into Excel. And then when I open the output excel file, you have all these warnings for each cell saying, "number displayed as string". Is there a way to instead dump numbers (in format double) into the Excel. That way each cell in the excel output file will already be formatted as a number instead of string.
    Thanks in advance.

    I'm assuming you're actually using ActiveX to write out Excel files. I say this because a lot of people say "Excel files" when they're really talking about spreadsheet-formatted files, generated using the Write to Spreadsheet File VI. That said, the "Value" ("Value 2" in newer versions of Excel) is a variant, so you can wire any datatype to it. Just wire the numeric value directly.

  • How to create a Table of Contents using Pages 09?

    Hi guys,
    I have little problems creating a Table of Contents in Pages, though it seems quite simple. I'm working with the template 'Term Paper' and I use paragraph styles (Title, Heading I, II, etc.). I have some very long documents (about 80 pages long) so I wanted to create a TOC (using sections) but it says:
    The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document.
    When I compare the paragraph styles I do use and the paragraph styles in the Document Inspector, they match. So I'm a bit upset about this because I really need to use this great feature!
    Thanks for you answers guys!

    I would say: Try and Error. Create a copy of your document and unmark in the copied document in the document inspector all boxes for the TOC. Then mark them again. Maybe you should also delete the paragraph styles and mark them again. If that doesn't work, try to copy the complete text of your document to a new created one. Maybe that works.
    Good luck!
    P.S.: If that doesn't work look here. Maybe this helps.

  • Help Needed in creating dropdown menu in excel using JXL

    Hi,
    I am trying to create dropdown menu in using JXL.
    The Code:
    private void createRequiredRows(WritableSheet writableSheet, List unallowCodeList,int rowCount
                   , int startRowNo,int colCount) throws WriteException {
    Label unallowCode = null;
              WritableFont noBoldFont = new WritableFont(WritableFont.ARIAL, 8,WritableFont.NO_BOLD);
              WritableCellFormat dropDownCellFormat = new WritableCellFormat(noBoldFont,new NumberFormat("000"));
              dropDownCellFormat.setAlignment(Alignment.RIGHT);
              WritableCellFeatures writableCellFeature = new WritableCellFeatures();
              writableCellFeature.setDataValidationList(unallowCodeList);
              for (int rowNo = startRowNo; rowNo < startRowNo + rowCount; rowNo++) {
                   unallowCode = new Label(colCount, rowNo, "Select",dropDownCellFormat);
                   unallowCode.setCellFeatures(writableCellFeature);
                   writableSheet.addCell(unallowCode);
    it creates a drop down in the Excel.
    But writableCellFeature.setDataValidationList(unallowCodeList); has a limitation of characters .So the dropdown menu gets truncated when it exceeds the limitation.
    Can anyone help me in creating dropdown menu in excel without any limitation using JXL..
    Thanks,
    Bisin

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

  • Creating/confirming transfer order (WM) using bapi/function modules

    Hi,
    I usually use BDC to create transfer orders or other documents in WM, but i've been told that using BAPI is more correct. I'm new to this concept, so could you please tell me how i can find the apropriate BAPI/function modules available for this purpose in 46C ?
    I thank you in advance,
    Bruno

    Hi Gisk,
    i am trying ot create a TO based on a material document and year. Same function as transaction LB12. Do you know which function module i can use for this.
    I am trying to use the function module L_TO_CREATE_SINGLE, i fill in the T_LTAK-MBLNR and T_LTAK-MJAHR. But do not know which fields to fill in.
    Hope you can help me.
    Grtz
    Coeno

  • How do you create a pdf file by using ActiveX?

    Is there a way that you could use activeX to write the data into pdf file? If so, do you have to have Adobe Writer install?
    thank

    hello
    you could generate a report using the report - VIs (gives you opportunity to add headers, footers, tables etc.) and print the report to a PDF - Printer (e.g. FreePDF). No ActiveX or Adobe Writer needed.
    greetings
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Xy graph in excel using activeX

    Hi
    I am trying to plot a XY graph in excel using Active X. I have two coloums of data one should be X the other should be Y. I am using XlXYscattersmooth graph type and giving the range as A1 to B5. But when the excel plots it, I am getting two series rather of X data points rather than XY. I know I am doing a simple mistake in choosing some variable but I am not able to figure out where I am going wrong.
    Can anybody please look at my code and correct the code in order to get a XY plot rather than getting two different series.
    Thanking you in advance
    Nitin
    Attachments:
    excel4.vi ‏155 KB

    Hello
    Here is that Set Cell Value with Range.vi
    Regards,
    Nitin
    Attachments:
    Set Cell Value with Range.vi ‏45 KB

  • Create Pivot Table in Background using a Batch Job

    I'm using 4.7 and I have a request to create a daily batch job that will run an ALV report and create a pivot table. How do I create the pivot table? I tried using the FM 'EXCEL_OLE_STANDARD_DAT' but I get a 'File do not exist' message. Tried looking at the documentaion of this fm but it doesn't have any. If anybody can explain to me how this function works, that would really be great. Or if you have a better solution, that would be even greater than great.
    Thanks in advance!

    Hello Liz,
    I think it is not possible because to generate an Excel file, SAP needs the Excel program.
    But when the program is executed in backgroud, SAP server does not have a way to access Excel program to generate the file.
    Hope I am wrong...
    Regards,
    Mauricio

  • How can i create a new shell window using some functions?

    1.In a shell window, how can i use a command to create another new shell window?
    2.In C code, which function will be called to create a new shell window?
    (not excute shell command -- being implemented by using system() )
    Thanks!

    #1 I don't know what a "shell window" is. There are shells (programs that accept terminal input and run scripts), and there are windows (usually drawn by an Xclient (like xterm), or a toolkit client (dtterm, gnome-terminal).
    The two are very different. You may just want to run xterm or something and assume that it will also launch a shell.
    #2 You'll need to explain that one better. system() is the normal way to launch external commands. If you don't want to use it, you'll need to explain why it's not useful here.
    Darren

  • How to Export data from a Table to Excel using PL/SQL Code

    Hi,
    I need to export data from a table to the excel sheet using PL/SQL script.
    could you pls provide with custom codes or sample procedures.
    Bobby

    http://asktom.oracle.com/pls/ask/f?p=4950:8:7947129213057862756::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:728625409049

  • How to create a generic data extractor using standard function module

    Hi,
    I have to generate report based on Function module(standard FM),client know only Fm Name n they have given FM Name n asked reports based on that, so can any one give me steps to create DS based on that.
    Thanks,
    Swapna

    check this blog
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    and this pdf:
    Generik extraction: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    Generic delta:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Edited by: Aduri on Dec 17, 2007 4:04 PM

  • How to save then quit excel using activeX

    The task that I need to do is open existing excel file, append data to the last row, save data then close it. Everything works fine except saving the data. I used property workbook note to save then invoke node to close a workbook then invoke node to quit excel application. I watched and see that the data is written to the sheet but when I closed it, it is not saved.
    System: Window NT and Excel2000
    Thank you

    mai wrote:
    >
    > The task that I need to do is open existing excel file, append data to
    > the last row, save data then close it. Everything works fine except
    > saving the data. I used property workbook note to save then invoke
    > node to close a workbook then invoke node to quit excel application.
    > I watched and see that the data is written to the sheet but when I
    > closed it, it is not saved.
    >
    > System: Window NT and Excel2000
    Use Task Manager to check if Excel is still running.
    I find that the programmatic close of Excel doesn't work. Excel is left
    running until you actually quit either LabVIEW or the built app!
    Side-effect: if you then launch Excel to view a document, the screen
    isn't redrawn right.
    Mark

  • How do I create a table without Excel?

    I couldn't find the option insert table? Is it possible to insert rows and columns? I don't have Microsoft Excel but Open Office
    Thanks for your help

    This is not what you do in Acrobat. Page design should be compled (in Excel, Word or any other app) before making the PDF.

Maybe you are looking for