WinCC VBScript Print Files

VBScript Print Files

This practice is the answer to one of the many questions I have accumulated... It is about how to print a series of files that we have in our Scada WinCC.

The process would be that we have a WinCC Online Trend Control, and we export the data that interests us, at the end, we will print all the files we have generated. By default, we have the option to print in the Control, but the example is to print a series of files.

To print, we will use a button and we will insert the following code.

 

The code is as follows, where by default, we have already configured in our WinCC Online Trend Control, the directory where we are going to export our files, as can be seen we have changed the default configuration.

What we will do is loop through all the files we have in our directory and print them.

February 4, 2016

If you liked it or found it useful, share it :-)

“Gratitude in silence serves no one.” Gladys Bronwyn Stern