×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 22060552, Entry date: 07/17/2015
(2)
Rate

How do you print sub-areas of pictures in landscape format?

  • Entry
  • Associated product(s)

Instructions
Use the following call to make hard copy prints of sub-areas of a screen in landscape format:

#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
WinExec("PrtScr.exe -l -C= \"20;10;800;400\"",SW_SHOWNORMAL);
}

Notes

  • Always specify the execution parameters (for example: -l -nomcp) in lowercase lettering!
    If the "-nomcp" parameter is added, the screen area being printed ("-C= 20;10;800;400") is ignored.

    The possible parameters and their functions for a hard copy ("PrtScr.exe") are available in the WinCC Information System under "Output parameters for hard copies".

    For how to use the hard copy function on a web client refer also to the notes in the WinCC Information System under "Using the "Hard copy" function".
  • You must always set the -nomcp parameter on the Web Client, because otherwise the PrtScr.exe tries to connect itself to the Project Manager of WinCC which is not available on the Web Client.
  • If runtime is started, and this button is re-configured, -hardcopy may not work because PrtScr.exe is already active. In this event, please end runtime and restart it. Or end PrtScr.exe with -end and then use -nomcp.

Additional Keywords
Print screen


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.