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.

Crystal RDC resize issue

3 posts in Objects Last posting was on 2003-07-29 12:58:59.0Z
dan Posted on 2003-07-28 16:18:53.0Z
Sender: 662e.3f254cba.1804289383@sybase.com
From: dan@cps92.com
Newsgroups: sybase.public.powerbuilder.objects
Subject: Crystal RDC resize issue
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f254cec.6637.846930886@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 28 Jul 2003 09:18:53 -0700
X-Trace: forums-1-dub 1059409133 10.22.241.41 (28 Jul 2003 09:18:53 -0700)
X-Original-Trace: 28 Jul 2003 09:18:53 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7512
Article PK: 734799

I am using the CRViewer9 ole object and the Crystal 9 RDC to
view Crystal Reports in my PB8 app. The problem is that I
cannot resize the report once it is open. When I first load
the object and a report, the object does size itself to fill
the control, but when I resize the control, the object
remains the same size.

In my window's resize event, I have
ole_crviewer.resize(this.width, this.height) and this does
resize the control but not the object. Any help/comments
would be greatly appreciated.

Dan


Matthew Chestnut Posted on 2003-07-28 20:24:08.0Z
From: Matthew Chestnut <NOSPAM_matthew_chestnut@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Crystal RDC resize issue
Message-ID: <fa1bivgk9grhi0h4703d6ikokusdmak5an@4ax.com>
References: <3f254cec.6637.846930886@sybase.com>
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.212.74.40
X-Original-NNTP-Posting-Host: 65.212.74.40
Date: 28 Jul 2003 13:24:08 -0700
X-Trace: forums-1-dub 1059423848 65.212.74.40 (28 Jul 2003 13:24:08 -0700)
X-Original-Trace: 28 Jul 2003 13:24:08 -0700, 65.212.74.40
Lines: 51
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7513
Article PK: 734800

// In window control resize event, resize
// Crystal view control with:
// ole_crystal.resize(newwidth, newheight)
// Then you have to do the following:
uint liHandle
liHandle = uf_GetWindow(handle(ole_crystal), 5)
uf_MoveWindow(liHandle, 0, 0, UnitsToPixels(newWidth,
XUnitsToPixels!), UnitsToPixels(newHeight, YUnitsToPixels!), true)

/////


Function uint GetWindow(long handle,uint relationship) Library
"USER32.DLL"

public function unsignedinteger uf_getwindow (long aui_handle,
unsignedinteger aui_relationship);
return GetWindow(aui_handle, aui_relationship)
end function


Function boolean MoveWindow(long hWnd, integer X, integer Y, integer
nWidth, integer nHeight, boolean bRepaint) Library "USER32.DLL"

public function boolean uf_movewindow (long hwnd, integer x, integer
y, integer nwidth, integer nheight, boolean brepaint);
return MoveWindow(hWnd, X, Y, nWidth, nHeight, bRepaint)
end function

On 28 Jul 2003 09:18:53 -0700, dan@cps92.com wrote:

>I am using the CRViewer9 ole object and the Crystal 9 RDC to
>view Crystal Reports in my PB8 app. The problem is that I
>cannot resize the report once it is open. When I first load
>the object and a report, the object does size itself to fill
>the control, but when I resize the control, the object
>remains the same size.
>
>In my window's resize event, I have
>ole_crviewer.resize(this.width, this.height) and this does
>resize the control but not the object. Any help/comments
>would be greatly appreciated.
>
>Dan


Dan Posted on 2003-07-29 12:58:59.0Z
Sender: 4ec3.3f266ba1.1804289383@sybase.com
From: Dan
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Crystal RDC resize issue
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f266f93.4fee.846930886@sybase.com>
References: <fa1bivgk9grhi0h4703d6ikokusdmak5an@4ax.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 29 Jul 2003 05:58:59 -0700
X-Trace: forums-1-dub 1059483539 10.22.241.41 (29 Jul 2003 05:58:59 -0700)
X-Original-Trace: 29 Jul 2003 05:58:59 -0700, 10.22.241.41
Lines: 3
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7518
Article PK: 734805

Thank you very much! I've been trying to figure this out
for months and I've posted articles to many different groups
and your's is the first response that works! Thanks!