LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

launch xml report with LabVIEW

Solved!
Go to solution

All,

 

I'm trying to find a solution to my problem and I'm hoping someone out there will have an idea for me to try.

 

My problem is that I would like to launch a .xml test report (that was created with TestStand) using LabVIEW for a user to view/print.  I have created a simple vi of listboxes for a user to select the report they wish to view and I pass out a path; the problem, is that I'm not overly sure how to launch this .xml in some sort of viewer, my idea was to use internet explorer for it's print controls, but the only function i can find to help is "Open URL in Default browser" and the error I'm seeing is attached (looks like I am sending something it doesnt like, so i'm not sure if this function is meant for what I need, because my path links to my files correctly with windows explorer).

 

A little background, I'm basically just trying to restrict the user to only view the reports and not navigating around in my directories and then adding this control to my TestStand Operator Interface (I'm using the simple interface from TestStand 2012), its as simple as that.

 

My question is 2 fold:

1) Would anyone be able to start me on the path to open an xml report in IE using LabVIEW?

2) Does anyone know of a better way to solve this issue?

 

Thanks,

 

Bill

 

 

John 3:16
0 Kudos
Message 1 of 3
(2,537 Views)
Solution
Accepted by topic author ggoatman

You Could use a .NET WebBrowser Container - believe it will display XML without issue, and you can then simply call the 'Print' method.

David Clark
CLA | CTA
IDEX Biometrics UK Ltd
Hampshire, England
0 Kudos
Message 2 of 3
(2,530 Views)

David,

 

Thanks for the solution, worked out perfectly.

 

Bill

John 3:16
0 Kudos
Message 3 of 3
(2,501 Views)