4 of 4 people found this helpful
If you haven't already found it, the PI ProcessBook Programmer Reference Guide can be found at %PIHOME%\help\en\Pipbvb.chm.
To scroll the Display downwards, use a negative number :
will move the display 315 units to the right, and 100 units down.
The correct string value for the Zoom property to 'Fit All' is "FitAll".
The above mentioned help file isn't available in the Live Library that I could see, but is accessible directly at the path mentioned, or via online help from within ProcessBook itself.
Thank you so much for such a quick response.
Will try it out asap.
I was trying out the PI ProcessBook Programmer Reference Guide and I need to Print out the Page at the click o a Button:
Public Sub Display_Print()
Dim PauseTime, Start, Finish, TotalTime
Dim x As Display
Dim Y As Display
' Dim mdisplay As Display
Set Y = Application.Displays.Open("\\klpi01\Graphics\SEB-Wellhead-Trend.pdi", True)
' Set mdisplay = Application.Displays("\\klpi01\Graphics\PM8E-PVDS.pdi", True)
'x.Zoom = "100"
'testa = x.Scroll(0, 0)
'Application.FullScreen = True
But this message keeps popping up:
Please help man.
1 of 1 people found this helpful
The PrintOut() method of the Display object takes no parameters - refer to the programmers reference guide:
Further, note that this is a method of the Display object, not the Displays object collection! The correct usage for this method in your code would be:
Dim Y As Display Set Y = Application.Displays.Open("\\klpi01\Graphics\SEB-Wellhead-Trend.pdi", True) Y.PrintOut()
Thank you so much, I just noticed and corected the Y Declaration and I'm using the "PrintTo" straight to the defined Printer Command now and it works great.
The only problem is the inability to Print "Fit to Width". If we set the page slightly over-sized, let's say 125%, then ProcesBook prints it out Vertically Centered and Truncates the Top and Bottom of the page.
I'm still trying to find a solution for this issue.
Thanks again man.