Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 21606152, Entry date: 01/26/2015

How do you print out sub-areas of a picture (a curve window, for example)?

  • Entry
  • Associated product(s)

There is a curve window, for instance, in your picture, and you wish to make a hard copy of this window. In order to make a hard copy, you need to know the coordinates and size of your window. You can then activate the hard copy via a button, as follows:

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

The figures in the order "PositionX;PositionY;Width;Height" correspond to the coordinates of the top-left corner and to the size of the window.

Fig. 01

If you insert the parameter "-nomcp", the area to be printed is no longer taken into account.

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
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.