01-07-2009 03:20 AM
Hi guys,
I've done a small vi that prints a pdf-file through activex. It seemed to work fine (and showed to be quite similar to a posted vi on the forums), until i called it from another vi, that is.
I got the error "Must be a user interface", which i set through vi-properties.
I got a empty window hanging which didn't close until labview was closed, which seemed to be a timing issue, so i've added a 3 sec delay to be sure acrobats activex-control is loaded before closing it.
Now, the real problem which i cant seem to get around:
When the activex-control is called, it opens Acrobat Reader (as a separate window), and i dont want it to do that. If it has to, i atleast want to keep it minimized and/or closed afterwards.
Any ideas?
/Y
Solved! Go to Solution.
01-07-2009 03:23 AM
01-07-2009 03:31 AM
So far:
"print-test" uses my "print pdf" to write a .pdf and acrobat reader opens and never closes. If minimized it pops in front.
01-08-2009 04:07 AM
After some more "fishing the sea" (searching the internet), i found out it's a Acrobat-bug. Apparently it happened to alot of VB-people using Acrobat 8 (guess what i'm using).
I tried installing version 9, and now it's perfectly silent, no Acrobat window opens at all.
However, i'm not sure which versions will be at the users computers, so i added a small hotfix. After printing, the Appliction does a "Bring to Front" so regardless if i get the Acrobat window or not, the VI will be in front and accessible.
/Y
01-08-2009 04:20 AM