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 creates a 0 byte length file.

3 posts in DataWindow Last posting was on 2008-04-22 17:52:48.0Z
Bob O Posted on 2008-04-22 15:11:28.0Z
Sender: 5563.480dfd58.1804289383@sybase.com
From: Bob O
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: SaveAs PDF creates a 0 byte length file.
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <480e0020.55d4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Apr 2008 08:11:28 -0700
X-Trace: forums-1-dub 1208877088 10.22.241.41 (22 Apr 2008 08:11:28 -0700)
X-Original-Trace: 22 Apr 2008 08:11:28 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86696
Article PK: 415956

The following PB script creates PDF files from a datastore
on both Windows XP and 2000 development machines:
//---Save Status Report As PDF.
li_rtv = lds_temp.SaveAs(is_filepath_pdf, PDF!, FALSE)

On the runtime machines a 0 byte PDF file is created. We
are using PB 10.5 in a windows XP and windows 2000
environment. I have installed Ghostscript on the target
runtime machines and set the System Path variable to point
to C:\gs\gs7.05\bin. I also installed the Sybase DataWindow
PS printer driver.

Any guidence on how to resolve this issue is appreciated.


Bob O Posted on 2008-04-22 17:29:47.0Z
Sender: 5563.480dfd58.1804289383@sybase.com
From: Bob O
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: SaveAs PDF creates a 0 byte length file.
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <480e208b.888.1681692777@sybase.com>
References: <480e0020.55d4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Apr 2008 10:29:47 -0700
X-Trace: forums-1-dub 1208885387 10.22.241.41 (22 Apr 2008 10:29:47 -0700)
X-Original-Trace: 22 Apr 2008 10:29:47 -0700, 10.22.241.41
Lines: 22
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86697
Article PK: 415955

I found that I was missing the drivers folder on our target
runtime EAServer machine. I am not sure where to put the
drivers folder? EAServer\Shared\PowerBuilder\drivers ? or
EAServer\PowerBuilder\drivers ? Do I have to register the
drivers? I think PB may do this as part of the install.
That is why it works on th 2 development machines.

> The following PB script creates PDF files from a datastore
> on both Windows XP and 2000 development machines:
> //---Save Status Report As PDF.
> li_rtv = lds_temp.SaveAs(is_filepath_pdf, PDF!, FALSE)
>
> On the runtime machines a 0 byte PDF file is created. We
> are using PB 10.5 in a windows XP and windows 2000
> environment. I have installed Ghostscript on the target
> runtime machines and set the System Path variable to point
> to C:\gs\gs7.05\bin. I also installed the Sybase
> DataWindow PS printer driver.
>
> Any guidence on how to resolve this issue is appreciated.


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-04-22 17:52:48.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <480e0020.55d4.1681692777@sybase.com> <480e208b.888.1681692777@sybase.com>
Subject: Re: SaveAs PDF creates a 0 byte length file.
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <480e25f0$1@forums-1-dub>
Date: 22 Apr 2008 10:52:48 -0700
X-Trace: forums-1-dub 1208886768 10.22.241.152 (22 Apr 2008 10:52:48 -0700)
X-Original-Trace: 22 Apr 2008 10:52:48 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86698
Article PK: 415957

The drivers folder is usually placed in the same directory as the
application. The drivers folder is used to install the DataWindow PS printer
on the machine where the SaveAs (PDF!) is done. That will happen
automatically on the first SaveAs(PDF!) *IF* the user has authority to
install a printer. If the user does not then you will have to install the
printer manually. And of course GS has to be installed and findable on the
machine where the SaveAs(PDF!) is done.

<Bob O> wrote in message news:480e208b.888.1681692777@sybase.com...
>I found that I was missing the drivers folder on our target
> runtime EAServer machine. I am not sure where to put the
> drivers folder? EAServer\Shared\PowerBuilder\drivers ? or
> EAServer\PowerBuilder\drivers ? Do I have to register the
> drivers? I think PB may do this as part of the install.
> That is why it works on th 2 development machines.
>
>
>
>> The following PB script creates PDF files from a datastore
>> on both Windows XP and 2000 development machines:
>> //---Save Status Report As PDF.
>> li_rtv = lds_temp.SaveAs(is_filepath_pdf, PDF!, FALSE)
>>
>> On the runtime machines a 0 byte PDF file is created. We
>> are using PB 10.5 in a windows XP and windows 2000
>> environment. I have installed Ghostscript on the target
>> runtime machines and set the System Path variable to point
>> to C:\gs\gs7.05\bin. I also installed the Sybase
>> DataWindow PS printer driver.
>>
>> Any guidence on how to resolve this issue is appreciated.