Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize Crystal's CRViewer9 in PowerBuilder

Status
Not open for further replies.

everkleer

Programmer
Nov 6, 2002
25
US
I am making a PowerBuilder application that uses Crystal's CRViewer9 control. The problem is that I can't seem to resize the object. When I resize the window, I run the following lines of code:
ole_reportviewer.height = this.height
ole_reportviewer.width = this.width
and the container for the object does resize but no matter what I do I can't get the object to automatically resize. I've tried several things like calling ole_reportviewer.object.ViewReport() again but nothing works. After the container is resized I can get the object to resize by playing around with the zoom control and stuff in the object but I can't get it to resize through my code. Does anyone now how I might do this?
 
I remember seeing a discussion about this issue in the "general" PowerBuilder forum:

powersoft.public.powerbuilder.general

You may want to search for it there.

hth,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
I found that message (10-07-02). Here it is:

---------------------------------------------------
From: Rani

I did find a way around that although the viewer still has issues that we
have 'masked'. I can't remember exactly how it all fell out but the end
result is that I had to set up a window with crviewer ole object on the PB
window with the properties set to displayasactivexdocument!. I believe this
fixed the blank screen problem which happened when you clicked on different
areas of the screen. I can't quite recall the chain of events because I had
to do a lot of trial and error til I got something that worked. But
changing this setting created a new problem in that you could not resize
the window and get the ole object to move with the resize. So this is
where I sized the window and the ole object in the window rather large so
they would not need to resize.

The other problem we had was the loss of the scroll bar and some other
strange things like that. This was resolved by changing the screen display
settings on the PC to 1024x768 which is now a requirement of our app. I
did contact crystal about this and they did not realize that they were
reliant on this resolution but did test outside PB and found that it was a
problem however I don't expect a fix in the near future.

Hope that helps! Let me know if you need more info.
I did find a way around that although the viewer still has issues that we
have 'masked'. I can't remember exactly how it all fell out but the end
result is that I had to set up a window with crviewer ole object on the PB
window with the properties set to displayasactivexdocument!. I believe this
fixed the blank screen problem which happened when you clicked on different
areas of the screen. I can't quite recall the chain of events because I had
to do a lot of trial and error til I got something that worked. But
changing this setting created a new problem in that you could not resize
the window and get the ole object to move with the resize. So this is
where I sized the window and the ole object in the window rather large so
they would not need to resize.

The other problem we had was the loss of the scroll bar and some other
strange things like that. This was resolved by changing the screen display
settings on the PC to 1024x768 which is now a requirement of our app. I
did contact crystal about this and they did not realize that they were
reliant on this resolution but did test outside PB and found that it was a
problem however I don't expect a fix in the near future.

Hope that helps! Let me know if you need more info.
-------------------------------------------------------

Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thanks. But from this it looks like this person found no way to resize the object? Just to start out with it large?
 
Looks like it, though I bet he did it with the 8/8.5 version. There are currently 9.0 runtime versions out.
Perhaps you should give those a try.

Cheers,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top