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.

SaveAs PDF error

6 posts in Objects Last posting was on 2007-08-07 05:21:23.0Z
Neil Garcia Posted on 2007-08-07 01:28:26.0Z
Sender: 3b21.46b7c9a8.1804289383@sybase.com
From: Neil Garcia
Newsgroups: sybase.public.powerbuilder.objects
Subject: SaveAs PDF error
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46b7caba.3b41.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Aug 2007 18:28:26 -0700
X-Trace: forums-1-dub 1186450106 10.22.241.41 (6 Aug 2007 18:28:26 -0700)
X-Original-Trace: 6 Aug 2007 18:28:26 -0700, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9404
Article PK: 736565

Hi,

I tried PB10 evaluation version and I am having problem to
make this thing to work. I just want to save the contents of
the datawindow into PDF file.

code: dw_1.saveas("c:\test1.pdf",PDF!,false)

this code always return -1. Why is that so, what could be
wrong?
any possibilities for it to return -1?

I hope to have reply soon. Thanks.
Neil


Adam Simmonds [TeamSybase] Posted on 2007-08-07 02:07:50.0Z
From: "Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: SaveAs PDF error
References: <46b7caba.3b41.1681692777@sybase.com>
In-Reply-To: <46b7caba.3b41.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: nat-1248.mp.usyd.edu.au
X-Original-NNTP-Posting-Host: nat-1248.mp.usyd.edu.au
Message-ID: <46b7d3f6@forums-1-dub>
Date: 6 Aug 2007 19:07:50 -0700
X-Trace: forums-1-dub 1186452470 129.78.56.224 (6 Aug 2007 19:07:50 -0700)
X-Original-Trace: 6 Aug 2007 19:07:50 -0700, nat-1248.mp.usyd.edu.au
Lines: 22
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9406
Article PK: 736564

Neil
You need to install ghostscript on your machine and then copy to the
shared/powerbuilder folder. Check the installation guide, it should have
something in there on the process you need to follow.
a.

Neil Garcia wrote:
> Hi,
>
> I tried PB10 evaluation version and I am having problem to
> make this thing to work. I just want to save the contents of
> the datawindow into PDF file.
>
> code: dw_1.saveas("c:\test1.pdf",PDF!,false)
>
> this code always return -1. Why is that so, what could be
> wrong?
> any possibilities for it to return -1?
>
> I hope to have reply soon. Thanks.
> Neil


Neil Garcia Posted on 2007-08-07 02:54:35.0Z
Sender: 3b21.46b7c9a8.1804289383@sybase.com
From: Neil Garcia
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: SaveAs PDF error
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46b7deeb.3cbe.1681692777@sybase.com>
References: <46b7d3f6@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Aug 2007 19:54:35 -0700
X-Trace: forums-1-dub 1186455275 10.22.241.41 (6 Aug 2007 19:54:35 -0700)
X-Original-Trace: 6 Aug 2007 19:54:35 -0700, 10.22.241.41
Lines: 31
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9408
Article PK: 736566

Thank you so much for the reply. This should save my day. By
the way, what installation guide you are referring here,
Powerbuilder installation guide or Ghostscript?
What ghostscript file should I copy to shared/powerbuilder
folder? once again, thank you very much.

Neil

> Neil
> You need to install ghostscript on your machine and then
> copy to the shared/powerbuilder folder. Check the
> installation guide, it should have something in there on
> the process you need to follow. a.
>
>
> Neil Garcia wrote:
> > Hi,
> >
> > I tried PB10 evaluation version and I am having problem
> > to make this thing to work. I just want to save the
> > contents of the datawindow into PDF file.
> >
> > code: dw_1.saveas("c:\test1.pdf",PDF!,false)
> >
> > this code always return -1. Why is that so, what could
> > be wrong?
> > any possibilities for it to return -1?
> >
> > I hope to have reply soon. Thanks.
> > Neil


Adam Simmonds [TeamSybase] Posted on 2007-08-07 03:52:28.0Z
From: "Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: SaveAs PDF error
References: <46b7d3f6@forums-1-dub> <46b7deeb.3cbe.1681692777@sybase.com>
In-Reply-To: <46b7deeb.3cbe.1681692777@sybase.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: nat-1248.mp.usyd.edu.au
X-Original-NNTP-Posting-Host: nat-1248.mp.usyd.edu.au
Message-ID: <46b7ec7c$1@forums-1-dub>
Date: 6 Aug 2007 20:52:28 -0700
X-Trace: forums-1-dub 1186458748 129.78.56.224 (6 Aug 2007 20:52:28 -0700)
X-Original-Trace: 6 Aug 2007 20:52:28 -0700, nat-1248.mp.usyd.edu.au
Lines: 116
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9409
Article PK: 736568

