Report Generation Toolkit Excel Vi's do not run after creating an executable​. What am I missing?

I have labview 8.5 and Report Generation Toolkit version 1.1.2.   My vi works fine during development. When I make an executable or an installer the excel vi's do not work. I have seen this question posted before but it has always been for earlier revisions and the answers do not seem to apply with 8.5 and 1.1.2. 

Hello ajh,
You will have to include Dynamic VIs in the executable you build. The following link has more information:
http://digital.ni.com/public.nsf/allkb/C38CE3F3054​2D65B86256F0E00740DD8
Prashant.

Similar Messages

  • Report Generation Toolkit Excel errors and Libraries, Classes

    Hello All,
    I'm using the Report Generation toolkit Excel functions to handle some data and create graphs.  I'm running into problems with the Add Worksheet.vi.  At the very start of the vi, it closes the reference to Shapes.  Occasionally, the Close Ref will throw an error.  I haven't pinned down the exact cause yet (probably an invalid reference).  The error itself wouldn't be a problem.  Under other circumstances I would choose to ignore it and continue on.  The problem is, this is stored in a Class Library controlled by NI.
    Solutions I've tried without success:
    1.) Make changes, and save the new vi with another name - can't do it because it's encapsulated and the Library is password protected.
    2.) Install toolkit in something other than the default folder, so I can make changes and put it under Source Control - installer doesn't allow a new path to be entered.
    3.) Change the vi where it is.  This works until I move the source to another computer or I update Labview.  At that point I lose all my changes.
    Maybe it's just my inexperience with Classes, but I just don't see an elegant solution to this.  Ultimately I'd like to copy the library off to somewhere else and put it under Source Control so I can make changes and additions to it (NI folks - providing a password to unlock the lib would be helpful...).  Does anyone have suggestions on how I can accomplish this?
    Thanks in Advance,
    Doug

    Hi Ben,
    Sorry about the first post.  After re-reading it, it sounds more like a frustrated rant than a request for help.
    I've attached a simplified vi to try to illustrate the problem I'm having.  I'm running Excel 2007.  Please open the vi, then open Excel Add Worksheet.vi.  At the start of the vi, Close Ref for Excel.Shapes occasionally throws an error.  So far, I have not been able to consistently reproduce the error, so I can't really troubleshoot it.  As I recall, the error code is 1045.  The error is carried through the rest of the vi, causing invalid references to be written to Excel._Worksheet and Excel.Shapes, going out to NI_report.ctl.
    So, here are the issues I'm running into (other than the error itself):
    1.)Short of closing and reopening the file, there is no way to recover from the error.  After the error, there is an invalid reference in Excel._Worksheet.  There is no vi available to regenerate references in NI_report.ctl.  I could easily write a vi to start from Excel._Application and re-read them, but because NI_report.ctl is in a Class library (controlled and passworded by NI), I can't add the vi to the library.
    2.) I found that I could ignore the error by wiring around it.  If I disconnect Error Out from Excel.Shapes Close Ref and wire Error In from Excel.Sheets.Count to the Error In of the Close Ref, everything works fine.  Under other circumstances, I'd save this with a new vi name (because functionality changed) and continue on.  But, because the vi is part of a Class library (controlled and passworded by NI), I can't do this.  I can save the vi with the modifications (because Excel Add Worksheet.vi is not passworded), but if I pass the source off to someone else, they will have to make the same changes on their installation of the NI Report Generation Toolkit.
    Again, I can't reproduce the error with any regularity.  I've run the example vi I provided a few times and everything seems to work fine.  If I come up with something, I'll repost.  If you (or anyone) has an idea of what could be failing or if they've seen the problem, I'd appreciate a comment.
    Thanks again,
    Doug
    Attachments:
    Excel Fail.vi ‏15 KB

  • Report generation toolkit excel, decimal?

    Hello!
    I have problem with the report generation toolkit excel!
    I only gets 3 decimals in excel?
    Ex. In labview = 0.0458943 when i send it to excel = 0.046.
    I use Excel easy table.vi to transfer my array, should I use someting else?
    Ive already tryid to increase the decimal in excel but i doesent work.
    Labview 8.6
    Report generation toolkit ev 113 

    Johan1300,
    It sounds like you are writing a 2-D Array of doubles to excel.  The Excel Easy Table.vi converts numerics to strings before writing data to excel.  It is written to always use 3 decimal places.  You need to convert your 2-D array of doubles to strings before writing the info to excel.  Here are a couple of ways to make the conversion.  The top method is based on how the Excel Easy Table.vi makes the conversion.  Note that in both examples the format string constant sets the number of decimal places to 8.
    Message Edited by Wayne.C on 04-08-2009 09:12 AM
    Attachments:
    2D Doubles to 2D String.png ‏6 KB

  • Report generation Toolkit: Excel report functions error -2146827284

    Hi,
    I'm trying to create an automated report using excel functions from the report generation toolkit in labVIEW. When I run the program that generates the report first time round (the report consists of several worksheets, each worksheet is added onto the report at a diffferent state in a state machine) it always works fine and no error is generated. However, when I run the program again it will infrequently (sometimes it does, other times it will not) generate the undefined error -2146827284, this is coming from one of the excel report functions and it cannot find it on highlight execution mode.
    Does anyone know anything about this error, why it occurs, how to prevent it?
    I would appreciate any help.
    Thanks,
    Rowan

    mebels_cti wrote:
    Found something that helped; https://forums.ni.com/t5/LabVIEW/Error-code-quot-2146827284-quot-when-trying-to-open-an-Excel/m-p/20...
    Excel still open
    So I added this;
    You should use the Application Quit method instead of killing the task. I doubt this is the cause of your issue.
    Ben64

  • LabVIEW Report Generation Toolkit in the application does not work

    I have LabVIEW7.1 and LabVIEW Report Generation Toolkit for Microsoft Office 1.0.1, which was updated after installed. I made a VI in LabVIEW7.1 enviroment using the Report Generation Toolkit and it works very well. After the VI was build an application.exe and installed even in the same PC, the Report Generation Toolkit didn't work. Excel that should pops-up does not do anything.
    the office i used is office xp. would you like to help me?
    thank you very much.
    Jing

    When you build the application, you have to include as "Dynamic vi" in Source file tab the vi:
    _Word Dynamic VIs.vi. from _wordsub.llb
    _Excel Dynamic vis.vi from -Excelsub.llb
    in the following library
    ...\National Instruments\LabVIEW 7.1\vi.lib\addons\_office\"
    Refer to the following discussion thread
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000053460000&ECategory=LabVIEW.LabVIEW+General

  • Mail not working after using migration assistant - what am I missing?

    Mail not working after using migration assistant - what am I missing?

    The mailbox list is divided into categories with headings in caps, such as ON MY MAC. When you hover the cursor over one of those headings (except for MAILBOXES), you should see the word Show or Hide on the right. Click Show. The  MAILBOXES category can't be hidden.
    In each category, the mailboxes are arranged in groups, such as Inbox. To the left of each group is a small disclosure triangle. If the triangle points to the right, click it so that it points down.

  • Report Generation Toolkit 打开现有的Excel 文件

    用activeX打开excel我会,但是属性太复杂。不想用ActiveX的方式。
    我有LabVIEW Report Generation Toolkit for Microsoft Office;
    里面的例子都是生成新的excel 文件
    如果要打开现有的excel文件,然后对里面的资料进行操作,可以透过这个toolkit实现吗?

    这个论坛没有人气吗?

  • OC4J not running after creating workspace and projects.

    Created one workspace and added six projects. Added PostGes jar to library manager. Before doing this, the OC4J would run a test application successfully. After creating the workspace and project, I created another simple workspace with two JSP, on linked to the other. When trying to run this project get the following:
    Apr 17, 2008 10:51:53 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Apr 17, 2008 10:51:53 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Apr 17, 2008 10:51:55 AM oracle.j2ee.util.LoggingUtils logAndReturnMessage
    WARNING: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
    08/04/17 10:51:55 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
    08/04/17 10:51:55 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2072)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2017)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
         at com.evermind.server.Application.setConfig(Application.java:438)
         at com.evermind.server.Application.setConfig(Application.java:339)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:330)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2053)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : org.postgresql.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:283)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:108)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: org.postgresql.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/Jdeveloper10/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\Jdeveloper10\j2ee\home\oc4j.jar
    Remove the posgres jar from the library manager and still not able to run simple two page applications.
    All the projects in the other workspace compile fine. The prolblem is that now I am not able to use the internal OC4J. I remove the workspace with the five projects, and the JARs and the two page app will not run.
    The OC4J is running when launched from the IDE, ti just can find the pages.
    New install of JDEV and the two page app will run fine. Add two user two user libraries and the app will not run.
    Thank you,
    Ben Carter

    Do you have a database connection to postgress defined in JDeveloper?
    JDev might be picking this up and trying to add a datasource for it to the embedded OC4J - so try removing it, or alternatively add the postgress JDBC driver jar files to the libraries node under tools->embedded OC4J preferences.

  • Report Generation Toolkit - Excel Templates

    Hi,  I've created an Excel Template with a single formatted
    worksheet.  I need to generate a report with a varying number of
    worksheets but all based on the same template.  I tried it using
    the ADD WORKSHEET vi but this just adds an unformatted worksheet. 
    How can I use the template's worksheet format for each worksheet that
    gets added?
    Thanks,
    Charlie

    Hey Guys,
      I know this post if kind of old but I hope maybe one of you can help me out.  I'm using an invoke node similar to what is above to print out an Excel spreadsheet to the default printer.  My issue is that when I try to print from the spreadsheet from the executable, the executable crashes.  I know it is that invoke node. The reason why I say that is because until recently I had two development computers, one running on Windows 7 LabVIEW 2010, and one running on Windows XP LabVIEW2010.  The original .exe was built with the XP machine, when I tried to make some changes with the Windows 7 machine and open the project it would say that there was a missing connection to the invoke node even though I did not touch that part of the application. I would then remove the invoke node, add it again and it would clear the error for whatever reason. I would then build the .exe with the Windows 7 machine and when it would run, the application would crash at the point where it goes to print the spreadsheet.  I got around this by building the .exe with the Windows XP machine, and it worked fine without any issues. However, my Windows XP machine cra**ed out so i'm no longer able to build the .exe on the XP machine .  I needed to make some changes to the .exe not anything involving this section of the code and for whatever reason when the application goes to print it crashes.  I get some criptic crash report from Windows that is pretty much useless.  I think its a Windows thing. This was workign correctly though until I did a build on the Windows 7 machine.
    Attachments:
    Printout Invoke Node Excel.png ‏70 KB
    crash1.png ‏22 KB
    crash2.png ‏23 KB

  • Need help with Report Generation Toolkit: Excel Set Cell Format.vi

    Hi people,
    I've been searching and found this old thread of someone asking what is the input parameter "Number format". And I dont know what should I put in there. I've tried so many possibilities, but nothing works so far, such as:
    0,0
    0,?
    0,#
    #,0
    ?,0
    and also with @, doesnt works. Where would I find help about this parameter?
    I'm using Excel2003, german version, thus local decimal separator is a comma.
    I also found this help from NI, but seems doesnt help me either. Do I miss something important?
    thanks,
    Yan. 

    Hi,
    I've used your suggestion and some numbers in excel doesnt need to get "right click, change to numbers" anymore (green indicators on the left-top side in some cells are gone). But, I think its still not a number, because I cant use a simple formula, such as in cell A10 I type "= A1/2" (cell A10 equals cell A1 divided with 2) . I got error which says its not a number.
    Well, but other thing is found, any format-string I put in the input of Excel Set Cell Format.vi, such as #,########, will be shown the same as "customize #,########" if I right click in a cell in excel and click "Zellen formatieren" (formatting cell). But however, the numbers are still depends on the input of the format I put in the Append Table to Report.vi.
    regards,
    Yan.

  • Remove worksheet VI - Report Generation Toolkit (LabVIEW 8.6)

    Hello,
    I am using the Report Generation Toolkit that ships with LabVIEW 8.6 for creating an Excel report. I am looking for a way to delete spreadsheets in a workbook. I did come across couple of message posts in the forum which mentioned about worksheet removal using some VIs that were shipped with previous version of LabVIEW. I could not find the built-in VIs in newer version of report generation toolkit (the one with LabVIEW 8.6).
    Is there a way I could remove worksheets in LabVIEW 8.6?
    Thank you.

    Assuming you're using Report Generation Toolkit 1.1.4 with LabVIEW 8.6, you can use the following VI (in the Report Generation > Excel Specific > Excel Advanced subpalette) to gain access to your current Worksheet and/or Sheets object:
    Note that this VI is not available in Report Generation Toolkit 1.1.3.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Suggestion about Report Generation Toolkit

    I'm adding report generation capabilities to a labview product test application.  The report will be 2-4 pages long with text and plots.  For other applications, I've used Word Templates in the past using VBA and Visual Basis 6.   I had been planning to use the Report Generation Toolkit, but when I tried to run the examples Labview doesn't find the installation of Office, (I'm using Windows Vista).  I've already read other posts about this particular problem and other issues with the Report Generation Toolkit for Microsoft Office, including upgrading to Office 2007 and beyond and I'm beginning to wonder if there might be a better longterm solution than the Report Generation using Microsoft Office.
    The two alternatives that I'm considering are HTML, and Simplicity AI's PDF toolkit (free),
       http://www.simplicityai.co.uk/products_services/products/pdftoolkit/
    which I still have to investigate.  I figure I could always generate in HTML and then print to PDF using something like PDFcreator (free). 
    If anyone has any comments/reviews/suggestions about the report generation from Labview, I'd appreciate hearing them.

    Hello PointOnePa,
    What examples were you trying to run? Here's a good example on how to create report in Excel
    http://zone.ni.com/devzone/cda/epd/p/id/1001
    Which version of LabVIEW and Report Gen you do you have? For Reort Gen 2009, it offers support for MS Office 2007/2003/XP
    http://digital.ni.com/public.nsf/allkb/45E349F79A55EAE6862575EF00614134  
    Andy Chang
    National Instruments
    LabVIEW Control Design and Simulation

  • Problem for Report Generation Toolkit for excel 2000

    Hi all,
    Now I am Developing my program with Report Generation Toolkit 1.1.0 and Labview 7.1.
    In my computer I am using Excel XP, and there is not any problem. But when I build to
    a exe file, and use in a computer with Excel 2000, it didn't work.
    And I try to check the source file in this computer, I found that there any some connection
    error. And this is caused by the active X class. As I know Excel 2000 is using Microsoft Excel
    Object Library 9.0, but i cannot find it in the list of active x. So it is using Microsoft Excel Object
    Library with a very old verison. So in the property node there are missing functions, such as the
    UsedRange in _Worksheet in the Excel_Get_Range.vi. However, In VBA, I can find the 9.0 Library.
    Is it the problem of 9.0 library? How can I solve the problem? How can I upgrade the library to 10.0?
    Thanks.
    Regard,
    Ryan

    Hi Mike,
    Since my program is for all the staff in office, everyone may use it.
    I cannot call the whole office to upgrade the excel to XP.
    And I think Report Generation Toolkit is alway support Excel 2000,
    since the old version of it is not support for Excel XP.
    Regard,
    Ryan

  • REPORT GENERATION TOOLKIT AND EXCEL

    i have a problem with report generation toolkit and excel
    the problem is:
    i must read & write from a excel worksheet when this is open but when i using the report generation the worksheet is open another time
    have some solution for this problem?
    sorry for my english

    You need to close Exel when before your VI is running. Excel can not have two instances running at the same time.
    Joe

  • Report generation toolkit does not work

    Hello,
    The report generation toolkit does not work.
    It seems to point to the 'Generate Report Data Members.ctl'.
    I suppose it has something to do with the wrong set of active X-controls ?
    I work with Win 2000 and Office XP
    How can i solve this problem ?
    Thanks in advance !
    Regards
    Christine

    Hello Julien,
    Sorry for the late answer
    I become a broken arrow, when openening the example Sample Report (Excel).vi
    Searching further for the cause of the error it brings me to the sub vi tables.
    Print screens in attachment
    Regards
    Christine
    Attachments:
    error Ni Reports.doc ‏67 KB

