ActiveX Container showing EXCEL Chart

Hi,
I´m trying to display an Excel97 Chart in a Labview 7.0 ActiveX Container.
I´ve tried several things :
1. Creating an container that is connected to an Excel file. Then copying the chart I want to display to the file and saving it.
--> problem : the display won´t refresh until I manually edit the ActiveX document.
1. Creating an container that is connected to an Excel file. Then changing the source document
--> problem : not possible in LabView ?
2. Trying to create a container as an Excel Control.
--> problem : no such control available ?
Who can help me ???

Sorry Microsoft Chart contorl is activeX control that you embed in ActiveX container in LV
A Rafiq

Similar Messages

  • How to use ActiveX Microsoft Office Excel Chart?

    Does anyone know how to use "ActiveX Microsoft Office Excel Chart" from CVI 7.0? I tried with following code but it did not draw anything.
    HRESULT MakeChartInExcelActivexCtrl(void)
    HRESULT error = 0;
    char szErrMsg[256];
    // Create a new chart with its own worksheet
    // ExcelRpt_ChartNew(workbookHandle,-1,&chartsheetHandle);
    SetWaitCursor (1);
    // Open new Range for Worksheet
    error = CA_VariantSetCString (&MyCellRangeV, EXCEL_ARRAY_OF_CELLS);
    error = Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, &ExcelRangeHandle);
    CA_VariantClear(&MyCellRangeV);
    if (error<0)
    CA_GetAutomationErrorString(error, szErrMsg, sizeof(szErrMsg) );
    goto Error;
    error = Excel_GetProperty (excelChart, NULL, Excel_WindowActiveChart, CAVT_OBJHANDLE, &ExcelChartHandle);
    if (error<0)
    CA_GetAutomationErrorString(error, szErrMsg, sizeof(szErrMsg) );
    goto Error;
    // Create a XY scatter chart using the data we wrote to the worksheet as its data source.
    error = ExcelRpt_ChartWizard(ExcelChartHandle, ExcelWorksheetHandle, EXCEL_ARRAY_OF_CELLS,
    ExRConst_GalleryXYScatter, ExRConst_Columns, 0, 0, 0, 0, "Filtered Data Chart", "",
    "Weather Data", NULL);
    if (error<0)
    CA_GetAutomationErrorString(error, szErrMsg, sizeof(szErrMsg) );
    goto Error;
    // Change the plot lines to not display markers and smooth out
    // the plot lines. This is one of the plot styles available in Excel.
    error = ExcelRpt_SetChartAttribute (ExcelChartHandle, ER_CH_ATTR_CHART_TYPE, ExRConst_XYScatterSmoothNoMarkers);
    if (error<0)
    CA_GetAutomationErrorString(status, szErrMsg, sizeof(szErrMsg) );
    goto Error;
    Error:
    SetWaitCursor (0);
    CA_VariantClear(&MyCellRangeV);
    CA_VariantClear(&MyVariant);
    ClearObjHandle (&ExcelRangeHandle);
    ClearObjHandle (&ExcelChartHandle);
    ClearObjHandle (&ExcelChartObjHandle);
    ClearObjHandle (&ExcelChartsHandle);
    if (error < 0)
    ReportAppAutomationError (error);
    return 0;
    Attachments:
    excelActivexCtrl.zip ‏4692 KB

    I use C:\Program Files\National Instruments\CVI90\toolslib\activex\excel\excelreport.fp to  build/modify excel report.there is very detail configuration in this function moudule , hope it can help you 
    Sonic
    Diffrent Strokes for Different Folks

  • ActiveX container of excel table

    Hi
    I have a excel table with lots of font formats that I'd like to have visible in LabView. How can I do that? I tried to copy the ActiveX...Range but it didn't work.
    I don't want to build the table in LV because of the font formats.
    It's very odd especially because could copy graph picture to the clipboard.
    Thanks for any help.
    Yves

    Hi Yves,
    display your Excel table in an InternetExplorer component embedded in an ActiveX container…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Does Measurment Studio Standerd edition contains graph and chart ActiveX controls for VB6

    A Very Simple quistion:
    Does Measurment Studio Standerd edition contains graph and chart ActiveX controls for VB6?

    Shady -
    Measurement Studio 7.0 Standard Edition provides support for Visual C++ 2003, Visual Basic .NET 2003, and Visual C# 2003. It just so happens that the Visual C++ support includes ActiveX controls, which are usable in VB6. The CWGraph ActiveX control provides both graphing and charting functionality.
    However, full Visual Basic 6 support, including examples and documentation is not in the Standard edition. It is in the Professional and Enterprise Editions.
    The best thing to do would be for us to get in direct contact with each other to make sure that we get you exactly the (minimum) package you need. If your profile includes your email address, we can contact you. Otherwise, you'll need to go through ni.com/support and refer to t
    his discussion thread to open a direct dialogue.

  • Having trouble formatting excel chart using Chart Wizard command.

    Problem Description :
    Trying to create an excel chart derived from an excel spreadsheet. Having trouble understanding the parameters to format in the Chart Wizard function to get the desired results. There are no error messages, just chart is not what expected.
    Goal:
    Chart with temperature on the left, y-axis. 3 lines on the graph for min meas temp, avg meas temp, max meas temp.
    Bottom x-axis should contain year/month values.
    Chart Wizard command:
    status = ExcelRpt_ChartWizard (chart_temperature_handle, chart_data_worksheet_handle, D1:G3, ExRConst_GalleryLine, ExRConst_Rows, 0, 0, 0, 1, "Temperature Stats", "Year/Month", "Temp F", NULL)
    NI Software : LabWindows/CVI version 8.0.1
    NI Hardware : None device
    Driver Version :
    OS : Windows XP
    Customer Information :
    Mary Claflin
    Technology Kitchen Corporation
    US
    [email protected]
    Ph: (512) 965-4722

    Hi Mary,
    Looking at the Chart Wizard within Excel, it appears as though the only
    chart type that allows us to give a series of values for our XAxis
    would be the XY Scatter plot. There IS an option for this when using
    the CVI Excel Report function calls (specifying
    ExRConst_GalleryXYScatter for the plot type).
    However, it appears that there are not any Excel report chart functions
    available in CVI to specify anything other than the general "series"
    object. When this object is sent through as a variant data type to
    Excel, Excel appears to automatically convert this single object into
    separate data series. This is because Excel is not immediately aware
    that we are attempting to use a Scatter plot, and thus must convert
    each column into a separate series. There is no object defined in the
    Excel report that would be able to handle the "Xseries" and "Yseries"
    option that are seen in the chart creation wizard within Excel. Thus,
    we have no way of specifying a different set of data for our XAxis.
    It appears as though, at least for our own CVI functions, that there is
    no way to accomplish your goal. Since CVI is based around C - we CAN
    call any ActiveX client registered on the system. Because of this, we
    should be able to talk with Excel directly without the help of the CVI
    Excel Report functions, although this may be more difficult.
    I haven't been able to find any specific C example code, but here is
    the Excel Object Model on which calls to Excel will most likely be
    based:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrconexcelobjectmodeloverview.asp
    Sorry for the inconvenience Mary.
    Dan Weiland

  • How to link Excel Chart with multiple columns dynamically?

    Hi all,
    I have one problem. I have an excel chart which has to read data from multiple columns for it's X-axis values (time stamps) and the same number of values for it's Y-axis from multiple columns. See figure attached.
    Now, you can do this by manually assigning values by holding control key to tell the chart that data from many columns is continued from the first column. i.e, a long data is distributed along may columns. This is done very easily manually.
    Now, how to do it at runtime through LabVIEW 8.0?
    Although, I have done it through labview when there where only two columns, A and B streching up to any length. But, now to save space we are dumping into many columns in the same page and want the chart plot that data as we dump it. 
    It is tough since I don't know how to assign SourceData of the chart through labview.
    I have attached chart's SourceData picture.
    Hope you all can solve my problem.
    The Y-axis values are: =(good!$B$30:$B$70,good!$D$30:$D$70,good!$F$30:$F$70,good!$H$30:$H$70,good!$B$71:$B$140,good!$D$71:$D$140,good!$F$71:$F$140,good!$H$71:$H$140,good!$B$141:$B$189)
    good is the name of the file.
    The X- axis values are: =(good!$A$30:$A$70,good!$C$30:$C$70,good!$E$30:$E$70,good!$G$30:$G$70,good!$A$71:$A$140,good!$C$71:$C$140,good!$E$71:$E$140,good!$G$71:$G$140,good!$A$141:$A$189)
    See the columns vary from A to F.
    I have still not got what I love.....
    Attachments:
    ExcelChart.JPG ‏113 KB
    SourceData.JPG ‏34 KB
    XY values.JPG ‏36 KB

    Ok i solved the excel chart problem. Here is the figure showing my victory! But offcourse with NI forum help.
    Message Edited by Halemani on 09-19-2008 06:33 AM
    I have still not got what I love.....
    Attachments:
    Chart_XValues_Values.JPG ‏36 KB

  • Low Memory when Printing Excel chart on LaserJet 3015 ll-in-one

    Low Memory when Printing Excel chart on LaserJet 3015 ll-in-one
    When I try to print a chart from Excel 2007 I get a low memory error. All other printing seems to work just fine. I thought it might be because of a color fill in the chart area so I removed the fill but I'm still getting the error.
    I've also cleared the fax memory and run through the steps in http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00378226&prodT...
    Running: Windows WP pro (SP3)
    Printer: LaserJet 3015 all in one
    Current driver: HP Lasetjet 3015 PCL 6
    Running as a network printer using a D-Link DP301P

    When an application is installed to the expansion card, that's the only place where you will see it in the app launcher screen, i.e. by selecting the card.  It will not appear in the All category because that only shows apps which are installed to internal memory.
    As for the Files application, yes, it only lets you browse contents of the card.  For a more robust file management utility which will let you browse your entire phone, you might want to look into a freeware application called FileZ, which I believe is available at www.palmgear.com and other places.
    I've never run Documents To Go from a card, but when you open Docs to Go and open the Menu > Options > Manage Applications, there is an option there to move applications to the Card.  Never having done that, I'm not sure whether it moves the whole DTG app to a card but, give it a try.
    I have oodles of applications and documents stored on my Centro's internal memory, and never have run up against a memory problem.  At any time, you can check available memory by going to the application launcher (home) screen, opening the menu, and selecting Info.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • Excel chart alignment problems when creating PDF

    My excel chart is off set on my PDF page after creating PDF from Macro.  The chart is within my print areas in excel and no matter where I position the chart in excel the chart shows up like it is indented on the PDF and runs off the page.  I can print from excel and the results are fine.  I am operating a windows 2007 64 bit machine with excel 2007 and ADOBE Acrobat 9 Pro & Adobe Reader X.
    I am running the following code by Ron de Bruin to generate the PDF
    Myvar.ExportAsFixedFormat _
       Type:=xlTypePDF, _
       FileName:=Fname, _
       Quality:=xlQualityStandard, _
       IncludeDocProperties:=True, _
       IgnorePrintAreas:=False, _
      OpenAfterPublish:=OpenPDFAfterPublish
    No matter what I do I can not get the chart completely in the page through VBA.  The VBA code works fine it is the results of the PDF I can't seem to fix.
    Many thanks for any help.

    Hi,
         I tried to do the same with a Excel having a so much content. I tried to print that file into a PDF file, I saw the output file as expected. I think there might be some different settings in your PDF printer. Can you please send me the screenshot of PDF Printer Dialog Box launched after invoking Print To PDF from Excel?

  • How do I make an embedded Javascript element(embedded MS Excel chart) automatically refresh so that viewers do not have to refresh the entire page to get updated information.

    I am creating a web page that features an embedded chart made by MS Excel. I would like the chart to automatically update(refresh) to show viewers live information without having to refresh the entire page. I have found that there is a way to enable this through Excel but with my current subscription cannot access that feature. I am hoping that there is a way to achieve this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a "refresh" button that refreshes only the embedded section(Excel Chart) of the page for viewers to use manually. Thank you for your help.

    Update! The embedded spreadsheet is actually embedded using HTML rather than javascript.

  • Change the x-axis series in excel chart

    Hi,
        While plotting an Excel chart using ExcelRpt_ChartWizard(), the x - axis series starts from 0, 1, 2, 3... I like to change the series according to the data present in a particular column. Eg. If column 2 contains 2, 5, 7, 6.2... then the x-axis should be in the order 2, 5, 7, 6.2.....
    Can anyone help me regarding this issue?

    Hi,
    Many thanks for this post, It's been quite helpful since there seems no to be so much info available about not so basic generation and manipulation of excels graphs with LabWindows (at least compared to C#).
    I am struggling to set my own X-Axis as well but the best I can get is the graph looking like the one of the attached file.
    The first row for the X-Axis is 11:47:00 and the last one is 17:46:25, however I get a graph between 0:00:00 and 19:12:00.
    May thanks,
    Best regards
    Attachments:
    Graph with LW.png ‏14 KB

  • Link Excel Chart to Form

    Is there a way to display an Excel chart in an Adobe form that is actually linked to Excel (so that when the chart is updated in Excel, it will also be udpated in the form)?  I would like to create a presentation in Adobe that contains various Excel dashboards.  However, I would like to avoid the need to copy and paste the charts into the form every time they get updated.

    Only by using form fields, defining the Excel file as a local ODBC resource
    and then creating a script to connect the two.
    It would be easier to do this in a LiveCycle form, though, than in an
    Acrobat form.

  • Hiding an ActiveX container with a web browser object

    I have an ActiveX container that holds a web browser object to view a remote front panel for a VI running on a RT Target.  I would like to dynamically adjust the visibility of the container on the front panel so that it is only visible when needed.

    The web browser ActiveX object is a bit unique in how it is drawn on the screen. It is always on top. So this is an issue with the code in the web browser, not in LabVIEW. The best and easiest solution to your question that I have come up with is to move the ActiveX container offscreen instead of trying to make it invisible. Use the position property on the ActiveX container to programmaticaly move it. See diagram. (I'm showing both the True and False case of the Case Structure, but there should only be one Case structure in the diagram.)
    Message Edited by Christian L on 07-18-2008 09:39 AM
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    WEBBROSWERHIDE.png ‏13 KB

  • Excel chart width

    does anyone know how to change the width of the graph?
    i want to make the lines smaller or bigger.
    Solved!
    Go to Solution.
    Attachments:
    excelchart_plot._ablation.vi ‏48 KB

    I am not able to open the code as I have only LabVIEW 2012. Which line do you mean. Regarding the Excel chart you have all the properties accessable through ActiveX, did you try that? Also you have some of the properties available in RG toolkit as well.
    The best solution is the one you find it by yourself

  • If an applicatio​n includes ActiveX references from Excel, should MS Office be installed on the run-time PC?

    There are many threads regarding usage of MS office with LV, but I was not able to find the answer to the following question. I hope somebody can help or point me to a useful thread.
    I have an excel template file and would like to create new reports each time from it. There are a couple of solutions for this problem which are fine. But, at the end, I am going to build an application and install it on an industrial PC which does not have MS office installed. The question is if the application works on the target machine as well.
    I am specifically pointing to the solution in here which uses ActiveX reference to Excel._Application. Any chance that this solution or any similar one works on my target PC?
    If you wonder why I want excel reports on a machine that does not have MS Office, I should say that the reports are just stored somewhere on the disk to be transferred later to headquarters let say!
    Developing machine: Win7, LV8.6 Pro + Report generation toolkit
    Target machine: WinXP SP3, LV run-time engine
    Thanks in advance!
    Soroush
    Solved!
    Go to Solution.

    You need to have Office installed on the computer that is running the LabVIEW application. It is the Office applications that provide ActiveX functionality to the Report Generation Toolkit. Without them, LabVIEW has nothing to interface to.
    http://digital.ni.com/public.nsf/allkb/02E339E2648​4F30186256E920061FBD9
    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

  • How to put header and footer information in excel chart

    I modified the create chart.vi, I got from this site and able to create a chart from *.xls file. Now I want to print the filename as header and date and time the chart created as footer in the excel chart. Any idea is appreciated.
    Thank you
    MM
    Attachments:
    Create_Rundown_Chart.vi ‏246 KB
    SN20755-Horiz_1-031027-160128-rundowndata.xls ‏15 KB

    Under the property node _Chart where you have the ChartTitle, add the property PageSetup. Cascade that into another property node and choose CenterHeader and CenterFooter. You can write the strings directly into these properties. Use the following codes:
    Filename = &F, Date = &D, Time = &T
    Be sure to close all references that do not leave the page (ie. Chart, Legend, ChartArea, etc.). Otherwise Excel will hang later on.
    Michael Munroe
    www.abcdefirm.com
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

Maybe you are looking for

  • How do i get all of my music back to my phone from icloud?

    Recently had to restore my phone for unknown reasons but now that i have it going again all of my music has a cloud with an arrow pointing down on it..which i know means it has to be downloaded from icloud. Is there any way i can do them all at once

  • RE workflow type is not showing up in the Request type list in AE

    Hi, I had appended the AE_init_append_data_RE.xml file in the Configuration->Initial System Data. Even after appending this file , the RE workflow type is not showing up in the AE Request type list. Please guide me.

  • Find all installed applications

    coming from a Debian , Ubuntu environment I could find all installed applications with this command dpkg --get-selections>installed This would deposit a text of all installed applications in the working directory. What command is there for pacman tha

  • How can I send my post directly to one of these smart guys on here?

    I'm afraid my post will just sit unanswered...this issue has been discussed but the solution noted did not fix the issue for me...I can't do any work with this transposing issue...every song I open has the midi transposed to another note from what I

  • FRM-41214 unable to run report from forms with parameters

    Hi all, I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly. I used set_report_object_property to pass the parameters. Any clues to solve this problem? Pr