Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Open a Display (pdi) in a. PIW with vba

$
0
0
Friends, I am trying to use the method:


Displays.Open(FileName,OpenFlags)

 

to open a display that is in my PI ProcessBook (using vba), but I could not, I've read and searched, I have tried in various ways and I could, always gives me automation error.

 

I tried in this way

 

Dim d1 As Display
    
Set d1 = Application.Displays.Open("D:\Carpeta\Sub Carpeta\MiProcessBook.PIW!AB", True)

 

and this one


Set d1 = Application.Displays.Open("D:\Carpeta\Sub Carpeta\MiProcessBook.PIW!AB.pdi", True)

 

and many other forms but no, I have not been able

 

please if someone could help me

 

thanks


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>