回复:如何打印WINCC画面?

imchange

  • 帖子

    810
  • 精华

    3
  • 被关注

    3

论坛等级:侠士

注册时间:2003-06-06

普通 普通 如何晋级?

发布于 2004-04-19 13:12:30

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);
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32564条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。