LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

activex

Solved!
Go to solution

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 1 of 5
(2,902 Views)
Please post what you have did so for or just give a screenshot
0 Kudos
Message 2 of 5
(2,899 Views)

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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Download All
0 Kudos
Message 3 of 5
(2,895 Views)
Solution
Accepted by topic author Yamaeda

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 4 of 5
(2,849 Views)
Excellent. Thanks for the update. Tossed you five (Sorry now kudos).  Smiley Wink
0 Kudos
Message 5 of 5
(2,845 Views)