Create a Stand-Alone Application Including Report Generation VIs

Updated Nov 3, 2020

Report Generation VIs are part of the Report Generation Toolkit in LabVIEW and are used in programs to create and edit reports in Microsoft Word and Microsoft Excel formats. When building stand-alone applications and creating shared libraries in LabVIEW with these, you must use the Application Builder to build stand-alone applications. This article will go through how to create a stand alone application that uses Report Generation VIs using the LabVIEW Application Builder. 

When building applications with Report Generation VIs, you must complete the following steps:
  • Verify all files and VIs you use to build an application are in the LabVIEW project
  • Add the following files to the LabVIEW project by right clicking on My Computer going to Add and then File... The file paths are listed below:
    • labview\vi.lib\Utility\NIReport.llb\Word\NI_Word.lvclass if the application uses Microsoft Word
    • labview\vi.lib\Utility\NIReport.llb\Excel\NI_Excel.lvclass if the application uses Microsoft Excel.
                
  • From the Source Files page of the Application Properties or Shared Library Properties dialog box, navigate to and select the class files you added to the project. Click the right arrow button next to the Always Included list to add the class files to the application.

 
  • If the application you are building contains the MS Office Report Express VI , you must add any Microsoft Word or Microsoft Excel templates that you use to the LabVIEW project and to the application. From the Source Files page, select the template you use and click the right arrow button next to the Always Included list to add the template file to the application.
    • For example, if you are using the basic Excel template with the MS Office Report Express VI, add MSOffice_RGT_Template.xlt to the LabVIEW project and the application. The basic template files are located in the labview\templates\Report directory.
      •  Note  The default custom destination for templates is a data subdirectory of the destination directory. Do not change the custom destination for the templates you add.

 
  • If the application you are building contains the Word Add New Document VI , ensure that the version of Microsoft Office installed on the target computer is compatible with the application. Applications containing the Word Add New Document VI that you build on a computer with Office XP can run only on target computers that also have Office XP. Applications containing the Word Add New Document VI that you build on a computer with Office 2003 or 2007 can run only on target computers with either Office 2003 or Office 2007.