Report Generation Toolkit - Write cells to already open Excel file.

Greetings,
Does anyone know a way to write numeric cell values to a worksheet in an Excel
spreadsheet that is already in memory using the Report Generation Toolkit?
I've found that if the spreadsheet is already in memory and the user has made
changes to it without saving the changes, when LabVIEW opens the reference to
the report, the user’s changes are overwritten if they have not been saved
since LabVIEW opens the last saved version of the spreadsheet.  I'm aware
that there is a setting to "display alerts" to the user but I'd
rather not do this.  I would like simply to obtain a reference to the open
spreadsheet without re-opening the spreadsheet file.
Thanks in advance!

Space_Flight wrote:
> Greetings,
> Does anyone know a way to write numeric cell values to a worksheet in an Excel
> spreadsheet that is already in memory using the Report Generation Toolkit?
>
> I've found that if the spreadsheet is already in memory and the user has made
> changes to it without saving the changes, when LabVIEW opens the reference to
> the report, the user?s changes are overwritten if they have not been saved
> since LabVIEW opens the last saved version of the spreadsheet.  I'm aware
> that there is a setting to "display alerts" to the user but I'd
> rather not do this.  I would like simply to obtain a reference to the open
> spreadsheet without re-opening the spreadsheet file.
>
> Thanks in advance!
Space_Flight:
I do not believe this is possible to do with the report generation VIs
(although I have VERY little experience with these. If you really had
to do it this way, you could use activeX controls to manually right
values to cells in an open excel spreadsheet, but this can get rather
cumbersome. Are users changing the values in the spreadsheet while
your program is running? Is there maybe a way around this?
-Ray

Similar Messages

  • .tmp file is created by NI Report generation toolkit for logging data to MS Excel

    Hi,
    I am getting ".tmp" file while logging data to MS Excel by NI Report generation toolkit. Instead of assigned file name, toolkit is generating a junk value with .tmp extension, but I can able to open this .tmp file with MS Excel.
    Can anyone help to solve this issue?
    Thanks,
    Thirumala

    Hi Thirumala,
    You may experience issues when you try to save a Microsoft Excel file if one or more of the following conditions are true:
    1. You save an Excel file to a network drive where you have restricted permissions.
    2. You save an Excel file to a location that does not have sufficient drive space.
    3. The connection to the Excel file has been lost.
    4. There is a conflict with an antivirus software program.
    5. You save an Excel file that is shared.
    6. The 218-character path limitation has been exceeded when you save an Excel file.
    7. The Transition Formula Evaluation feature is turned on in Excel.
    8. The file was created from a template that contains embedded objects.
    Hope this will help to solve your problem.
    Thanks,
    Sanad MM

  • Report Generation Toolkit failure with Win 7 and Labview 2013

    I recently had my computer updated to Windows 7 and am now seeing a problem with the Report Generation toolkit (version 2013) when working with Excel files.  If I try to run the New Report.vi with report type Excel selected I get  error -2146777998.  Doing the same thing with Word selected eventually opens Word, although this takes about ten seconds, but it does not generate an error.  Selecting Standard Report or HTML also run without errors.
    I've researched this error on line but I keep ending up .NET and C# forums where everything goes over my head. Has anybody got any suggestions?
    Solved!
    Go to Solution.

    I found the solution to this particular source of error code -2146777998. There are two template files that reside in C:\Program Files (x86)\National Instruments\LabVIEW 2013\templates\Report  by the name of MSOffice_RGT_Template.dot and MSOffice_RGT_Template.xlt.  The problem came down to that these templates got corrupted somehow during the fresh install. As soon as I replaced them with versions from another machine the problem disappeared.
    Just as a side note, I discovered the problem by kicking off the MS Office Report Express vi and out came a much clearer message that aimed me at the templates. Not quite sure why that message isn't echoed into the individual subvi's on the pallette, but life is a mystery.

  • Add Report Generation toolkit for Microsoft Office in exe

    Hi
    I am having a problem. I am using LabVIEW 8.20, Report Generation Toolkit for Microsoft Office 1.1.2 and Microsoft Excel 2003. My OS is Windows XP (SP )
    I want to build the vi attached below into an exe. The vis that I used are from addons>>_office>>excel.llb. I follow the suggestion found in the link below and add in all the files in excel.llb into my project so that it can be added into the executable as dynamic vis. However, some vis in excel.llb cannot be added into my project. After I have add all vis that can be added into the project, I build an application (exe) with the vi below as the Main vi and all other added vis (from excel.llb) as dynamic vis. After that, I build and run this exe on the same PC. I am unable to run it.
    This vi will save datas when I click on the stop button. After I click on the stop button, a window will pop-up and prompt me to select which directory to save the vi. When I run the exe, I type in test.xls (for example) but the file saved is a picture and not an excel file. If I just run the vi instead of the exe, Excel will open and datas and graph will be displayed in Excel.
    May I know where did I done wrong??
    How do I use the Report Generation Toolkit in an executable with Microsoft Excel?
    http://digital.ni.com/public.nsf/websearch/C38CE3F30542D65B86256F0E00740DD8?OpenDocument
    Thank you & Regards
    Lee
    Attachments:
    Self-Regulating.vi ‏132 KB
    Untitled Project 1.zip ‏3841 KB

    Hi centerbolt,
    Thank you for your reply. I have tried adding in just that dynamic vi found in Excel Library and my main vi but it still cannot work. Is there anything that I need to look out as well?? [View attached picture.]
    Thank you & Regards
    Lee
    Attachments:
    added.JPG ‏92 KB

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

  • Distribution with the report generation toolkit

    I am using the LabView report generation toolkit to put data into an
    Excell spreadsheet. It works fine in Labview and the executable works
    on my development PC, but not on a client PC - it opens a template XLS
    spreadsheet OK but does not insert the data.
    I have included the required dynamic vis in the application builder and checked 'NI Reports Support' in the installer settings.
    LabView 7.1
    Thanks,
    Jim/.

    Is it a different version of Excel?  I have had problems with different versions of Microsoft Office products not connecting or behaving correctly.  That it opens the template seems to indicte that this is probably not the problem, but it is something to check.  There have been many posts about that problem here, so if that is what is going on, the solutions may be here as well.
    Let us know what you find.
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Report Generation Toolkit Evaluation doesn't work

    Hello,
    I tried to insert data into an Excel file but it seems the Report Generation Toolkit Evaluation doesn't work.
    Attached file my VI.
    LV is saying i have to activate the product in order to run it. An error occurs on each Report Generation subVI, which involve i never could test my application.
    I went on Help/Activate Labview component and the evalution is well activate.
    Someone has an idea why the evaluation version doesn't run Report Generation Toolkit ? A solution asap please...
    PS : I still have 15 days evaluation left.
    Solved!
    Go to Solution.
    Attachments:
    Test_insert_data.vi ‏9 KB
    Test.xls ‏14 KB

    UP
    With message failure
    Attachments:
    Sans titre.JPG ‏50 KB

  • Does the Report Generation Toolkit support Office 2007?

    With the hot-out-of-the-oven Office 2007, Microsoft has done a complete overhaul of the Office environment that we all have spent many years learning to perfection (well.. almost). Lucky those who got a head start as part of the Office Beta program.
    Well, NI claims that the current version of the LabVIEW Report Generation Toolkit supports "Microsoft Office 2000 (Word, Excel, and Graph) or later" and therefore literally also the new Office 2007.
    I doubt that the ActiveX API has remained unchanged when developing Office 2007, so let's use this thread to uncover the experience you have with calling Office 2007 applications using the LabVIEW Report Generation Toolkit.
    Anyone???
    - Philip Courtois, Thinkbot Solutions

    We are currently working on a maintenance release for the Report Generation Toolkit to support Office 2007.  You can install the current toolkit with Office 2007, but you will have some problems.  If you copy the four LLBs from the Compatibility\Office 2003\vi.lib\addons\_office folder on your Report Generation Toolkit CD to the corresponding vi.lib\addons\_office location in your LabVIEW folder after installing the toolkit, things will work for the most part.  But you won't have 100% compatibility until the maintenance release is done.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • 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

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Can i open a existing report using a report generation toolkit

    Hello All,
    Suppose I create a new excel report today and close the program, Tomorrow I open the same program and instead of creating a new excel file, i need to update the test results data into the excel file which was created yesterday, is this possible.
    I am confused because there is no option called Open report in report generation toolkit, it just has create new report option.
    Probably NI Guys can work on this...sorry if it is a;lready existing?
    Is there any method to open a existing report?
    Pls help.....
    Thanks
    Solved!
    Go to Solution.

    Hi,
    I have a similar problem. I'd like to use Report Generation Toolkit to enter data into some cells in the active worksheet of the active workbook but it seems impossible?! The user has in beforehand opened the desireed workbook and activated the desired worksheet. I use the 'New Report' VI with the template input set as the path of the active workbook (some self-made ActiveX calls to get the path). When this VI is run, howevere, the excel file is sort of re-opened and another worksheet becomes the active one.
    I tried to make a customized copy of New Report.vi, New Report subVI.vi and Excel_Open_Workbook.vi so that the Report object works with the currently active workbook and worksheet, but I failed due to my lack of knowledge in LV classes and such things. It would've been an ugly solution anyway to have custom low-level VIs that does not follow when the RepGen Toolkit develops in the future.
    Best regards,
    Andreas Nilsson

  • Open an existing Excel file created by Report Generation Toolkit

    How would I open an existing Excel file that has been created by the LabVIEW Report Generation Toolkit?
    Let me explain my application. I have made a test program to collect data on a device. Each time I run the program I want it to append a new row onto an existing data file. Since the tests I do are sometimes over a period of days, I cannot keep the program open and running continuously. So I have to open an existing file and append the new data to it. In technical terms, what I need is to get the 'report out' reference to the existing Excel data file without losing the data that is already there.

    For info on accessing Excel do a search in the examples for the word "Excel" you will get an example that shows how to open a spreadsheet and manipulate the data. This should get you started.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Unable to write an image to excel with report generation toolkit

    I am unable to write an image to excel with the report generation toolkit. The VI works fine for word, but when I select Excel the speadsheet pens but remains blank.

    Ranjeet
    I am using Labview 2013 or 8.0, but here is an image of the very simple test VI.
    Regards
    Steve

  • How to write data which i am reading from spectrum in excel using Report Generation toolkit.

    Hello All,
     I wrote code for reading data from Spectrum analyzer and also for writing in excel using report generation toolkit. When i run program values get read and excel sheet opens also but i cant see anything written in it.
    So if anyone can help me in this i will be very gald. I am attaching screenshot of my program and also attaching .vi file. As i am using drivers you can see some of vi.
    Thanking You,
    Pallavi 
    Solved!
    Go to Solution.
    Attachments:
    Channel_Power.jpg ‏123 KB
    Channel Power_Toolkit.vi ‏64 KB

    Hi Palavi,
    you try to select a specific worksheet what is not existing, therefore just select "Channel Power" (and not Power Channel) and it should work for you.
    Regards,
    Tobias

  • Report generation toolkit and signal express user step : problem of closing reference in "Stop" event

    Hi all,
    I'm trying to make a package of Vis to easily make Excel reports with Signal Express. I'm working on LabVIEW 8.2.1.
    I'm using the report generation toolkit, so I build a .llb from my project which contains all the hierarchy of my steps, but also the hierarchy of dynamic VIs called.
    I have made some steps, like "Open Workbook", "Write Data", etc.
    My steps run well, excepts one step : "Close Workbook".
    If my "Close Workbook" step is firing on "Run" Signal Express event, I have no error, so my reference is properly closed.
    But if my "Close Workbook" step is firing on "Stop" Signal Express event, I have an error "1", from "Generate Report Objectrepository.vi".
    I feel that I'm trying to use a reference which has been killed in the "Stop" step...
    I would like to know what exactly do Signal Express on "Stop" event and why my close function does'nt run well.
    Thanks,
    Callahan

    Hi Callahan,
    SignalExpress (SE for short) does the following on the Stop event:
    1. Takes the list of parameters that SE found on your VI's connector pane, and sets the values that the user set from the "Run LabVIEW VI" configuration page, if any.
    2. Then tells the VI that SE is running the Stop event by setting the Enum found on your VI's front panel. This in turn should produce some boolean values telling your VI to execute the Stop case.
    3. The VI is then run, with those values and states.
    4. SE checks to see if any errors where returned.
    5. Since this is the Stop event, SE releases the reference to the VI which it possesses.
    Questions for you would be, is the reference to your Workbook linked to a control on your connector pane, or held in a uninitialized Shift Register. If it's held in a Shift Register, SE would not be aware of it, and would not be able to affect that reference.
    Hope that helps. Feel free to post your LLB if it doesn't.
    Phil

Maybe you are looking for