Find and share HowTos to various installations / configurations!
- Posts: 122
- Joined: Thu May 05, 2011 12:59 pm
I already created a script for making print screens of all the alarms in the Panel Topology. It opens the panels one by one in the User Interface, and makes a print by using the function
setValue("WinCC_OA_1" + "." + "Basepanel" + ":", "imageToFile", sPath);
This works like a charm.
Now I am trying to make a script to make a print screen of all the Operating panels. I can find a way of opening each panel as a child panel, but how do I make a print of this panel?
(i.e how do I make a print of a panel that was open using ChildPanelOnModule)
- Posts: 741
- Joined: Fri Sep 17, 2010 9:03 am
Should work with the CTRL function printPanel()
Gertjan van Schijndel
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Just replace "Basepanel" with the name of your childpanel.
- Posts: 2567
- Joined: Tue Aug 24, 2010 7:28 pm
Instead of opening every panel as a child panel you could also open it as a root panel in an own module.
If you want to make a print screen of every panel you have to check if $-parameters need to be passed. Otherwise your panels will probably not work and will display wrong or no information.
Senior Support Specialist
- Posts: 27
- Joined: Mon Dec 02, 2013 11:15 am
The link is not valid anymore, how can i access that link? Also, is there any new solution from WinCC OA to print with childpanels?
- Posts: 300
- Joined: Fri Jan 16, 2015 10:29 am
You still have to use printPanel()