Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Ghostscript not working on some developer's machines

2 posts in DataWindow Last posting was on 2009-08-05 19:46:42.0Z
Mark Brents Posted on 2009-08-05 15:08:36.0Z
Sender: 717a.4a78a3fc.1804289383@sybase.com
From: Mark Brents
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Ghostscript not working on some developer's machines
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a79a074.3826.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 5 Aug 2009 08:08:36 -0700
X-Trace: forums-3-dub.sybase.com 1249484916 10.22.241.188 (5 Aug 2009 08:08:36 -0700)
X-Original-Trace: 5 Aug 2009 08:08:36 -0700, forums-3-dub.sybase.com
Lines: 27
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89737
Article PK: 418926

I’m having trouble getting Ghostscript to work with
PowerBuilder on some of our developer’s machines.
I’ve read thru a lot of the old newsgroup postings,
but I can’t seem to find a solution to our problem.

I’ve installed Ghostscript on their machines. And
I’ve set up a postscript printer called “Sybase
DataWindow PS”. The printer port is set to
“FILE:”. On the datawindow, the PDF method is
set to “Distill!”. The line of code I’m
using to save the PDF looks like this:

dw_1.saveas(“C:\temp\my.pdf”, PDF!, true)

It works fine on my computer. But on theirs, they end up
with a pdf file with zero bytes in it. I can’t figure
out what’s different between my machine and theirs.

Using Process Monitor, I can see where on my machine
it’s querying the HKEY_LOCAL_MACHINE\SOFTWARE\GPL
Ghostscript\8.63 key. It doesn’t seem to do this on
their machines, even thought the key also exists on their
machines.

We’re using PowerBuilder 11.2 and Ghostscript 8.63 .

Does anyone have any insight into what’s going on?


Brad L. Posted on 2009-08-05 19:46:42.0Z
Sender: 61e6.4a6858c9.1804289383@sybase.com
From: Brad L.
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Ghostscript not working on some developer's machines
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a79e1a2.6b64.1681692777@sybase.com>
References: <4a79a074.3826.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: forums-3-dub.sybase.com
X-Original-NNTP-Posting-Host: forums-3-dub.sybase.com
Date: 5 Aug 2009 12:46:42 -0700
X-Trace: forums-3-dub.sybase.com 1249501602 10.22.241.188 (5 Aug 2009 12:46:42 -0700)
X-Original-Trace: 5 Aug 2009 12:46:42 -0700, forums-3-dub.sybase.com
Lines: 33
Path: forums-1-dub!forums-master!forums-3-dub.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89740
Article PK: 418928

I'm not sure if this will help, but try inserting the
following code before you save:
dw_1.Modify("DataWindow.Export.PDF.Distill.CustomPostScript='1'")

> I’m having trouble getting Ghostscript to work with
> PowerBuilder on some of our developer’s machines.
> I’ve read thru a lot of the old newsgroup postings,
> but I can’t seem to find a solution to our problem.
>
> I’ve installed Ghostscript on their machines. And
> I’ve set up a postscript printer called
“Sybase
> DataWindow PS”. The printer port is set to
> “FILE:”. On the datawindow, the PDF method is
> set to “Distill!”. The line of code I’m
> using to save the PDF looks like this:
>
> dw_1.saveas(“C:\temp\my.pdf”, PDF!, true)
>
> It works fine on my computer. But on theirs, they end up
> with a pdf file with zero bytes in it. I can’t
figure
> out what’s different between my machine and theirs.
>
> Using Process Monitor, I can see where on my machine
> it’s querying the HKEY_LOCAL_MACHINE\SOFTWARE\GPL
> Ghostscript\8.63 key. It doesn’t seem to do this on
> their machines, even thought the key also exists on their
> machines.
>
> We’re using PowerBuilder 11.2 and Ghostscript 8.63 .
>
> Does anyone have any insight into what’s going on?