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.

how to change page orientation when using PrintOpen?

2 posts in General Discussion (Chinese) Last posting was on 2006-08-23 08:26:10.0Z
fishy Posted on 2006-08-19 16:01:54.0Z
Sender: 120d.44e735d8.1804289383@sybase.com
From: fishy
Newsgroups: sybase.public.chinese.powerbuilder.general
Subject: how to change page orientation when using PrintOpen?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <44e735f2.120e.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Aug 2006 09:01:54 -0700
X-Trace: forums-1-dub 1156003314 10.22.241.41 (19 Aug 2006 09:01:54 -0700)
X-Original-Trace: 19 Aug 2006 09:01:54 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.chinese.powerbuilder.general:92
Article PK: 104137

Hi,

I am using PB 8 + XP
I'd like to print several DWs to one PDF file by using
Acrobat Distiller and I coded PrintOpen + printDW(dw_1) +
printDW(dw_2) + printClose().
It should print in "Landscapt". But it overrides the DW's
printing properties and printed in "Portrait".

What Can I do? How to change the paper orientation? Update
Registry?

Many Thanks!


hni Posted on 2006-08-23 08:26:10.0Z
From: "hni" <hni@sybase.com>
Newsgroups: sybase.public.chinese.powerbuilder.general
References: <44e735f2.120e.1681692777@sybase.com>
Subject: Re: how to change page orientation when using PrintOpen?
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: hni-desktop.sybase.com
Message-ID: <44ec0eaf@forums-2-dub>
X-Original-Trace: 23 Aug 2006 01:15:43 -0700, hni-desktop.sybase.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Aug 2006 01:15:44 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Aug 2006 01:26:10 -0700
X-Trace: forums-1-dub 1156321570 10.22.108.75 (23 Aug 2006 01:26:10 -0700)
X-Original-Trace: 23 Aug 2006 01:26:10 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.chinese.powerbuilder.general:99
Article PK: 104145

could you first call modify like this

dw_control.Object.DataWindow.Print.Orientation = 1
then PrintOpen + printDW(dw_1) +
> printDW(dw_2) + printClose()...



pls set your printer

<fishy> wrote in message news:44e735f2.120e.1681692777@sybase.com...
> Hi,
>
> I am using PB 8 + XP
> I'd like to print several DWs to one PDF file by using
> Acrobat Distiller and I coded PrintOpen + printDW(dw_1) +
> printDW(dw_2) + printClose().
> It should print in "Landscapt". But it overrides the DW's
> printing properties and printed in "Portrait".
>
> What Can I do? How to change the paper orientation? Update
> Registry?
>
> Many Thanks!