Non-embedded graph in Excel report gen

I am using the Labview report generator to generate excel files of large batches of data. Is there a way to link the graph to data in the excel file rather than have it embedded in the graph itself? I need to be able to, for example, update a cell later on in the excel file and have the graph automatically update. Is there a way to create the graph by passing in an array of cell IDs rather than an array of numerics?
Thanks!
Alex

Hi Alex,
Yes, your explanation does verify what I thought you are trying to do.
Unfortunately, we do not have some complex VI in LabVIEW that creates all of the features of a regular old excel graph (there would be a lot of things to input, just imagine).
I have a couple suggestions.  The first suggestion is to try to either make a macro or find a macro for excel that programmatically sets up all of that graph stuff.  If you have this macro, you can use LabVIEW to run it, pretty straightforward: http://zone.ni.com/reference/en-XX/help/372120A-01/lvoffice/excel_run_macro/  and of course, if you were creating the data in LabVIEW, you can use Write to Spreadsheet to insert the data into the excel file first.
The second suggestion is to use ActiveX controls.  ActiveX is something that supports windows software, so you could go through and program each action in excel programmatically using ActiveX controls.  There are example in the NI Example Finder; here is one example using ActiveX for Excel: https://decibel.ni.com/content/docs/DOC-5780
Best of luck,
Ryan C.
Applications Engineer
National Instruments

