04-13-2018 07:51 AM
Today I set my Windows default printer to be a physical printer on my network, and re-tried the little VI that I had sent to you. Same results: selecting HTML report type yielded a physical print; selecting Standard report type resulted in no response from the printer. So I don't think this has anything to do with Adobe. BTW, yes, Adobe wants to generate a named PDF file, but it launches a pop-up dialog window requesting the name. And also, if Adobe's the problem, why would it work with HTML report type? (rhetorical question)
Did SnagIt work with HTML report type but not with Standard? Just curious.
I'm becoming pretty confident that the problem is with the VI I attached in message 9 of this thread. Perhaps you could substitute that into your 5-block test program and try it?
Thanks again.
04-13-2018 11:39 AM - edited 04-13-2018 11:40 AM
There is nothing wrong with the NI_Standard Report.lvclass: Print Report.vi you attached above. It appears to be identical to the normal shipping version of this VI. The 'Printout' method of the 'Report' class is what causes the report to be printed. I don't know what is peculiar about your system that is causing this method to not work correctly. I would have expected it to generate an error if something was wrong with the system, but assuming you're running the code above (that has all the VI error clusters wired together and the Simple Error Handler at the end), and you're getting no error, I really have no clue what the problem could be.
04-13-2018 01:14 PM
Thanks for looking, Darren. From your response can I conclude that you actually loaded and ran the Standard_Report_test.vi that I attached to message 6 of this thread, and that it worked on your system with Standard Report type selected?
Thanks again.
04-13-2018 01:24 PM
@Claudine_M wrote:
From your response can I conclude that you actually loaded and ran the Standard_Report_test.vi that I attached to message 6 of this thread, and that it worked on your system with Standard Report type selected?
Yup, your VI ran fine on my system, as do the shipping examples and our internal Standard Report test VIs.
04-13-2018 03:08 PM
Claudine,
Sitting in the Akron airport, I opened the VI you attached in message 6, substituted the Print Report VI you attached in Message 9, and got a one-page printout from the Snagit Printer, "trimmed" and attached. Works fine. The problem appears to be in your particular installation.
I do have LabVIEW 2015 (SP1) installed on my Work PC, so I'd be willing to repeat the Experiment, use a real HP Default Printer, on Monday ...
Bob Schor
04-16-2018 10:50 AM
I tried this again over the weekend and for some mysterious reason it started working with my physical printers (but not Adobe). Very perplexing. I was able to choose either of two hard-copy printers by wiring their names to the VI or by setting them as Windows default. Neither of these methods worked with Adobe. So it seems now the problem is somewhere in the hand-off between LabVIEW/WIndows/Adobe. I have no hope or expectation of NI ironing out this issue if it's restricted to printing to PDF.
Since I don't know what made this start working I have little confidence that it will continue working but time will tell. Today I tried the compiled program on the target system, which has a physical printer, and it printed. This meets the bare-minimum requirement for this job, so (assuming it continues to work!) I'm going to forget about it and move on.
Thanks again for looking at this.