Powerbuilder 12 无法另存为 pdf 数据窗口

发布于 2024-09-30 16:21:46 字数 115 浏览 13 评论 0原文

我正在运行 Windows 2003 服务器。大约两周前,当托管公司决定在服务器上进行软件更新时,我对 pdf 进行 dw_1.saveas 时没有遇到任何问题。现在,当我保存时,文件大小为 0 kb。有什么想法吗?

I am running windows 2003 server. I had no problems doing a dw_1.saveas for a pdf until about 2 weeks ago when the hosting company decided to do a software update on the server. Now when I do a save as the file size is 0 kb. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

稀香 2024-10-07 16:21:46

我还获得了 0 字节文件,在 Windows 7 Enterprise SP1 64 位上运行 PB Classic 12.5.1 build 4541。根据前面两个答案的评论,我将 32 位 Ghostscript 9.1 安装到默认位置,验证注册表项不存在,然后将 64 位 Ghostscript 9.1 安装到默认位置,看到注册表值是在那里,然后修改注册表以指向 32 位安装目录,如下所示:

Windows 注册表编辑器版本 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript]

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\9.10]
"GS_DLL"="C:\\Program Files (x86)\\gs\\gs9.10\\bin\\gsdll32.dll"
"GS_LIB"="C:\\Program Files (x86)\\gs\\gs9.10\\bin;C:\\Program Files (x86)\\gs\\gs9.10\\lib;C:\\Program Files (x86)\\gs\\gs9.10\\fonts"

使用 Distill 另存为 PDF 现在可以工作。

I was also getting 0 byte files, running PB Classic 12.5.1 build 4541 on Windows 7 Enterprise SP1 64 bit. Based on the comments of both previous answers, I installed 32 bit Ghostscript 9.1 to default location, verified that the registry entry was not there, then installed 64 bit Ghostscript 9.1 to default location, saw the registry values were there, then modified the registry to point to the 32 bit installation directory as follows:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript]

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\9.10]
"GS_DLL"="C:\\Program Files (x86)\\gs\\gs9.10\\bin\\gsdll32.dll"
"GS_LIB"="C:\\Program Files (x86)\\gs\\gs9.10\\bin;C:\\Program Files (x86)\\gs\\gs9.10\\lib;C:\\Program Files (x86)\\gs\\gs9.10\\fonts"

Save As PDF using Distill is now working.

╰◇生如夏花灿烂 2024-10-07 16:21:46

编辑 2:我看到的另一个原因是 PowerBuilder DLL 和 PBD 不匹配。确保服务器上的运行时 DLL 和 PBD 与构建应用程序的计算机上的相同。

编辑:我重新阅读了你的问题。零字节 PDF 通常表明 PowerBuilder 无法找到 GhostScript。按如下所述检查注册表,并检查安装 GhostScript 的文件夹。重新运行 GhostScript 安装程序应该可以修复该问题。我将留下其余的故障排除信息,以防其他人需要。

如果您使用的是 Distill,问题可能是服务器配置已更改为需要签名的驱动程序。如果是这样,您必须安装带有签名驱动程序的“Sybase DataWindow PS”打印机。我发现“HP 8150 Series PS”驱动程序运行得很好。我在 将数据窗口另存为 PDF 中写下了说明在PB 10.5中。

如果您尝试从记事本打印到 Sybase DataWindow PS,您可能会收到有用的错误消息。另一种可能性是 PowerBuilder 用于查找 GhostScript 的注册表项已被破坏。我们在几个工作站上安装了它。以下是 Ghostscript 8.60 的内容(GhostScript 安装程序创建这些条目):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript]

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.60]
"GS_DLL"="C:\\Program Files\\gs\\gs8.60\\bin\\gsdll32.dll"
"GS_LIB"="C:\\Program Files\\gs\\gs8.60\\lib;C:\\Program Files\\gs\\fonts;C:\\Program Files\\gs\\gs8.60\\Resource"

我使用 Process Explorer 用于解决 PowerBuilder 的另存为 PDF 功能的问题。

Edit 2: Another cause I've seen is mis-matched PowerBuilder DLLs and PBDs. Make sure that the runtime DLLs and PBDs on the server are the same as the ones on the machine where the app was built.

Edit: I re-read your question. A zero byte PDF usually indicates that PowerBuilder couldn't find GhostScript. Check the registry as described below, and check the folder GhostScript is installed in. Re-running the GhostScript installer should fix it. I'll leave the rest of the troubleshooting info in case anyone else needs it.

If you're using Distill, the problem could be that the server configuration was changed to require signed drivers. If so, you'll have to install the "Sybase DataWindow PS" printer with a signed driver. I find the 'HP 8150 Series PS' driver works pretty well. I wrote up directions in Saving a datawindow as PDF in PB 10.5.

You might get a useful error message if you try to print to Sybase DataWindow PS from Notepad. Another possibility is that the Registry entries that PowerBuilder uses to find GhostScript got clobbered. We had that on a couple of workstations. Here's what I have for Ghostscript 8.60 (The GhostScript installer creates these entries):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript]

[HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.60]
"GS_DLL"="C:\\Program Files\\gs\\gs8.60\\bin\\gsdll32.dll"
"GS_LIB"="C:\\Program Files\\gs\\gs8.60\\lib;C:\\Program Files\\gs\\fonts;C:\\Program Files\\gs\\gs8.60\\Resource"

I used Process Explorer to troubleshoot problems with PowerBuilder's Save as PDF functionality.

夏末的微笑 2024-10-07 16:21:46

当我使用 Windows 2003 Server 64 位时,我遇到了同样的问题(PDF 大小为 0 KB),我解决了我的问题,如下所示:

=>首先,当我安装 Ghostscript 32 位版本时,我在注册表中看不到任何条目。

=>当我安装 Ghostscript 64 位版本时,注册表中没有问题,创建了条目,但系统不工作(生成的 PDF 大小为 0 KB)

=>我使用 Ghosscript 32 位版本创建一个新目录,并更改注册表条目

=>然后我卸载了64位版本。

=>现在,一切都好!

使用的 Ghostscipt 版本:gs904 为 32 位版本,gs910 为 64 位版本。

I had the same problem (PDF with 0 KB size) when I use Windows 2003 Server 64 bits and I resolve my problem like shown here :

=> At first, when I install Ghostscript 32 bits version, I see no entries in the Registry.

=> When I install a Ghostscript 64 bits version, there is no problem in the Registry, entries are created, but the system doesn't work (PDF is generated with 0 KB size)

=> I create a new directory with Ghosscript 32 bits version and I change the Registy entries

=> And then I uninstall the 64 bits version.

=> AND NOW, EVERYTHING IS OK !

Used Ghostscipt versions : gs904 for the 32 bits version and gs910 for the 64 bits one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文