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.

PDF Distill Quirk

3 posts in DataWindow Last posting was on 2008-05-07 18:01:01.0Z
Ken Breneman Posted on 2008-05-07 00:53:43.0Z
Sender: 2db4.4820edb6.1804289383@sybase.com
From: Ken Breneman
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: PDF Distill Quirk
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4820fd97.2fde.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 May 2008 17:53:43 -0700
X-Trace: forums-1-dub 1210121623 10.22.241.41 (6 May 2008 17:53:43 -0700)
X-Original-Trace: 6 May 2008 17:53:43 -0700, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86788
Article PK: 416047

I'm using the Distill method to create a PDF of a
DataWindow. The DataWindow includes a picture object whose
"File Name" property is just a file name (i.e. no path).
When I do the SaveAs, the picture disappears from the
DataWindow preview (!!!) and obviously does not appear in
the PDF either. If I change the picture object to have a
FQFN, then it works. Unfortunately, *not* specifying a path
is kinda essential to what I'm doing. Any ideas for
workarounds? TY! :)
PB 11.2
GhostScript 8.62
WinXP SP1


Ken Breneman Posted on 2008-05-07 17:48:20.0Z
Sender: 2db4.4820edb6.1804289383@sybase.com
From: Ken Breneman
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: PDF Distill Quirk
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4821eb64.4ef0.1681692777@sybase.com>
References: <4820fd97.2fde.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 7 May 2008 10:48:20 -0700
X-Trace: forums-1-dub 1210182500 10.22.241.41 (7 May 2008 10:48:20 -0700)
X-Original-Trace: 7 May 2008 10:48:20 -0700, 10.22.241.41
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86791
Article PK: 416049

Please scratch this. The problem is that the
GetFileSaveName() function actually changes the
application's current directory if the user navigates to a
different directory. The application could no longer find
the graphic file (recall that I didn't specify a path - only
a file name). Thanks anyway for looking!

Ken

> I'm using the Distill method to create a PDF of a
> DataWindow. The DataWindow includes a picture object
> whose "File Name" property is just a file name (i.e. no
> path). When I do the SaveAs, the picture disappears from
> the DataWindow preview (!!!) and obviously does not appear
> in the PDF either. If I change the picture object to have
> a FQFN, then it works. Unfortunately, *not* specifying a
> path is kinda essential to what I'm doing. Any ideas for
> workarounds? TY! :)
> PB 11.2
> GhostScript 8.62
> WinXP SP1


KL Posted on 2008-05-07 18:01:01.0Z
Sender: 4f44.4821ed9c.1804289383@sybase.com
From: KL
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: PDF Distill Quirk - Save/Set Directory
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4821ee5d.4f53.1681692777@sybase.com>
References: <4820fd97.2fde.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 7 May 2008 11:01:01 -0700
X-Trace: forums-1-dub 1210183261 10.22.241.41 (7 May 2008 11:01:01 -0700)
X-Original-Trace: 7 May 2008 11:01:01 -0700, 10.22.241.41
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86792
Article PK: 416050

1. Use GetCurrentDirectory( ) to get the current directory
and save it.
2. Do your PDF thing.
3. Use ChangeDirectory( directorysavedabove ) to put it
back.

HTH
KL

> I'm using the Distill method to create a PDF of a
> DataWindow. The DataWindow includes a picture object
> whose "File Name" property is just a file name (i.e. no
> path). When I do the SaveAs, the picture disappears from
> the DataWindow preview (!!!) and obviously does not appear
> in the PDF either. If I change the picture object to have
> a FQFN, then it works. Unfortunately, *not* specifying a
> path is kinda essential to what I'm doing. Any ideas for
> workarounds? TY! :)
> PB 11.2
> GhostScript 8.62
> WinXP SP1