Kkula
Browse Questions » SIMATIC WinCC flexible: Document Genertaion

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

SIMATIC WinCC flexible: Document Genertaion

HELOO EXPERT,

I am trying to generate a report in Wincc flex runtime.I have a one problem that i want to give the nameto the file directly from the screen which is to be printed.what can we do for this???
plzzzzzzz ans..
WRM REGARDS

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Generating Reports with Dynamic File Names in WinCC Flexible Runtime

You can achieve dynamic file naming for WinCC Flexible runtime reports by utilizing global tags (variables) to store the desired file name. Here's how:

  1. Create a Global Tag: Define a global tag (e.g., "ReportFileName") in your WinCC Flexible project. This tag will hold the file name entered from the screen.
  2. Screen Input: Add an input field (e.g., a text box) to your screen where the operator can enter the desired file name. Bind this input field to the "ReportFileName" global tag.
  3. Report Configuration: In the WinCC Flexible report configuration, instead of a fixed file name, use the global tag "ReportFileName" within the file path. For example: "C:\Reports\%ReportFileName%.pdf".
  4. Validation: Implement validation logic (e.g., using scripting) to ensure the entered file name is valid (e.g., no invalid characters, appropriate length).

Important Considerations:

  • Ensure the runtime user has write permissions to the specified report directory.
  • Handle potential errors related to invalid file names gracefully.

For detailed guidance, refer to the SiePortal documentation on report generation and dynamic data usage:

SiePortal - Siemens Support
0