【发布时间】:2021-07-20 08:53:58
【问题描述】:
我正在尝试使用此 osprint.p 选项从我的应用程序打印 pdf,我可以使用保存 pdf 的打印机选项,但 pdf 不是可读格式This is how it looks。知道我做错了什么。此外,是否有任何选项可以通过此选项设置默认打印机以及其他选项(如份数、分页等),而不会触发 MSW 打印设置对话框I want to programmatically send these options?使用以下第 4 个参数,我可以设置方向和纸张尺寸,但不知道如何设置其他参数。
/* RUN ShellExecuteA (0,"print":u,cUserFile,"default_Printer","",1,OUTPUT tInt). */
/* Using ShellExecute I won't be able to set orientation or any other options */
RUN adecomm/_osPrint.p (INPUT wWin,
INPUT cUserFile,
INPUT 3,
INPUT 1 + IF fc-orient-portrait = 1 THEN 0 ELSE 2 + i-papersize + 160 + 512,
INPUT 0,
INPUT 0,
OUTPUT vResult).
IF vResult THEN DO:
OS-DELETE VALUE(cUserFile).
END.
作为参考,我使用的是 Chris 的这篇文章: https://www.progresstalk.com/threads/printing-on-ladscape-mode.48/ 连同这个:https://knowledgebase.progress.com/articles/Knowledge/18776
谢谢。
【问题讨论】:
标签: openedge progress-4gl