Similar Messages

  • Changing the Size of generated graph in excel report generation toolkit

    Hi, i am trying to build a report generation vi for my Structural health monitoring system in which i need to export 3 graphs in to an excel report. The idea is to have the report on a single page, but when i paste them along with the ceiling and pillar deviation percentages, the report just exceeds the page limit. I wanted to know whether one can change the size of the graphs in excel? One can do it in word(tried that), but i dont want to use the bookmark option as it intend to put this up as a webservice in the next step. I am using LabVIEW 2009 Thanks.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    Report Generation SHM.vi ‏30 KB

    Hi,
    I haven't tried this myself, but looking through the report generation toolkit the "Excel format image VI" (in the Excel specific tab of the Report Genertaion window) looks to be the one you are after. The help entry for the VI says to: "Use this VI to format any type of image in a worksheet, including front panel images, images from a file, and graphs"
    Hopefully this will help.
    -CC 
    "If anyone needs me, I'll be in the Angry Dome!"

  • Image in generated excel report

    Hi to all,
    I am creating an excel report by following the demo in otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html. However I need to include an image to the excel output. Initially, when I made the layout design in excel, I am able to embed the image through the insert -> picture from file function in excel but when I converted it to HTML and JSP, it was converted as an img tag with a source pointing to an image file in a directory. When I generate the excel report, there is no image and I am left with transparent box that act as a placeholder for the missing image. Does anyone know how the image can be embedded to the excel report when it is generated?
    Thanks in advance for your help.

    Hi swati,
    If we want to display an image which located in sharefolder based on ID, we can refer to the following steps:
    Insert an image in the design surface, select External format as the image source.
    In “Use this image” tab, click the fx button to add the expression like below:
    ="File://" + Fields!FolderPath + "/" + User!UserID + ".jpg"
    The link below is for your reference:
    File URIs in Windows
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Excel Graphs using Office Report Generation

    I'm using Office Report Generation and I would like to add a grpah to my excel spreadsheet using existing excel spread sheet data. 
    Right now the only way I can add a grpah is to load the data into labview and create a graph in a 2d array.  However that way the graph has no linkage to the data in the exc el spreadsheet.  I can't use a template to create the graph then load the data because different results require different methods.  However if I could modify an existing graph within labview I could use the template but I can't index a now labview created graph.
    Can anyone suggest anything?

    Hello,
    Thanks for posting to the NI Discussion Forums!  I think you might
    be right, and there might not be a conventional way to create your
    graph from the Report Toolkit (after all this is designed more to
    create a report from known and unchanging data that you can move to
    excel for demo purposes).  There might be some other ways to do
    this.
    My first recommendation if you would like to stick with the Report Gen.
    VIs, you can design an Excel Macro to generate a graph from the
    spreadsheet.  LabVIEW can execute the Excel Macro through the
    Report VIs (see the Report Generation->Excel Specific->Excel
    Advanced->Excel Macros palette).  There are some good examples
    and documentation out there about calling Excel Macros:
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3DD2F56A4E034080​020E74861&p_node=DZ53040&p_rank=&p_source=Internal​&p_submitted=N
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3D9D856A4E034080​020E74861&p_node=DZ53003&p_rank=&p_source=Internal​&p_submitted=N
    http://venus.ni.com/stage/we/niepd_web_display.DIS​PLAY_EPD4?p_answer=&p_guid=B45EACE3DC6D56A4E034080​020E74861&p_node=DZ53003&p_rank=&p_source=Internal​&p_submitted=N
    http://zone.ni.com/reference/en-XX/manuals/323805A​-01/RepGenUG_07/
    If you do not want to use the macros, you might have more luck using
    ActiveX, or other means in which to interface with Excel than are
    provided in the Report Generation Toolkit.  There are countless
    examples and discussions about Excel, LabVIEW and ActiveX so I won't
    spend too much time here on it, but if you think you might want to use
    this as an option, let us know and I can see about finding some
    examples on it for you.
    Hopefully this helps!  Please let us know how things go.
    Travis M
    LabVIEW R&D
    National Instruments

  • Excel Report from Graph

    Hi Gurus,
    My requirement is . can we open detail report in excel from graph? i mean
    I have Graph to display sales amount by month. if user click on any month then detail report ( all low level details for that month) should display in excel .
    if it is possible after user click on month one message box should pop up to ask "do you want open detail report in excel? " if user click on OK button then excel report should display.
    Can i achieve this one in OBIEE ( 10.1.3.4). if yes then how?
    I really appreciated you support and time

    Hi Scott,
    i don't know if there is a function in the report generation toolkit, but this link shows an example of what you need.
    http://forums.ni.com/ni/board/message?board.id=170​&view=by_date_ascending&message.id=391177#M391177  
    Hope it helps.
    Mike

  • Add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit

    How to add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit. Assume like my test data is like below:
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7
    The above graph generated manually in excel. I want to generate the same using excel report generation toolkit. when I use Excel Insert Graph.vi where the input data is 2D array with numeric data but here labview converts the empty cells (eg.x -axis 1,data1- is empty) as zero and while plotting i am getting zero for empty cell values.
    Can anyone please help me on how to plot the graph without adding zero for empty cells?
    Thanks&Regards,
    Bharathi T
    TE
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7

    Hi Bharathi,
    The Excel Insert graph function takes in only 2d arrays as inputs. Since arrays can only have numeric values, any table with a null string is read as 0. Now to get a plot like you mentioned, you could read the table and replace blank Strings as NaN. NaN values in an array when plotted do not appear in the excel sheet. For reference I have attached a sample vi to help you understand.
    Regards
    Vijetha Nuthakki,
    Applications Engineer
    NI Systems India
    Attachments:
    Excel_graph_multiplot.vi ‏21 KB

  • How can i know about the page breaks that occur in excel sheet during report gen

    Hello,
    I am trying to generate an Excel report with a large number of columns. and i am facing the problem of some of the columns not fitting into the page due to the page break. as a result, these columns are being printed at the end of the report. I would like to add the Row and Column headers to the remaining of the columns so that it is easy to recognise as to which table they belong to. i would like to know if there is any method to find out when the page break occurs in the excel sheet, along with the last printed column number, so that it would be easy for me to add the Row and Column headers before the next row/column is printed.
    Thank You
    Regards
    Tweetz.

    Hi Tweetz,
    I have tried to find a way to do what you are asking, but have been unsuccessful.  However, you can control where the page breaks occur by using the "New Report Page.vi".  You can call this VI after appending the table to the report, and specify the cell where you wish to insert a new page break (using the "position" or "name" elements of the "MS office parameters" input).  If you know the page size and you specify the column widths, you should be able to pick reasonable places to start a new page.
    I hope that helps!
    Devin K
    Systems Engineering - RTT & HIL

  • Excel report generation error

    Hi,
    Does anyone have experienced (and solved) this behaviour?
    I've been using the report generation toolkit to build word report without
    problem. I've also solved a lot of problems in the excel part of the toolkit
    (e.g. building graphs with >20000 points). It finally works in development
    environment.
    Now when I install the executable (, with the installer) the word reports
    still work, but the excel report don't. The executable does run on a
    different system, but the excel versions are the same (both Excel 2000).
    I have copied the excel library in the data directory of the executable.
    The following error is generated:
    -2147319784
    Old format or invalid type library
    Excel_Open.vi
    This is the first report generation vi that is called. I us
    e it to open a
    template.
    Any help is appreciated.
    Wiebe.

    Hi,
    Surfing the internet, I found this comment:
    *Start quote*
    Sometimes you'll find that a parameter is required that isn't mentioned
    anywhere in the application's documentation. This happens when you need to
    specify system information: the chief example of this is the lcid, which is
    a locale identifier, and which pops up all over the place in Excel. The good
    news is that there is a constant in the Windows unit which provides you with
    the correct value, LOCALE_USER_DEFAULT:
    var
    lcid: integer;
    begin
    lcid := LOCALE_USER_DEFAULT;
    Excel.Visible[lcid] := True;
    There's also a function, GetUserDefaultLCID, but using that value can cause
    an error, complaining about an 'old format or invalid type library' on some
    setups. Using LOCALE_USER_DEFAULT for the
    LCID value should fix that.
    *End quote*
    Could this be the problem?
    Regards,
    Wiebe.
    "Wiebe@AIR" wrote in message
    news:3e79a3aa$0$140$[email protected]..
    > Hi,
    >
    > Does anyone have experienced (and solved) this behaviour?
    >
    > I've been using the report generation toolkit to build word report without
    > problem. I've also solved a lot of problems in the excel part of the
    toolkit
    > (e.g. building graphs with >20000 points). It finally works in development
    > environment.
    >
    > Now when I install the executable (, with the installer) the word reports
    > still work, but the excel report don't. The executable does run on a
    > different system, but the excel versions are the same (both Excel 2000).
    >
    > I have copied the excel library in the data directory of the executable.
    >
    > The following error is generated:
    >
    > -2147319784
    > Old format or invalid type library
    > Excel_Open.vi
    >
    > This is the first report generation vi that is called. I use it to open a
    > temp
    late.
    >
    > Any help is appreciated.
    >
    > Wiebe.
    >
    >

  • Problem with the number format in the graph axis with Report Generation Toolkit.

    Hi!
    I'm trying to use the Report Generation Toolkit to plot some graphs in Excel.
    My first problem is that I don't know how to configure the number format in the Excel Set Graph Font.vi so that my numbers are correctly displayed in the graph's axis. The only given option is general (0,0) but this is not enough for me, my numbers can get really small so I need engineering notation or fraccional format.
    Second: I also insert a table with the graph source data, but the numbers are not correctly displayed either: for example: 
    0,75 is shown as: 
    0,750000
    but 1,25  is shown as: 
    1!250!000
    My guess is I am making to much or wrong string to number conversions or Excel is getting it wrong but I can't find my way...
    Can someone help me with this?
    Thanks,
    Isabel

    Here is my VI, it's just a trial so it can look messy...
    Thanks,
    Isabel
    Message Edited by Isa_pm on 01-22-2007 01:12 PM
    Attachments:
    Create report.vi ‏96 KB

  • Encountering Error while executing excel report in Reports 10g

    Hi,
    I have got Oracle 10g developer environment which has been implemented on Web browser through Oracle Jinitiator. I am running an excel report and encountering 105101: non-ORACLE exception -105101 when the output file exceeds a size of around 23MB. Where is this configuration done on Reports Server? Can we change this?

    Hi
    What do you mean by Install portal? Where should I install?
    While installing the server i have choosen the Usage type EP also!!
    Thanks
    mv_d

  • Error while making a graph in excel

    I can create an excel file + worksheet + inserting data. But when i try to make a graph i get the error:
    Error accessing the OLE registry.
    in Excel Import Module.vi->Excel Insert Graph.vi->Excel Easy Graph.vi->excelreport.vi
    i searched the forum but couldn't find the answer, i am using the functions 'report generation'.
    I got my information from the tutorial :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/410C4F687126E4C786256B920072A197?OpenDocument
    Attachments:
    excelreport.vi ‏73 KB

    you most have eather a simple problem or your registry is flawed anyways did you try this found it on web.
    Make sure that you are logged into the computer as local Administrator, or are part of the local Administrator group.
    To identify which registry key is causing the problem use Regmon (a freeware tool published by SysInternals). Use Regmon to capture all registry access when regsvr32 is run. If an �OpenKey� request fails with �Access Denied� (which is listed by Regmon as �ACCDENIED�) then run regedt32 and check the permissions on that registry key. If necessary change the permissions on the key to grant local Administrators �Full Control�.

  • Best Practice for creating Excel report from SSIS.

    I have a requirement to create an Excel report on a daily basis which pulls data from SQL. I have attempted to resolve this by creating a stored procedure to save the results in SQL, a template in Excel to hold the graphs & pivot tables and an SSIS package
    to copy the data to the template.
    Problem 1: When the data turns up in Excel it is saved as text rather than numbers.
    Problem 2: When the data turns up in Excel it appends the data rather than overwriting it.
    I resolved problem 1 by having another sheet which converts the text to numbers (=int(sheet1!A1))
    I resolved problem 2 by adding some VB script to my SSIS package which clears the existing cells before copying the data
    The job runs fine, however when I schedule the job to run overnight it complains "System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID". A little googling tells me that running the client side commands in
    my vb script (workSheet1.Range("A2:F9999").Clear(), workBook.Save(), workBook.Close() etc) from a server side task is bad practice.
    So, I am left wondering how people usually get around this problem; copy a SQL table into an existing Excel file and overwrite the data, without having the numbers turn up as text. My requirements are that the report must display pivot charts with selectable
    options and be automatically updated overnight.
    Help appreciated,
    Bish.
    Office 2013 on my PC, Office 2010 on the server, Windows Server 2008R2 Enterprise, SQL Server 2008R2.

    I think that the best practice in case like this is to Link an excel file to a view or directly to a table. So you don't have to struggle with changing template, with overnight packages, etc. If the data are too much complex and the desiderate too excessive
    then I tend to create a Cube and that's it...dashboard, graph and everyone is happy. In your case if the request is not too much try to don't use SSIS but directly build a view and point directly on SQL.
    SSIS is really strong for the ETL, to run some stored procedure too heavy, to use a cut time scheduled, etcetera , etcetera, etcetera...I love it. But sometimes we need to find the easier solutions...
    I hope this post helped you

  • Revised "Generate Excel Report" Example

    I recently answered a question from a Forum user about an error encountered when trying to generate an Excel spreadsheet with the Report Generation Toolkit.  I thought that the example code he was using was "unusual" and overly complex, and just discovered that it was, in fact, the LabVIEW 2013 "Generate Report From Template (Excel)" Example.
    In the spirit of trying to demonstrate how nice the new(er) "Easy Excel" functions are, I rewrote this Example, and have attached it here.  While doing so, I discovered (and have reported to NI) a "bug/feature" of the Excel Insert Graph function.  One of its parameters allows you to position the graph by specifying the Left and Top edges (Left would be the Excel Column, Top would be the Excel Row).  The only problem is that the parameters are reversed -- to put the graph on Row 1, Column G, you specify (0, 6), not (6, 0).  Oops ... 
    Solved!
    Go to Solution.

    Here is a Snippet, in LabVIEW 2012, of the Excel Demo (the Revised Generate Excel Report Example).  If you have LabVIEW 2012 or more recent, you should be able to drag this into a blank Block Diagram and have the VI "magically" created.  If you have an earlier version of LabVIEW, you can at least see a picture of all the VIs and wiring here, and can open LabVIEW and "build it yourself".  There are no Case statements, so nothing is hidden from view.  In case the image is too small, I also attached the PNG file, which you should be able to open with an Image Viewer and potentially print out for yourself.
    Attachments:
    Excel Demo.png ‏108 KB

  • MICROSOFT WORD OR MICROSOFT EXCEL 를 REPORT VEIWER로 설정하는 방법

    제품 : AOL
    작성날짜 : 2005-04-26
    MICROSOFT WORD OR MICROSOFT EXCEL 를 REPORT VEIWER로 설정하는 방법
    ==========================================================
    PURPOSE
    MICROSOFT WORD OR MICROSOFT EXCEL 를 REPORT VEIWER로 설정하고자 할때
    참고하는 문서
    Explanation
    아래와 같은 절차에 따라 IE에서 Embeded 형태로
    MICROSOFT WORD R MICROSOFT EXCEL 를 볼수 있습니다.
    1.Viewer type을 추가합니다, Word 와 Excel Type 두개 모두 해야합니다.
    2.Sysadmin responsibility권한으로 Login
    3.Navigate as follows:
    Install -> Viewer Options
    4.다음 two lines 을 추가하고 저장한다.
    File Format Mime Type Description
    Text text/11i excel 11i excel
         Text     text/11i word     11i word
    5.다음을 실행합니다.
    5.1. Navigate to Profile --> System
    5.2. Search for %viewer%
    5.3. Click on the "Viewer:Application for Text". You should get the "…"
    5.4. Select either the 11i Excel or 11i Word option.
    (In this example choose 11i Word.)
    5.5. Save the configuration.
    5.6. Log out and log in again
    5.7. Login as sysadmin responsibility
    5.8. Go to "File" at the top and choose "Log on as a different user"
    If you don't have any reports that you can view then run a simple
    report like active users.
    5.9. Navigate to Requests --> View
    5.10. Choose View All My Requests
    5.11. Find the Active user report or any other report you wish to use.
    5.12. The Netscape Browser should come up and you will get a dialogue
    window that says the following:
    File Download
    "You have chosen to download a file from this location.
    What would you like to do with this file?"
    5.13. You have two choices. Open the file or save the file to disk.
    5.14. You also have a check box that if you uncheck it you will no
    longer get this window.
    5.15. Select Open this file from it's current location.
    5.16. You will now see the following window:
    "Open With
    Click the program you want to open the file 'file' with"
    5.17. In the top of the box put in a description you will be able to
    find later. In this case put in "11i word type".
    5.18. Go down on the list and find winword. Make sure that the Always
    use this program to open this file is checked and click OK.
    Reference Documents
    Note 119505.1

    I got this message when trying to use Excel 2003. I went to Microsoft's web site's community and entered the error message that you got. There was a solution offered that worked for me although I cannot remember now what it was. You might also try Microsoft's knowledge base for any possible answers for this problem. IMHO, I believe this is an Office 2003 problem and not an Acrobat problem.
    I usually find the answers to problems such as these on Microsoft's web site. Good luck.
    Ken Friedman

  • XY Graph reference to report generator issue when program is compiled

    I am using Simplicity PDF generator to add a XY Graph to a PDF report, same handle is used in Excel report and works fine. The XY Graph shows up fine when the code it run in development mode, when run as executable, the graph insert routines fail for lack of finding the temp *.bmp fle for the graph 1172. See attachments. Anyone have any idea why the loss of the handle/temp graph error?
    Solved!
    Go to Solution.
    Attachments:
    CreadePdfFrontPageWiring.jpg ‏199 KB
    ErrorReport_SN 108 Run 005e.txt ‏2 KB

    As you said, the error simply says that it can't find the file, which most likely means that the file wasn't created.
    My guess would be this - you're creating the graph in the subVIs with the + and control icons (which is presumably PDF_Generator.Writer.AddImage.vi) and the VI which is shown in the image never has its FP displayed.
    By default, LV removes the FP of all the VIs going into the EXE unless it decides it's going to need the FP. If the FP is removed then the image of the control cannot be accessed and that would presumably prevent the file from being created. The easiest way to confirm this is to create a static property node for one of the controls on the front panel. This will force LV to keep the FP when building the EXE.
    If that doesn't help, then you need to see exactly where the BMP file is supposed to be generated and see if you can log an error from there.
    Try to take over the world!

