OpenXmlForLV 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package OpenXmlForLV --version 1.0.1
NuGet\Install-Package OpenXmlForLV -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OpenXmlForLV" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenXmlForLV --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OpenXmlForLV, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OpenXmlForLV as a Cake Addin #addin nuget:?package=OpenXmlForLV&version=1.0.1 // Install OpenXmlForLV as a Cake Tool #tool nuget:?package=OpenXmlForLV&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OpenXmlForLV
Summary
A simplified version of Excel operation using Microsoft's OpenXML, specifically used for LabVIEW applications which only requires a small set of Excel functionalities to generate some data.
- set value to a specified cell, only 4 kinds of data, string, bool, number and date.
- create fill info usually with foreground RGB color and background indexed color
- create font info
- create cell format with specified fill info and font info, also with horizental alignment
- set cell format into some cells
- best fit the cell's column width
That's all, LabVIEW applications usually require only above functionalities, no need to delete fill, font or cell format.
This library uses OpenDocument DLL, very fast and efficient, higher performance than using Excel Interop.
How to use
Just include OpenXmlForLV.dll in your project of .net type
There is an .net application OpenXmlForLV.WpfApp.exe to show the UI and output of OpenXmlForLV.dll
There is an LabVIEW project ExcelForLV.lvproj to show how to use OpenXmlForLV
how to use in LabVIEW
- unzip the zip package under sub folder 'labview' to anywhere
- unzip the zip package under sub folder 'assemblies' to C:\Windows (or anywhere if you changed the reference path in LabVIEW VI)
- open the VI: ExcelForLVExample.vi and run, study the VI to see how it works
Tricks
define the infrastructure with best matches to those objects in OpenDocument, like
- Workbook
- WorksheetStyle
- CellFormat
- Fill
- Font
- Worksheets
- Rows
- Cells
- Columns
- Rows
- WorksheetStyle
Author
Patrick Gamp
For technique support or business, please call the cell phone ++0086-18603016232, email: patrickgamp@hotmail.com, WeChat id is same to the cell phone number
Published date
October 26, 2023
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- DocumentFormat.OpenXml (>= 2.20.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added how to setup in LabVIEW