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.

Datawindow Page n of n bug

5 posts in DataWindow Last posting was on 2009-10-06 22:12:07.0Z
crconti Posted on 2009-10-06 16:59:56.0Z
From: crconti <charlesrconti1@hotmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Datawindow Page n of n bug
Date: Tue, 6 Oct 2009 09:59:56 -0700 (PDT)
Organization: http://groups.google.com
Lines: 8
Message-ID: <e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com>
NNTP-Posting-Host: 168.240.9.4
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1254848396 18043 127.0.0.1 (6 Oct 2009 16:59:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 6 Oct 2009 16:59:56 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g22g2000prf.googlegroups.com; posting-host=168.240.9.4; posting-account=39xsYgoAAAA874SbOHNnIRh0vvsnus4N
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!g22g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90055
Article PK: 409660

I have a report that uses a datawindow and on it I placed "Page n of
n" by Insert:Control:Page n of n from within PowerBuilder 10.5.
However, when I run the report, the page number on the report on
screen can display page 1 of 1 or page 1 of 2, or page 1 of 3 or page
1of 4 up to page 1 of 15 depending on how I resize the report on
screen even though when I print there are only two pages and on the
printed report it correctly shows 1 of 2 and 2 of 2. Is there anyway
to correct this behaviour?


Scott Morris Posted on 2009-10-06 17:47:27.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com>
Subject: Re: Datawindow Page n of n bug
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4acb82af$1@forums-1-dub>
Date: 6 Oct 2009 10:47:27 -0700
X-Trace: forums-1-dub 1254851247 10.22.241.152 (6 Oct 2009 10:47:27 -0700)
X-Original-Trace: 6 Oct 2009 10:47:27 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90057
Article PK: 409661


"crconti" <charlesrconti1@hotmail.com> wrote in message
news:e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com...
>I have a report that uses a datawindow and on it I placed "Page n of
> n" by Insert:Control:Page n of n from within PowerBuilder 10.5.
> However, when I run the report, the page number on the report on
> screen can display page 1 of 1 or page 1 of 2, or page 1 of 3 or page
> 1of 4 up to page 1 of 15 depending on how I resize the report on
> screen even though when I print there are only two pages and on the
> printed report it correctly shows 1 of 2 and 2 of 2. Is there anyway
> to correct this behaviour?

That is the correct behavior. When the datawindow is NOT in print.preview
mode, the page numbering is based on the size of the physical datawindow
control. If you want to force the numbering to be that for the printed
output, then put the datawindow into print preview mode.


crconti Posted on 2009-10-06 18:29:23.0Z
From: crconti <charlesrconti1@hotmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Datawindow Page n of n bug
Date: Tue, 6 Oct 2009 11:29:23 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <8b7e22dd-0424-461f-bf34-b55935459224@g22g2000prf.googlegroups.com>
References: <e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com> <4acb82af$1@forums-1-dub>
NNTP-Posting-Host: 168.240.9.4
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1254853763 12581 127.0.0.1 (6 Oct 2009 18:29:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 6 Oct 2009 18:29:23 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g22g2000prf.googlegroups.com; posting-host=168.240.9.4; posting-account=39xsYgoAAAA874SbOHNnIRh0vvsnus4N
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!g22g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90058
Article PK: 409662


On Oct 6, 10:47 am, "Scott Morris" <bo...@bogus.com> wrote:
> "crconti" <charlesrcon...@hotmail.com> wrote in message
>
> news:e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com...
>
> >I have a report that uses a datawindow and on it I placed "Page n of
> > n" by Insert:Control:Page n of n from within PowerBuilder 10.5.
> > However, when I run the report, the page number on the report on
> > screen can display page 1 of 1 or page 1 of 2, or page 1 of 3 or page
> > 1of 4 up to page 1 of 15 depending on how I resize the report on
> > screen even though when I print there are only two pages and on the
> > printed report it correctly shows 1 of 2 and 2 of 2.  Is there anyway
> > to correct this behaviour?
>
> That is the correct behavior.  When the datawindow is NOT in print.preview
> mode, the page numbering is based on the size of the physical datawindow
> control.  If you want to force the numbering to be that for the printed
> output, then put the datawindow into print preview mode.

How do I put the datawindow into print preview mode?


Scott Morris Posted on 2009-10-06 19:06:30.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com> <4acb82af$1@forums-1-dub> <8b7e22dd-0424-461f-bf34-b55935459224@g22g2000prf.googlegroups.com>
Subject: Re: Datawindow Page n of n bug
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4acb9536$1@forums-1-dub>
Date: 6 Oct 2009 12:06:30 -0700
X-Trace: forums-1-dub 1254855990 10.22.241.152 (6 Oct 2009 12:06:30 -0700)
X-Original-Trace: 6 Oct 2009 12:06:30 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90060
Article PK: 409665

> How do I put the datawindow into print preview mode?

Via code:

<DW Control Name>.Modify("DataWindow.Print.Preview=<Yes or No>")
<DW Control Name>.Object.DataWindow.Print.Preview='<Yes or No>'

You can also do this via the IDE in the preview pane via File/Print Preview.


Terry Dykstra [TeamSybase] Posted on 2009-10-06 22:12:07.0Z
Reply-To: "Terry Dykstra [TeamSybase]" <dontreply_tddykstra@forestoil.ca.x>
From: "Terry Dykstra [TeamSybase]" <tddykstra@forestoil.ca>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <e28c2584-9179-4ad0-9e67-970d239de3bf@g22g2000prf.googlegroups.com> <4acb82af$1@forums-1-dub> <8b7e22dd-0424-461f-bf34-b55935459224@g22g2000prf.googlegroups.com> <4acb9536$1@forums-1-dub>
Subject: Re: Datawindow Page n of n bug
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
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: <4acbc0b7$1@forums-1-dub>
Date: 6 Oct 2009 15:12:07 -0700
X-Trace: forums-1-dub 1254867127 10.22.241.152 (6 Oct 2009 15:12:07 -0700)
X-Original-Trace: 6 Oct 2009 15:12:07 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90062
Article PK: 409668

And to find that syntax you'll want to use the DWSyntax tool: File, New,
Tool, DWSyntax

--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"Scott Morris" <bogus@bogus.com> wrote in message
news:4acb9536$1@forums-1-dub...
>> How do I put the datawindow into print preview mode?
>
> Via code:
>
> <DW Control Name>.Modify("DataWindow.Print.Preview=<Yes or No>")
> <DW Control Name>.Object.DataWindow.Print.Preview='<Yes or No>'
>
> You can also do this via the IDE in the preview pane via File/Print
> Preview.
>