Error 7 with Report Generation Toolkit

Hi all

I am trying to generate an Excel sheet report for some readings using the "Generation of reports toolkit", but when you try to generate the report, the code generation report part is executed and gives Error (7) and there is no report is generated.

The Code I use is attached in the following link:

https://www.dropbox.com/s/9n4brimucsd0xts/report%20Generation.rar

Can I get help please?

Thanks in advance

I could download and open your compressed file.  I unpacked it in a folder.

There are many features that lead me to ask "you try to learn LabVIEW on your own, without a mentor and training and orientation?  Here are some of the things that I noticed:

  • Although a generation of .lvproj, .aliases and .lvlps project, open file reports, was empty!  Because projects have been added for LabVIEW, almost all development should be done in a project, but you don't seem to do.
  • You have an event loop (good) to manage the keys Start, Stop and report.  But instead of using Boolean control with a property and using an event "Changed value" latch, you use switch to published (which, so far, I've never used) and a mouse down event.  I guess this could work, but I've never seen this model.
  • You write an Excel report, but do not use the Excel-specific screws (for example Excel easy table).  Why or why not?  The basic idea of an Excel report, is that you create 2D text data, you want to write in Excel, then with a few simple screws, you open Excel, write the Table, and then save the report.  In particular, you do not write something that resembles the columns and rows on a worksheet (Date, time, Test, etc.).

Now to your specific questions, error 7.  Do you know what means this error?  If you click Help, choose error explain, and set 7, you will see that it means "file not found".  Well, there is a place prominent where a file is used, just at the start of your program.  I recommend that you put a probe (do you know probes?) or an indicator on the way past in the hand for a loop and see what file you are trying to open (hint - there is an error in the way you build the path, but you should be able to understand how to fix it).

Good luck.  Hope these suggestions you get on a better path.

Tags: NI Software

Similar Questions

  • Strange behavior with Report Generation Toolkit. Table does not table.

    We use a Word 2003 (.doc) document as a template for a summary of the report.  It works fine on the development PC.  It fills the fields in the document and fills the chart correctly, as shown in the picture below.

    However, he cannot even on another station.  Although the 2D table is identical and so is the software to investigate the matter, the table does not get filled correctly.  I studied using Word 2010 (.docx) as a model, with the same results.

    I was not able to understand what is different between stations 2 and why it does not work on the 2nd station.  I googled similar questions on the Web site of NOR and was only this article in the knowledge base concerning the new lines in the cell, which is not my case.

    That's what I have on the 2nd machine:

    The table that is sent to the table contains the appropriate data :

    I just found out this is a known bug, which obviously has not yet been resolved (finally... at least until LV2012SP1).

    See these threads:

    http://forums.NI.com/T5/LabVIEW/problem-with-append-table-and-Word-2010/TD-p/1268246

    and

    http://forums.NI.com/T5/LabVIEW/report-generation-MS-Word-table-bug/m-p/1605170

    I'll try the workarounds suggested and report back...

  • Move error-41112 in Report Generation Toolkit

    I have an application that executes tests, and then writes the data to Excel, at the end of each test. The problem is that the technicians use Excel to record what they did during their shift and if they are in the middle of editing a cell in Excel when a test completes, LabVIEW generates the 41112 error when you try to create the output file. Here is the description of the error:

    "The uncommitted changes appear in an active cell of an Excel worksheet. Select the cell and press the Enter key to commit the changes. »

    Just to be clear, this error occurs only when a cell is being edited as shown in the screenshot:

    I write the code that will check for this error when you try to write the output file and if this is the case, stop the cell from being edited, and then try to use the data output. The problem I'm running into is that I can't find a way to order Excel to stop the cell from being edited (is press the ENTER key in Excel). There is a method to the Excel Application through ActiveX SendKeys, but I didn't success in the use of this method to send the key INPUT to Excel. Edit the active cell does not work either. Any suggestions?

    I have a similar problem on a test installation and operators know that they cannot use Excel when a test is running. I tried a few things this weekend and realize that the vi I posted early will not work if someone is actively typing (it only works if a cell is enabled for editing, but there is no actual typing performed). Then, I modified a vi to create a new workbook and fill some cells in a new application window. I ran if you manually edit another workbook and given that the workbook was created in another window the application I have no error and the new workbook was created as expected.

    I wrote a post in the exchange of ideas LabVIEW asking to add a Boolean "opened in the new instance" entry option to the new Report.vi. You can kudo this idea in the forum to exchange ideas of LabVIEW.

    Ben64

  • form field check box control in word with report generation toolkit for Microsoft office

    Hi all

    Happy new year!

    In the word template, I insert the checkbox field. It has a bookmark name "Check1."

    Now, I try to checked or unchecked this field using the tool to generate report for Microsoft office and I couldn't. If someone now how to do? I'm using LabView 8.0

    Thanks in advance,

    Boris

    Hi all

    After I posted the question I found how to do it.

    I use the macro feature to control the box.

    Here's the diagram:

    Thank you

    Boris

  • VI LabVIEW Report Generation Toolkit elements in a TestStand sequence does not work with a LabVIEW 8.5 run-time engine

    Hi all

    I'm using LabVIEW 8.5.1 and TestStand 4.1. I did a sequence TestStand with a VI in this document, which uses items Report Generation Toolkit. On my machine I use LabVIEW and TestStand development system license. On another machine I use TestStand with basic deployment license and I chose the LabVIEW 8.5 run-time engine in the Configuration of the adapter. Everything works well except this VI with elements of Report Generation Toolkit. The error message shows that the VI is not executable. It works well only after I installed with a trial license and selected LabVIEW LabVIEW 8.5 development system in the Configuration of the adapter.

    I found other posts and a document in the knowledge base with a similar problem: http://digital.ni.com/public.nsf/allkb/8A0E6274D9BD7B1986256F62006AD402?OpenDocument but I am not no EXE files in my sequence, so I do not know how to fix mine. Someone has an idea?


  • Report Generation Toolkit compatibility with Microsoft Office 2013 and LabVIEW 2011

    Hello

    I design the 2011 Version of LabView to test solid state device and need to create test data after this unit tested.

    When I save the test data in the configuration of Excel after you run the Laview program, it created an error like "error - 41007 is is produced in NI_report.lvclass:New Report.v->... OR reports; Musr you have the LabVIEW Report Generation Toolkit for Microsoft Office installed to create this type of report. The musr toolkit also have an activated license or be in trial mode. »

    Questions: Do I need to install LabView Report Generation Toolkit for Microsoft Office on my computer? If Yes, what is the LabView Report Generation Toolkit for Microsoft Office Version. Where can I find this software?. I use Labview 2011, Windows 7, MS 2013 in the computer.

    Thank you

    Jonathan Tran

    You can try this: http://download.ni.com/evaluation/labview/ekit/other/downloader/2011RGT.exe

    From this link: http://download.ni.com/evaluation/labview/ekit/other/downloader/

  • report generation toolkit VI error when running EXE

    A VI in the Report Generation Toolkit (version 1.1.2), Excel find Application Directory.vi, will not work correctly when you run an EXE file.  'Current VI course' block returns the path of the ongoing EXE rather than the path of the Application Directory VI find Excel.  (This would be true for Word find Application Directory.vi.)

    -Joel

    Have you had a look at this knowledge base article? The error is due to exclusion of all dynamics VI.

    Gregory C.

  • Report Generation Toolkit missing VI

    LabVIEW version 8.6.1

    Report Generation Toolkit 1.13

    I just started work on an ongoing project that others have contributed to during some time.  (This is why the project being in older versions of LabVIEW)

    On my PC, apparently miss me VI "Word get ActiveX References.vi"

    I have the version 1.13 of the installed tool, just like all other machines running this code performs.  But my word.llb only contains VI

    I tried to copy just that VI in the .llb the VI is then found by the application.  But is not executable due to this error: this VI is related to a library that does not include the VI. The VI may have been removed from the library. ' Add the VI to the library or select file "unplug library.

    I also tried to replace my C:\Program NIUninstaller Instruments\LabVIEW all 8.6\vi.lib\addons\_office\ the directory with the files from a PC that worked.  Yet once, I get the same error as above.

    I tried to do a repair on my installation of the box tool.  But as far as I know, it did nothing.

    I also tried just reinstalling the Toolbox.  But since that it has been already installed, it did nothing.  I would hesitate to uninstall and reinstall the Toolbox for fear of breaking all my 8.6 projects, as well as perhaps my 2009 projects.  I don't think that he messes with my 2009 installation.  But I know the order in which things are installed can be critical in the system with several versions.  I don't know if this applies to tool boxes or not.

    This PC also has a LV 2009 SP1 installation, and this version also has the Report Generation Toolkit installed. (even if it is a different revision of the Toolbox as 1.13)

    I know that in the past, several versions of this toolbox were not compatible, which means that a single version of LabVIEW installed might have a job Report Generation Toolkit installed.  But I have been in agreement that it was no longer a problem.  Although it may not be a coincidence that none of the other boxes development runs this code are not installed LV 2009 have.

    Anyone who has encountered a similar problem and found a solution?

    Thank you.

    Before that we unified the version numbers of LabVIEW and toolkit (in 2009), there are cases where it has not changed the version number in the registry for one reason or another on a minor update.  So very well may have installed 1.1.4 and it can still say 1.1.3.  However, assuming that 1.1.4 has been installed, I can't imagine any reason why Word get ActiveX References.vi wouldn't be here.  VI lives at vi.lib\addons\_office\word.llb, so after installation from 1.1.4 to your folder of LabVIEW 8.6, check that the VI is actually there.

    D

  • Report Generation Toolkit V9.0.0: Report.vi print does not print

    Hello

    I migrated my project Labview 8.5 Report Generation Toolkit V1.1.2 to Labview report Generation Toolkit V9.0.0 2009 system.

    In this project, I use the report generation tool to print a Standard report with e bit of tables and graphs.

    The Report.vi of printing VI now offers the 41002 error with the text "invalid printer name. I, of course installed the right printer on the machine.

    I Don t one connection at the entrance of 'Printer name' string of VI, because I want to use the default printer.

    In my opinion, West one bug in the Report.vi of printing: If you don t the "printer name" input wire, the vi must use the default printer, but in this case the vi connects the entry blank chain at the entrance of the node method he calls.

    I fixed this bug, but the node method always returns the same error.

    any ideas?

    Thank you!

    Thanks for the link!

    For some reason I can´t find this specific article in the knowledge base (my browser is rerouted always to the German of ni.com version, because I'm in Austria). I tried to search for the exact title of this article and the error message string, but no result...

    I also installed Labview 8.5 and the toolboxes 'old' on my new computer in addition to Labview 2009 and the 'new' toolboxes and tested my program to 8.5. Here, I got an error mentioning the margins and I had to change the margin for printing settings, then worked.

    After reading the article, I applied the same changes to the margins in the 2009 version of my program and it works too!

    Problem solved!

    Thank you very much!

    PS:

    I wrote first of all, that West might be a bug in the new version of Report.vi printing, but I ve compared to the old version and there seems to be no bug, sorry!

    After all, I decided to stay with Labview 8.5 for now, due to another problem:

    It s not possible to "save the previous version" of LV2009 to LV8.5 directly.

    Laview grave failure, when a VI contains a structure of the event I found by looking in the "known issues", and I have a lot of report with the structures of the event!

    I must have the ability to save my projects Labview 8.0 and 8.5. The only way is to save for 8.6 and then save 8.6 to 8.5.

    That s long and nasty!

    Perhaps a future update will solve this problem (without producing new)

  • LV Report Generation Toolkit for Microsoft Office said "this VI or element belongs to a library that has expired or improperly licensed."

    I downloaded the LV Report Generation Toolkit for Microsoft Office for evaluation with LabVIEW 2010. Examples to help get a lot of errors, including "the Subvi is not executable. You must fix any errors in the Subvi before this can run VI. "and"this VI or element belongs to a library that has expired or improperly licensed. "

    I decided that I wanted to evaluate the Toolbox instead of putting an activation code during installation. Installation went well.

    How can I get the examples from this LV package to run so that I can evaluate it?

    A computer restart was costing the day the day to solve the problem.

    Installation of the toolkit does not have a reboot of the system, but it seems to need i.

  • Set the position of the cursor in the text added (to make the part of the text in index) in WORD using Report Generation Toolkit

    I would like to generate a report in WORD using the report generation toolkit.

    Whenever a text is added to the report, the program should put part of the text index. The problem I am facing with is to set the cursor position in the current location of the text.

    Any suggestions?

    Hello!
    I think that's what you wanted (see attachment).

    First, you must set position for each loop, so after adding the table, your cursor index need to increase the number of added characters. That's why I have included the text of the report, Append - to get the position of the cursor at the end.

    Indexing begins with 0, so you need to set the 3 and 7.

    Hope you get what I mean

  • Report Generation toolkit for labview 2010

    H all.

    I'm looking to download the 2010 labview report generation tool. When I proceed to download the Toolkit on the site of the national instrumnets, it says that I need LabVIEW 2011 or later in order to install it.

    Is there a version of this for labview report generation 2010 toollkit and can anyone provide a link maybe?

    Thanks for reading.

    Try this: [link removed, can be found on ni.com/downloads OR software downloads, the LabVIEW Report Generation Toolkit 2010 is available to customers with program Service Standard here: http://joule.ni.com/nidu/cds/view/p/id/3247/lang/en, other clients can communicate directly with NOR]

  • How to display the drop-down list box in MS excel by using labview report generation toolkit? pleasepost code block diagram?

    How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...

    Like this. (edition, use the reference forms instead of the reference to the worksheet)

    Ben64

  • Report Generation Toolkit link hyperlink in a table

    Having bought just Report Generation Toolkit 1.1.2 for Microsoft Office for my LabVIEW 7.1, now I want to create an HTML report that contains a table.  I want to fill the cells of the table with hypertext links to different documents.  I don't see vi in the Toolbox that do this can suggest someone please where I should be looking or the best approach to this problem?

    Hi JohnBoy,

    connection string as your data from the one table with all the tags you need of a link. In your case, your link name.

    It will be useful.
    Mike

  • Report Generation Toolkit and Application Builder

    I'm going crazy trying to get out.

    I am trying to build an EXE using Application Builder program. The program uses the Office Report Generation Toolkit.

    I tried including the dynamic screw in the project, the computer development and the CD. I still have the same problem: the application does not start Excel. It's as if the commands are going into a black hole. It's not even an error message.

    I enclose my VI report for you to view. Any help is appreciated.


Maybe you are looking for