TestStand 2010 SP1
Using TestStand Integrated Automatic Printing when printing a test report, somtimes we get the following ActiveX Automation Error -2147023169 "Unknown Error" and TestStand hangs.
The only way to get the test working again is to reboot the PC
Thanks for joining the forums.
This is an unusual error as it appears the problem is with ActiveX rather than TestStand itself. There is an example piece of code online that demonstrates how to programmatically print TestStand reports using ActiveX. I would also ensure that you are using the latest version of Internet Explorer if you are using an up to date version of LabVIEW.
For further assistance do not hesitate to contact me.
I have recently installed the NI Developer Suite 2011 on a PC with win 7 and tryed to use the Automatic Printing Suppor feature fomr NI but it givesm me an error when trying to print the report. I am wondering if this add-on featrue will work with Win 7, or do you have an update for this to work with Win 7
I have recently installed the NI Developer Suite 2011 on a PC using Win 7 and tryed to use the NI TestStand Modular Automatic Printing add-on, but it gives me the following error when trying to print the report:
"The type library information for 'Microsoft XML, version 2.0' was not found.
Make sure the server is registered with the system."
I read that the TestStand Modular Automatic Printing add-on uses the DOMDocument Class of the Microsoft XML COM automation server. Is this the problem with using Win 7?
Thanks for your post. I'm not sure about this error you're having. From my research it is something that's come up before. I'm am however unsure if this is a Windows 7 issue. This document on the best practices for report generation in TestStand should be of use to you:
Let me know what you think. I'll have another look into if this is a Windows 7 only issue.
NI Applications Engineer
Looking into printing test reports from TestStand using a Win 7 PC. I reviewed the article below and would like to try it out. However, I am not sure how to get the version of MS XML and the IXMLDOMDocumentX version referenced in the Note section.
Programmatic Printing of TestStand Reports - Modular
TestStand does not have a option that allows the user to automatically print their test reports. This example provides a sequence file containing two sequences that first converts an XML report to an html file, if necessary. It then uses the Internet Explorer ActiveX server to print the html report. This pair of sequences will print all four types of TestStand reports, and is configurable to only print when desired. These sequences have been designed with modularity in mind, so that they should be able to be taken in their current form and placed in any process model that generates test reports. Also, because of this modularity, you can use only the XML conversion sequence if you wish to only convert your XML document to an html document, although this is not covered in the readme. For a more integrated approach, see the example program "Programmatic Printing of TestStand Reports".
To use this example, unzip the contents of printingsupport.zip and follow the instructions in the readme file.
Note: If you are using Windows 7, the ActiveX/COM steps ("Load the XML Report", "Load the StyleSheet", "Transform XML to HTML") in the subsequence titled "Convert XML report to HTML" may not have a reference to the correct Automation Server. Please check this subsequence and make sure that you are referencing the Automation Server "Microsoft XML, vX.X (Ver X.X)", where X.X is the version number of the Microsoft XML Automation Server on your Windows 7 machine. Also, ensure that the Object Class is DOMDocument (IXMLDOMDocumentX) where X is the version of the Object Class specified in the Module Settings.