Making a print screen of a child panel

Find and share HowTos to various installations / configurations!
Search

Post Reply
7 posts • Page 1 of 1
nmnogueira
Posts: 122
Joined: Thu May 05, 2011 12:59 pm

Making a print screen of a child panel

Post by nmnogueira »

Hi all,

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)

Thanks!

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: Making a print screen of a child panel

Post by mkoller »

Should work with the CTRL function printPanel()

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: Making a print screen of a child panel

Post by Gertjan van Schijndel »

Just replace "Basepanel" with the name of your childpanel.

User avatar
leoknipp
Posts: 2567
Joined: Tue Aug 24, 2010 7:28 pm

Re: Making a print screen of a child panel

Post by leoknipp »

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.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
RudiKreiner
Posts: 198
Joined: Mon May 16, 2011 2:10 pm

Re: Making a print screen of a child panel

Post by RudiKreiner »


yavaskoray
Posts: 27
Joined: Mon Dec 02, 2013 11:15 am

Re: Making a print screen of a child panel

Post by yavaskoray »

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?
Thank you.

User avatar
kilianvp
Posts: 300
Joined: Fri Jan 16, 2015 10:29 am

Re: Making a print screen of a child panel

Post by kilianvp »

You still have to use printPanel()

Post Reply
7 posts • Page 1 of 1