Maybe you are looking for

  • PDFs open with reader instead of Acrobat Pro

    OS: WinXP A/Reader version: 9.3.4 A/Acrobat Pro version: 7 Issue: PDFs open in the Reader and not in Acrobat Pro.  I changed the File Association to open them with Acrobat Pro and it works fine for the rest of the day, but when I log in the next day

  • Some functions don't work after OS reinstalling on Tecra S1

    Hi, I reinstalled PC I downloaded and installed all drivers. But LAN, USB and PCI flash plus network adapter are not working properly. I mean I did not succeed to install them! Do you know the reason and way how to do it? Thanks a lot! Raid

  • Serious itunes problem

    I came home the other day and tried to run itunes but it said a file was missing and to please reinstall.. i thought that was weird because i didn't touch my computer for the whole day before, and the last time i did itunes worked fine. anyway i dele

  • How to add automation libraries in multiversioned application?

    Hi All,      We have developed multiversioned application in flex4 and flex3.5. BootStrapLoader and MainApplication are build with flex4.1 and applicationWrapper is build with flex3.5. BootStarpLoader loads MainApplication and mainApplication loads a

  • Can i factory reset my imac using an external dvd drive?

    My Drive wont accept dvd discs anymore, still allows cd's though. Is it possible to do a factory reset using the osx disc on an external hard drive or will i encounter problems?