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.

printing datastore creates blank file

3 posts in DataWindow Last posting was on 2008-12-18 14:43:01.0Z
Sean Posted on 2008-12-18 14:32:25.0Z
Sender: 11d5.494a5e11.1804289383@sybase.com
From: Sean
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: printing datastore creates blank file
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <494a5ef9.11e4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Dec 2008 06:32:25 -0800
X-Trace: forums-1-dub 1229610745 10.22.241.41 (18 Dec 2008 06:32:25 -0800)
X-Original-Trace: 18 Dec 2008 06:32:25 -0800, 10.22.241.41
Lines: 16
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88448
Article PK: 417701

Hi,
I'm trying to print a datastore to a file. It works fine in
some environments but in our production environment it
creates an empty .prn file.

It looks like the .print command creates the file but
doesn't populate it, however there is data there as we can
run the app from another server and it works.

lds_cb_ltrs.Object.DataWindow.Print.Filename = ls_filename
lds_cb_ltrs.Print()

Any help would be greatly appreciated

Thanks,
Sean


Chris Pollach Posted on 2008-12-18 14:39:14.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <494a5ef9.11e4.1681692777@sybase.com>
Subject: Re: printing datastore creates blank file
Lines: 30
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.3350
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <494a6092$1@forums-1-dub>
Date: 18 Dec 2008 06:39:14 -0800
X-Trace: forums-1-dub 1229611154 10.22.241.152 (18 Dec 2008 06:39:14 -0800)
X-Original-Trace: 18 Dec 2008 06:39:14 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88449
Article PK: 417699

Hi Sean;

Where the print does *not* work ... is there a proper default printer
defined?

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

<Sean> wrote in message news:494a5ef9.11e4.1681692777@sybase.com...
> Hi,
> I'm trying to print a datastore to a file. It works fine in
> some environments but in our production environment it
> creates an empty .prn file.
>
> It looks like the .print command creates the file but
> doesn't populate it, however there is data there as we can
> run the app from another server and it works.
>
> lds_cb_ltrs.Object.DataWindow.Print.Filename = ls_filename
> lds_cb_ltrs.Print()
>
> Any help would be greatly appreciated
>
> Thanks,
> Sean


Sean Posted on 2008-12-18 14:43:01.0Z
Sender: 11d5.494a5e11.1804289383@sybase.com
From: Sean
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: printing datastore creates blank file
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <494a6175.1227.1681692777@sybase.com>
References: <494a6092$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Dec 2008 06:43:01 -0800
X-Trace: forums-1-dub 1229611381 10.22.241.41 (18 Dec 2008 06:43:01 -0800)
X-Original-Trace: 18 Dec 2008 06:43:01 -0800, 10.22.241.41
Lines: 39
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88451
Article PK: 417704

Hi Chris, thanks for the quick response,
the default printer appears to be the same on the "good"
server and the "bad" server,
we tried changing the default printer to another one and
still had the issue.

thanks,
Sean

> Hi Sean;
>
> Where the print does *not* work ... is there a proper
> default printer defined?
>
> --
> Regards ... Chris
> ISUG - NA RUG Director
> http://chrispollach.pbdjmagazine.com
>
>
> <Sean> wrote in message
> > news:494a5ef9.11e4.1681692777@sybase.com... Hi,
> > I'm trying to print a datastore to a file. It works fine
> > in some environments but in our production environment
> > it creates an empty .prn file.
> >
> > It looks like the .print command creates the file but
> > doesn't populate it, however there is data there as we
> > can run the app from another server and it works.
> >
> > lds_cb_ltrs.Object.DataWindow.Print.Filename =
> > ls_filename lds_cb_ltrs.Print()
> >
> > Any help would be greatly appreciated
> >
> > Thanks,
> > Sean
>
>