Try this
http://www.sybase.com/detail?id=1026721#BABGDBHJ

7. Documentation updates and clarifications
7.1 Software components for saving DataWindows as PDF
7.1.1 Using the GNU Ghostscript distiller

Incorrect information appears in the section on page 486 of the UserÂ’s
Guide on saving the data in a DataWindow object as PDF using the distill
method, and in the section on page 731of Application Techniques on
deploying applications that use this feature. These sections incorrectly
state that GNU Ghostscript files are installed with PowerBuilder in
Sybase\Shared\PowerBuilder\gs7.05.

In order to use the SaveAs method to save data as PDF using the
distiller, or to use the Save Rows As menu item in the DataWindow
painter to save row data as PDF, you must first download and install GNU
Ghostscript on your computer as described in the procedure that follows.

Your use of GNU Ghostscript is subject to the terms and conditions of
the GNU General Public License (GPL). Please read the GPL before
installing GNU Ghostscript on your computer. A copy of the GPL is
available on the GNU Project Web server.


Save Rows As fails

To save as PDF in the DataWindow painter, select File>Save Rows As and
select PDF as the Save As type. If you do not install GNU Ghostscript
and use the default export properties, PowerBuilder displays a pop-up
window notifying you that Save Rows As failed. If you install GNU
Ghostscript and then change the name of the directory where GNU
Ghostscript is installed, Save Rows As PDF fails silently.
To install GNU Ghostscript on the PowerBuilder development computer:

Into a temporary directory on your computer, download
gs705w32.exe from the gs705 directory, or gs706w32.exe from the gs706
directory, at ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu.

You can find a list of alternative mirror sites on the
Ghostscript Web site at http://www.ghostscript.com/doc/gnu/gnu705.htm.

Run the executable file to install Ghostscript on your system.

The default installation directory is C:\gs. You can select a
different directory and/or choose to install shortcuts to the
Ghostscript console and readme file.


After installing Ghostscript, you should read the readme.htm file in the
gs7.05\doc directory to find out more about using Ghostscript and
distributing it with your application.

The Adobe PostScript drivers used in this feature are installed in
Sybase\Shared\PowerBuilder\drivers. For more information about
redistributing Adobe printer drivers, see the downloads page on the
Adobe Web site.
Location of Ghostscript files

When you save a DataWindow object as PDF using the distill method,
PowerBuilder searches in the following locations for an installation of
GNU Ghostscript:

*


The Windows registry
*


The relative path of the pbdwe90.dll file (typically
Sybase\Shared\PowerBuilder)
*


The system PATH environment variable

If GNU Ghostscript is installed using either gs705w32.exe (for
Ghostscript 7.05) or gs706w32.exe (for Ghostscript 7.06), the path is
added to the Windows registry. Therefore, you do not need to add the
gs7.0x\bin directory to the system PATH environment variable as
instructed by the Installation Guide.

Neil Garcia wrote:
> Thank you so much for the reply. This should save my day. By
> the way, what installation guide you are referring here,
> Powerbuilder installation guide or Ghostscript?
> What ghostscript file should I copy to shared/powerbuilder
> folder? once again, thank you very much.
>
> Neil
>
>
>> Neil
>> You need to install ghostscript on your machine and then
>> copy to the shared/powerbuilder folder. Check the
>> installation guide, it should have something in there on
>> the process you need to follow. a.
>>
>>
>> Neil Garcia wrote:
>>> Hi,
>>>
>>> I tried PB10 evaluation version and I am having problem
>>> to make this thing to work. I just want to save the
>>> contents of the datawindow into PDF file.
>>>
>>> code: dw_1.saveas("c:\test1.pdf",PDF!,false)
>>>
>>> this code always return -1. Why is that so, what could
>>> be wrong?
>>> any possibilities for it to return -1?
>>>
>>> I hope to have reply soon. Thanks.
>>> Neil


Neil Garcia Posted on 2007-08-07 04:57:04.0Z
Sender: 3ee2.46b7f82c.1804289383@sybase.com
From: Neil Garcia
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: SaveAs PDF error
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46b7fba0.3f69.1681692777@sybase.com>
References: <46b7ec7c$1@forums-1-dub>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Aug 2007 21:57:04 -0700
X-Trace: forums-1-dub 1186462624 10.22.241.41 (6 Aug 2007 21:57:04 -0700)
X-Original-Trace: 6 Aug 2007 21:57:04 -0700, 10.22.241.41
Lines: 133
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9410
Article PK: 736569

