【发布时间】:2010-03-17 09:12:39
【问题描述】:
我有一个网格数据窗口,其背景中有一张图片(尺寸为 A4 页面),我想将数据和图片导出为(单页)PDF 文件。我使用了以下命令的几种组合,但最多得到一个 0 大小的 pdf。
//dw_1.Modify("Datawindow.Export.PDF.Method = Distill! ")
//dw_1.Modify("DataWindow.Export.PDF.Method = XSLFOP! ")
dw_1.Object.DataWindow.Export.PDF.Method = Distill!
//dw_1.Object.DataWindow.Printer = "\\prntsrvr\pr-6"
dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript="No"
dw_1.SaveAs("c:\dw_one.pdf", PDF!, false)
用户指南(第 533 页)说:
… the data is printed to a PostScript file and automatically distilled to PDF using GNU Ghostscript…
Installing Ghostscript
For licensing reasons, Ghostscript is not installed with PowerBuilder. You (and your users) must download and install it before you can use this technique…
有人知道程序是什么吗?
编辑 谢谢你们。事实证明,安装 ghostscript 就足够了。我只是不明白为什么该程序在某些伙伴 PC 上成功(使用 Method = XSLFOP!)而不使用 ghostscript:-/
【问题讨论】:
标签: pdf powerbuilder datawindow