10/1/2015 8:52 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4352 Rating: (1452)
|
“Simple Samples” are small projects that demonstrate simple features. The target is give a quick overview about the theme and be used as start point for related discussions. Follow there are a short description and the configuration main steps.
Description:
By clicking on button a Report is sent to the printer.
Requirements: WinCC Professional V13 SP1.
Project with a minimum configuration (stop button, tags, etc.).
At least one printer driver installed and set as default printer in Windows.
Configuration main steps:
#include "GlobalDefinitions.h" void OnClick(char* screenName, char* objectName, char* propertyName) { //Insert the code starting here
RPTJobPrint("Print_job_1") ; }
Note: is not possible, at actual state of art, to start a print job directly by VB script.
Alternative – add a Print job diagnose object (just for diagnose proposes) Place a “Print Job/Script diagnostic” (Toolbox → Controls) Configure the “Print Job/Script diagnostic” to Print Job functions (Properties → General → Windows content = “Print job”)
Thanks to the Siemens United States Technical Support (in special Mr. David Crockett) for the Help with this TIP.
References: Manual WinCC Professional V13.0 https://support.industry.siemens.com/cs/br/pt/view/92323076/en
Online helps system WinCC Professional V13.0 SP1 https://support.industry.siemens.com/cs/br/pt/view/109096785/en
FAQ Which VBS information and VBS programming tools are there in WinCC (TIA Portal)? https://support.industry.siemens.com/cs/br/pt/view/59885894/en
Tips and tricks for creating scripts in WinCC (TIA Portal) https://support.industry.siemens.com/cs/br/pt/view/57132412/en
Project: AS project.zip
AttachmentProject.zip (1570 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to7 thankful Users |
12/17/2018 3:36 PM | |
Joined: 7/27/2017 Last visit: 10/16/2024 Posts: 1 Rating: (0) |
Thx, OronI took your variant and it work |
Last edited by: Technokratus at: 12/17/2018 3:37:44 PM |
|
Follow us on