LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDF Display Offset

The attached VI displays a .PDF file in an Active-X control.

If the Windows display setting scale is set to 100%, it seems to work fine.

paul_cardinale_1-1670446490786.png

 

But if it's set to something other than 100%, then the first time a .pdf is displayed, it will be offset.

paul_cardinale_0-1670446468207.png

 

Subsequent loads will be OK.

I've got a kludgy workaround that loads the file twice on the first pass.  Is there a better way to get this Active-X control to set its origin correctly?

Also, is there a way for a VI to determine what the display scaling is?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 2
(581 Views)

Hello,

 

If your application need not be scaled based on Windows scale, then try out the steps in the following KB, https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004A7eSAE&l=en-IN

 

With this update your VI works fine without loading twice even for the first time.

 

Thanks,

Mano Prabha

0 Kudos
Message 2 of 2
(477 Views)