Maybe you are looking for

  • Creating text file from SQL with adding counter in Filename.

    Hi, I have a requirement for creating the Tesxt files from Oracle DB which i can achieve by ODISQLUNLOAD. But tricky part is that i want have a file name+ counter such that Counter should start with 1 for the first file of the day, then 2,... and res

  • Button asset not visible in button.

    Details: fifteen buttons, each shows (button asset) a single frame of the target video for that button. First four menus were fine, but starting with the last button on menu five, the video is no longer visible in the button when programmed as the as

  • U310 jumpy touchpad with pluggen ac\dc adapter

    u310 jumpy touchpad with pluggen ac\dc adapter - impossible to work with notebook I have this very strange problem. Ever since getting a replacement AC adapter for my laptop, the mouse has started going all crazy. If the adapter is unplugged, the mou

  • Installing Lightroom 4 from CD onto imac error

    I have just bought Lightroom 4 on CD and have ben trying to install on my imac with OSX Snow Leopard 10.6 I believe. I When I try to start the install, I get the following - The operation couldn't be completed (com.apple.installer.page controller err

  • Top 10 customers

    Hi, I have 7 branches and n number of customers in each branch , how can i get only top 10 customers net sale value from the tables into the report. thank you Edited by: 960991 on Oct 9, 2012 6:30 AM Edited by: 960991 on Oct 9, 2012 6:56 AM