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.

treeview PRINT

2 posts in Objects Last posting was on 2004-03-17 14:32:15.0Z
F Agostinho Posted on 2004-03-17 11:05:25.0Z
Sender: 43a0.4058300a.1804289383@sybase.com
From: F Agostinho
Newsgroups: sybase.public.powerbuilder.objects
Subject: treeview PRINT
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <405830f5.43a7.846930886@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Mar 2004 03:05:25 -0800
X-Trace: forums-1-dub 1079521525 10.22.241.41 (17 Mar 2004 03:05:25 -0800)
X-Original-Trace: 17 Mar 2004 03:05:25 -0800, 10.22.241.41
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7827
Article PK: 735100

Hi all.

I´m using the following code to print the content of a
treeview :

long Job

Job = PrintOpen( )
tv_1.Print(Job, 50,50)
PrintClose(Job)

It works fine when the items 'fit' the treeview control.
However, when expanding all the items (making the tree
bigger than the size of the control, it just prints the
'visible portion' of the treeview.

Can anyone please tell me how to print all the treeview
content in this situation?

Thanks,
Francisco


Bruce Armstrong [TeamSybase] Posted on 2004-03-17 14:32:15.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: treeview PRINT
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <gaog501h0dj9me0eqs9rp2jv9eplbo3690@4ax.com>
References: <405830f5.43a7.846930886@sybase.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
Date: 17 Mar 2004 06:32:15 -0800
X-Trace: forums-1-dub 1079533935 66.214.183.11 (17 Mar 2004 06:32:15 -0800)
X-Original-Trace: 17 Mar 2004 06:32:15 -0800, 66-214-183-11.la-cbi.charterpipeline.net
Lines: 50
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7828
Article PK: 735101

Look at the PFC implementation of the treeview, which has a print
function that handles the entire treeview.

On 17 Mar 2004 03:05:25 -0800, F Agostinho wrote:

>Hi all.
>
>I´m using the following code to print the content of a
>treeview :
>
>long Job
>
>Job = PrintOpen( )
>tv_1.Print(Job, 50,50)
>PrintClose(Job)
>
>It works fine when the items 'fit' the treeview control.
>However, when expanding all the items (making the tree
>bigger than the size of the control, it just prints the
>'visible portion' of the treeview.
>
>Can anyone please tell me how to print all the treeview
>content in this situation?
>
>Thanks,
>Francisco

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Techcast - What's New in PowerBuilder 10.0 - March 16 & March 18
http://crm.sybase.com/sybase/www/IPG/PowerBuilder10Regbn.jsp

Techcast - New Features and Benefits of Sybase EAServer 5.0 - March 23
http://crm.sybase.com/sybase/www/IPG/EAServer50TechcastReg.jsp

Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
http://www.powerobjects.com/seminar/?source=newsgroups

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org