您的位置:控制工程论坛网论坛 » 人机界面 » 如何打印WINCC画面?

www95

www95   |   当前状态:离线

总积分:59  2024年可用积分:0

注册时间: 2007-09-30

最后登录时间: 2007-09-30

空间 发短消息加为好友

如何打印WINCC画面?

www95  发表于 2007/9/30 9:53:48      1825 查看 0 回复  [上一主题]  [下一主题]

手机阅读

QUESTION:

How can I print a hardcopy in landscape format with WinCC V5 (SP2) / WinCC V5.1?



ANSWER:

To do this configure a button with the following command:



WinExec("PrtScr.exe -l -nomcp",SW_SHOWNORMAL);



The following parameters are available:



-nomcp: this parameters starts PRTSCR.exe, triggers the hardcopy and then closes again.

-hardcopy: this parameters starts PRTSCR.exe, triggers the hardcopy and waits for the hotkey.

-end: this parameter ends the instance of PRTSCR.exe currently running.

Note:

If Runtime has already started and you then configure this button, it may be that -hardcopy doesn't work because PRTSCR.exe is already active. You must then close Runtime and restart it. Or close it with -end and then use -nomcp.



QUESTION:

How can you make a hardcopy of picture subareas (e.g. curve windows)?

ANSWER:

You have located a curve window, for example, in your picture. Now you want to make a hardcopy of this window. You can do this if you have installed Basic Process Control on your computer. Then, in the DRIVE: \Siemens\WinCC\bin directory you will find the prtscrn.dll file. For the hardcopy you must know the coordinates and size of your window. Then you can trigger the hardcopy as follows via a button:



#pragma code ("prtscrn.dll")

#include "prtscrn.h"

#pragma code()

long Left, Top, Width, Height;

Left=20;

Top = 10;

Width=800;

Height = 400;

PrtScreenPart ((ULONG) Left, (ULONG) Top, (ULONG) Width, (ULONG) Height);

1楼 0 0 回复