ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to create a new worksheet in Microsoft Excel with C programming in LabWindows/CVI.
Description
Using the ExcelRpt_ApplicationNew, ExcelRpt_WorkbookNew and ExcelRpt_WorksheetNew functions in the Excel Reports Library, Microsoft Excel can be programmatically opened and a new Worksheet can be created. This example contains a user interface to allow the user to choose when Microsoft Excel is opened and when a new worksheet is created.
The Excel Reports Library is available as a part of LabWindows/CVI. The function panels can be found under C:\Program Files\National Instruments\<CVI DIR>\toolslib\activex\excel.
Relative Links: Generating Microsoft Excel Reports with LabWindows™/CVI™
Requirements
Steps to Implement or Execute Code
Additional Information or References
Front Panel
**This document has been updated to meet the current required format for the NI Code Exchange.**
Description-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hello,
I am very interrested by this example but when I am trying compiling it, I have thoses errors :
Undefined symbol '_ExcelRpt_WorksheetNew@12' referenced in "excelreportdemo.c".
Undefined symbol '_ExcelRpt_ApplicationNew@8' referenced in "excelreportdemo.c".
Undefined symbol '_ExcelRpt_WorkbookNew@8' referenced in "excelreportdemo.c".
Did someone have a solution about this problem?
ExcelRpt_WorksheetNew et al. no longer exist apparently in the referenced demo.