Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Datawindow Print Scaling

411 views
Skip to first unread message

Steve

unread,
Jan 27, 2010, 5:10:04 PM1/27/10
to
Hi all,

We are using PowerBuilder 7.0 application. I am trying to print a report
(which is a datawindow) and have used datawindow.print.scale to adjust
scaling to 50%. But the print out doesnt respect the scale that I have set
and it prints in 100% scale. If I print from Excel to the same printer, the
scaling happens - so I am guessing there is no issue with the printer
driver.

There is no error message with the modify statement also
(mydw.modify("datawindow.print.scale = 50")).

Has anyone seen this before?

Thanks!


Terry Dykstra [TeamSybase]

unread,
Jan 27, 2010, 6:25:36 PM1/27/10
to
According to dwsyntax you need single quotes around the 50:
mydw.modify("datawindow.print.scale = '50' ")

<DW Control Name>.Modify("DataWindow.Print.Scale='<a numeric percentage
(i.e. 50)>' ")
<DW Control Name>.Object.DataWindow.Print.Scale='<a numeric percentage (i.e.
50)>'

--
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

"Steve" <st...@gmail.com> wrote in message news:4b60b9bc$1@forums-1-dub...

Steve

unread,
Jan 27, 2010, 8:09:43 PM1/27/10
to
Hi Terry, there is no error with the syntax. i use a variable for the scale
and the modify command succeeds. I can run a describe command and i can
indeed see it is set to 50%.

One more development - it happens only with certain printers. With some
printers scaling does happen. Some printers, it doesnt.

thanks!


"Terry Dykstra [TeamSybase]" <tddy...@forestoil.ca> wrote in message
news:4b60cb70$1@forums-1-dub...

Chris Pollach

unread,
Jan 27, 2010, 11:58:01 PM1/27/10
to
Could be the old version of PB you are using ... especially on newer O/S's
and print drivers.

--

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


"Steve" <st...@gmail.com> wrote in message news:4b60e3d7$1@forums-1-dub...

Terry Dykstra [TeamSybase]

unread,
Jan 28, 2010, 10:43:20 AM1/28/10
to
Then it seems to be a printer driver issue. I would still report it to
Sybase (using CaseExpress).

"Steve" <st...@gmail.com> wrote in message news:4b60e3d7$1@forums-1-dub...

0 new messages