I have several processbook displays that management wants to print, but only wants to print a designated area of the display. I assume this can be done with some scripting. Does anyone have any ideas?
Is there any other requirement other than it has to be a portion of the display? Does a screenshot of the required area suffice? Let me know if I am missing something...
No other requirement. Screenshot of the required area would suffice.
For a fancier solution to simply taking screenshots of the displays you want, there is this KB article to do this with VBA.
KB00417 - VBA Code to print user selected displays in a PI ProcessBook workbook
Thanks, that is a very useful article, however, that is not what I am looking for. Below is a copy of what the print preview looks like. I only want to print the area of the display that I circled in red. Do you think that this can be done?
EPD Computer Specialist
Bryan, if you only want to print a portion of a display, can you make a new ProcessBook entry that is only the desired portion and print it?
Does the printing have to be automated (ie: the display runs continuously and prints on a scheduled basis) or is it on demand?
Either way, using the VBA from the KB article, you should be able to select the desired display and print it.
Ok, so that seems to be my best option for now.
I created a new display with only the information that I needed. On the original display I added a print button with the following command:
Private Sub cmdPrint_Click()
Application.Displays.Open "\\ntmesapitxeg\PROCBOOK\prntEO1DashboardDisplay.PDI", False
Dim o As Object
Set o = Application.ActiveDisplay
This opened the new display, automatically printed, and then automatically closed the display.
Thanks guys for your help.
What happened to the link- it no longer works. Is there an updated link or how do I get to the article now?
Hey, not sure if you saw my response, so I am responding via e-mail.
o No other requirement. Screenshot of the required area would suffice.
Thanks for your help.
Retrieving data ...