7
4

6 に答える 6

10

Ghostscript and Printer setup for PowerBuilder

Administrative privileges are required to install the printer. We are using this setup on XP.

These instructions use an HP printer driver instead of the one supplied by Sybase. If for some reason you don't have this driver, you can download it from HP. The HP driver has the following advantages:

  • Generated PDFs can be read by a Screen Reader (YMMV, but the Sybase driver output isn't readable at all.)
  • Driver is digitally signed for installation on systems that require signed drivers

Needed files

  • gs860w32.exe from http://pages.cs.wisc.edu/~ghost/ (you can try a later version if you like. 8.60 is working fine for us.)
  • Driver files in C:\Program Files\Sybase\Shared\PowerBuilder\drivers (path may vary depending on installation)

Ghostscript

Install gs860w32.exe

  • Install to C:\Program Files\gs
  • Check All Users
  • Check Install Ghostscript Fonts

Sybase DataWindow PS Printer

The printer name is case-sensitive and has to be exactly what is inside the quotes. There is no space in “DataWindow”. The easiest way to get it right is to copy from this document and paste it in.

  • Open Control Panel, Printers and Faxes
  • Choose Add printer (next)
  • Choose Local printer, uncheck Automatically detect and install my Plug and Play printer (next)
  • Choose Use the following port, select FILE: (next)
  • In the left-hand list, select 'HP' for the manufacturer
  • In the right-hand list, scroll down and select 'HP 8150 Series PS' (next)
  • Printer name "Sybase DataWindow PS"
  • Use as default printer select No (next)
  • Leave Do not share selected (next)
  • Print test page, select No (next)
  • (finish)
于 2010-03-17T15:08:47.973 に答える
4

We've got it working here. From our internal wiki:

  • Install ghostscript on your workstation (8.50 or 8.15 recommended)
  • Make sure that the ghostscript files in the Powerbuilder DLL directory
  • Ensure that there is a directory in the same place containing the default postscript drivers supplied by Sybase.
  • Powerbuilder uses the Adobe Postscript Driver (which can be downloaded free from Adobe.com). This must be named 'Adobe DataWindow PS'

We're using version 1.06 of the postscript driver which you can download here:

于 2010-03-17T12:39:51.867 に答える
4

Your code looks fine and is in line with my code that I just checked that does something similar. Verify that ghostscript is installed correctly.

For debugging purposes I would try using a much simpler datawindow without the bitmap background.

于 2010-03-17T12:48:05.713 に答える
3

他のマイナーな追加として、Export属性をModify()する必要はありませんでした。SaveAs()だけです。私の理解では、これらの属性はGhostscript以外のルートに移動しようとするためのものですが、これを成功させた人の話を聞いたのを覚えていません。

テストを簡素化するために、データウィンドウペインタの[プレビュー]ペインを右クリックして、[名前を付けて行を保存...]オプションがあるかどうかを確認することをお勧めします。(現時点では10.5がインストールされていないため、そのバージョンで使用できるかどうかはわかりません。)これにより、アプリの実行が節約され、少なくともPowerScriptで実行する前に基本機能をテストできます。

幸運を、

テリー。

于 2010-03-17T15:54:13.497 に答える
0

The problem with ghostscript is that the drivers are not signed. This is a big issue in Windows 8, in that it will just stop the installation of the drivers. Windows 7 you were informed what was happening and allowed to install the drivers. Windows 8 just stops the install of the drivers, you can prove this by trying to create a printer with the ghostscript files.

Currently working through the HP PS drivers to try and identify a workaround for the Windows 8 operating system.

于 2013-08-08T14:44:35.447 に答える
0

Windows 8 does allow unsigned printer drivers but you have to reboot into "advanced mode" see the procedure at the following link and select the option Disable driver signature enforcement. http://windows.microsoft.com/en-gb/windows-8/windows-startup-settings-including-safe-mode

Windows will still warn and advice against installing an unsigned driver.

于 2014-07-30T07:06:30.847 に答える