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.

moving fields in datawindow on one machine slow on the other fast

3 posts in DataWindow Last posting was on 2009-06-03 11:07:43.0Z
Andy Posted on 2009-06-03 10:17:08.0Z
From: Andy <suica@usa.net>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: moving fields in datawindow on one machine slow on the other fast
Date: Wed, 3 Jun 2009 03:17:08 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <f6c98293-a915-4711-819d-1b6908b59633@h28g2000yqd.googlegroups.com>
NNTP-Posting-Host: 84.55.198.92
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1244024229 11061 127.0.0.1 (3 Jun 2009 10:17:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 3 Jun 2009 10:17:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h28g2000yqd.googlegroups.com; posting-host=84.55.198.92; posting-account=r2xFQQkAAAC43aWifa5JXQGf19lm-LR3
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!h28g2000yqd.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89425
Article PK: 418616

I have 30 fields that are positioned in a datawindow child by code
(below). The datawindow will be printed out on a single network
printer by different workstations. On one workstation the code below
needs 220 milliseconds to run and on another workstation in the same
network the code needs 70 milliseconds. Both of the workstations have
nearly the same performance.

If I have to position 30 fields and it lasts on one machine 6 seconds
and on the other only 2 secondes, besides that there are more things
to do related to the datawindow. At the end on one machine it lasts 13
seconds and on the other one 5 seconds until it prints out.

What could be the reason for that?

l_dwc.modify(ls_feldname+".x="+string(round((ll_x+dx)*ld_zoom,0)))
l_dwc.modify(ls_feldname+".y="+string(round((ll_y+dy)*ld_zoom,0)))
if ll_w > 0 then
l_dwc.modify(ls_feldname+".w="+string(ll_w))
end if
if ll_h>0 then
l_dwc.modify(ls_feldname+".h="+string(ll_h))
end if
if ll_fontsize <> 0 then
ls_mess += "ls_feldname:"+string(ll_x)+" "+string(ll_y)+"~r~n"
l_dwc.modify(ls_feldname+".font.height="+string(ll_fontsize))
end if


Jeremy Lakeman Posted on 2009-06-03 10:58:55.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: moving fields in datawindow on one machine slow on the other fast
Date: Wed, 3 Jun 2009 03:58:55 -0700 (PDT)
Organization: http://groups.google.com
Lines: 32
Message-ID: <5028abe3-0de0-4670-afcd-59d99ecb0fb4@q16g2000yqg.googlegroups.com>
References: <f6c98293-a915-4711-819d-1b6908b59633@h28g2000yqd.googlegroups.com>
NNTP-Posting-Host: 219.90.204.236
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1244026735 18562 127.0.0.1 (3 Jun 2009 10:58:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 3 Jun 2009 10:58:55 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q16g2000yqg.googlegroups.com; posting-host=219.90.204.236; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1b4) Gecko/20090423 Firefox/3.5b4,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!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit4.readnews.com!postnews.google.com!q16g2000yqg.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89427
Article PK: 418614


On Jun 3, 7:17 pm, Andy <su...@usa.net> wrote:
> I have 30 fields that are positioned in a datawindow child by code
> (below). The datawindow will be printed out on a single network
> printer by different workstations. On one workstation the code below
> needs 220 milliseconds to run and on another workstation in the same
> network the code needs 70 milliseconds. Both of the workstations have
> nearly the same performance.
>
> If I have to position 30 fields and it lasts on one machine 6 seconds
> and on the other only 2 secondes, besides that there are more things
> to do related to the datawindow. At the end on one machine it lasts 13
> seconds and on the other one 5 seconds until it prints out.
>
> What could be the reason for that?
>
> l_dwc.modify(ls_feldname+".x="+string(round((ll_x+dx)*ld_zoom,0)))
> l_dwc.modify(ls_feldname+".y="+string(round((ll_y+dy)*ld_zoom,0)))
> if ll_w > 0 then
>   l_dwc.modify(ls_feldname+".w="+string(ll_w))
> end if
> if ll_h>0 then
>   l_dwc.modify(ls_feldname+".h="+string(ll_h))
> end if
> if ll_fontsize <> 0 then
>   ls_mess += "ls_feldname:"+string(ll_x)+" "+string(ll_y)+"~r~n"
>   l_dwc.modify(ls_feldname+".font.height="+string(ll_fontsize))
> end if

Build one big modify string with spaces separating everything and only
call modify once. Then everything will be repositioned before being
measured and page breaked by the printer driver (don't you just hate
WYSIWYG?).


Chris Pollach Posted on 2009-06-03 11:07:43.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <f6c98293-a915-4711-819d-1b6908b59633@h28g2000yqd.googlegroups.com>
Subject: Re: moving fields in datawindow on one machine slow on the other fast
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
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: <4a26597f$1@forums-1-dub>
Date: 3 Jun 2009 04:07:43 -0700
X-Trace: forums-1-dub 1244027263 10.22.241.152 (3 Jun 2009 04:07:43 -0700)
X-Original-Trace: 3 Jun 2009 04:07:43 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89429
Article PK: 418619

Hi Andy;

In my similar experiences to this, I have found that the default printer
and the installed fonts to be a significant contributor or inhibitor to DW
drawing performance. Can you see if the installed fonts are the same between
the two machines?

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

"Andy" <suica@usa.net> wrote in message
news:f6c98293-a915-4711-819d-1b6908b59633@h28g2000yqd.googlegroups.com...
>I have 30 fields that are positioned in a datawindow child by code
> (below). The datawindow will be printed out on a single network
> printer by different workstations. On one workstation the code below
> needs 220 milliseconds to run and on another workstation in the same
> network the code needs 70 milliseconds. Both of the workstations have
> nearly the same performance.
>
> If I have to position 30 fields and it lasts on one machine 6 seconds
> and on the other only 2 secondes, besides that there are more things
> to do related to the datawindow. At the end on one machine it lasts 13
> seconds and on the other one 5 seconds until it prints out.
>
> What could be the reason for that?
>
> l_dwc.modify(ls_feldname+".x="+string(round((ll_x+dx)*ld_zoom,0)))
> l_dwc.modify(ls_feldname+".y="+string(round((ll_y+dy)*ld_zoom,0)))
> if ll_w > 0 then
> l_dwc.modify(ls_feldname+".w="+string(ll_w))
> end if
> if ll_h>0 then
> l_dwc.modify(ls_feldname+".h="+string(ll_h))
> end if
> if ll_fontsize <> 0 then
> ls_mess += "ls_feldname:"+string(ll_x)+" "+string(ll_y)+"~r~n"
> l_dwc.modify(ls_feldname+".font.height="+string(ll_fontsize))
> end if