LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying ActiveX PDF Locks Out String Control Input.

Hello,

I have an application that displays a PDF, and has a "String Control" input for my user.  Once the PDF is DISPLAYED you can no longer type in the "String Control".  My ideal solution will be some code I can execute in the background, and not ask my user to "Click Five Directions" and "Look at a Blue Moon".Smiley Very Happy

I have found some things that allow "String Control" input after displaying a PDF:
1)  Press the "Tab" key and cycle back to the original "String Control".
2)  Display a "User Dialog" (the "OK" button) after displaying the PDF and it gives control back to the "String Control".

I made a simple VI for your review.  Please download and test.  I have asked NI support, however, they are stumped right now, and need to send this bug to "R&D".

Any advise is greatly appreciated.

Thank you,

Doug

I am using Labview 8.2.
0 Kudos
Message 1 of 7
(4,026 Views)
I cannot reproduce this (the string control is working correctly).

What version of acrobat reader are you using?
Have you tried multiple documents?
Wire an indicator to the i of the while loop. Is this indicator updating
after the document is loaded?

Regards,

Wiebe.


0 Kudos
Message 2 of 7
(4,017 Views)


What version of acrobat reader are you using?
Adobe Reader 8.1.2

Have you tried multiple documents?
Yes, I have tried many PDF documents.

Wire an indicator to the i of the while loop. Is this indicator updating
after the document is loaded?
Yes, the "i" counter continues as the while loop executes...before, and after the PDF is displayed.

I cannot reproduce this (the string control is working correctly).
I sure would like to know what versions of Labview you are using, and Version of "Reader"/"Acrobat".

Thanks,

Doug

0 Kudos
Message 3 of 7
(4,012 Views)
Doug,
 
I can repeat your problem on my laptop (Vista32, LabVIEW 8.5, Adobe 8.1.2).
 
Work around attached.
 
George Zou
 
George Zou
Message 4 of 7
(4,006 Views)
I will have to upgrade from LV 8.2 to LV 8.5 to see your report.  I have LV 8.5 but have been to lazy to install.  It seems everytime I upgrade all my custom VIs stop working. 

Now I have a reason to upgrade.  I'll report back after I have tested in LV 8.5.

Thanks,

Doug
0 Kudos
Message 5 of 7
(4,003 Views)
Oops.  Sorry.
 
The workaround should work in 8.2 either.
 
I saved it to previous version (8.2).
 
George Zou
 
George Zou
Message 6 of 7
(3,997 Views)
GEORGE ZOU!  OUTSTANDING!  IT WORKS!Smiley Very Happy

The key ingredient was "APP" "BRING TO FRONT".  Located on the block diagram --> Application Control --> INVOKE NODE will give an "APP", change it to "BRING TO FRONT".

Excellent work George!

Thank you very much!

Doug
Message 7 of 7
(3,969 Views)