Read XPS File Using LabVIEW

Updated Sep 28, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Report Generation Toolkit

Operating System

  • Windows

Issue Details

Is it possible to read the content of an XPS file using LabVIEW?

Solution

XPS is a filetype created by Microsoft. NI does not have any LabVIEW innate APUI or examples that work directly with XPS files; however, there are a few workarounds that you can do to read XPS with LabVIEW:
 

  • Convert the XPS file to an excel file, then use Report Generation Toolkit to read the data.
  • Use the dotNet XPS Document API in LabVIEW. 
  • Convert the file to another file type like XML. Then, use XML VIs and Functions to manipulate the XML data using LabVIEW. 
  • Rename the .XPS file into a .zip file and then Windows will show the contents of it. When you unzip it, you will get the XML files and then extract the bits of information you need from there. 
Image_2020-06-24_11-44-37.png
Image_2020-06-24_11-45-54.png

Additional Information

Since XPS file is not owned by NI thus the support is very limited. You may need to reach out to the Microsoft team  if you want to learn more about the XPS file.