Thanks a lot, I really appreciate your help. I made it to
work now. You saved my day. Thanks again.

Neil

> Try this
> http://www.sybase.com/detail?id=1026721#BABGDBHJ
>
> 7. Documentation updates and clarifications
> 7.1 Software components for saving DataWindows as PDF
> 7.1.1 Using the GNU Ghostscript distiller
>
> Incorrect information appears in the section on page 486
> of the User’s Guide on saving the data in a DataWindow
> object as PDF using the distill method, and in the
> section on page 731of Application Techniques on deploying
> applications that use this feature. These sections
> incorrectly state that GNU Ghostscript files are
> installed with PowerBuilder in
> Sybase\Shared\PowerBuilder\gs7.05.
>
> In order to use the SaveAs method to save data as PDF
> using the distiller, or to use the Save Rows As menu item
> in the DataWindow painter to save row data as PDF, you
> must first download and install GNU Ghostscript on your
> computer as described in the procedure that follows.
>
> Your use of GNU Ghostscript is subject to the terms and
> conditions of the GNU General Public License (GPL).
> Please read the GPL before installing GNU Ghostscript on
> your computer. A copy of the GPL is available on the GNU
> Project Web server.
>
>
> Save Rows As fails
>
> To save as PDF in the DataWindow painter, select File>Save
> Rows As and select PDF as the Save As type. If you do not
> install GNU Ghostscript and use the default export
> properties, PowerBuilder displays a pop-up window
> notifying you that Save Rows As failed. If you install GNU
> Ghostscript and then change the name of the directory
> where GNU Ghostscript is installed, Save Rows As PDF
> fails silently. To install GNU Ghostscript on the
> PowerBuilder development computer:
>
> Into a temporary directory on your computer,
> download gs705w32.exe from the gs705 directory, or
> gs706w32.exe from the gs706 directory, at
> ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu.
>
> You can find a list of alternative mirror sites on
> the Ghostscript Web site at
> http://www.ghostscript.com/doc/gnu/gnu705.htm.
>
> Run the executable file to install Ghostscript on
> your system.
>
> The default installation directory is C:\gs. You
> can select a different directory and/or choose to install
> shortcuts to the Ghostscript console and readme file.
>
>
> After installing Ghostscript, you should read the
> readme.htm file in the gs7.05\doc directory to find out
> more about using Ghostscript and distributing it with
> your application.
>
> The Adobe PostScript drivers used in this feature are
> installed in Sybase\Shared\PowerBuilder\drivers. For more
> information about redistributing Adobe printer drivers,
> see the downloads page on the Adobe Web site.
> Location of Ghostscript files
>
> When you save a DataWindow object as PDF using the distill
> method, PowerBuilder searches in the following locations
> for an installation of GNU Ghostscript:
>
> *
>
>
> The Windows registry
> *
>
>
> The relative path of the pbdwe90.dll file
> (typically Sybase\Shared\PowerBuilder)
> *
>
>
> The system PATH environment variable
>
> If GNU Ghostscript is installed using either gs705w32.exe
> (for Ghostscript 7.05) or gs706w32.exe (for Ghostscript
> 7.06), the path is added to the Windows registry.
> Therefore, you do not need to add the gs7.0x\bin
> directory to the system PATH environment variable as
> instructed by the Installation Guide.
>
>
> Neil Garcia wrote:
> > Thank you so much for the reply. This should save my
> > day. By the way, what installation guide you are
> > referring here, Powerbuilder installation guide or
> > Ghostscript? What ghostscript file should I copy to
> > shared/powerbuilder folder? once again, thank you very
> > much.
> > Neil
> >
> >
> >> Neil
> >> You need to install ghostscript on your machine and
> then >> copy to the shared/powerbuilder folder. Check the
> >> installation guide, it should have something in there
> on >> the process you need to follow. a.
> >>
> >>
> >> Neil Garcia wrote:
> >>> Hi,
> >>>
> >>> I tried PB10 evaluation version and I am having
> problem >>> to make this thing to work. I just want to
> save the >>> contents of the datawindow into PDF file.
> >>>
> >>> code: dw_1.saveas("c:\test1.pdf",PDF!,false)
> >>>
> >>> this code always return -1. Why is that so, what could
> >>> be wrong?
> >>> any possibilities for it to return -1?
> >>>
> >>> I hope to have reply soon. Thanks.
> >>> Neil