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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRViewer - ActiveX Control Question

Status
Not open for further replies.

jomax

Programmer
Jun 16, 2003
18
US
Using Crystal 9, web based reports.

Does anyone know of a setting in the CRViewer Object that will default the Active X Control to 'Page Width' instead of '100%'. It's annoying to our users who have to scroll to the right when the report displays.

Thanks!
 
Call the CRViewer's Zoom method after you call ViewReport:

CRViewer.Zoom 1

'1' is 'Fit to Width'.

-dave
 
Thanks, Dave - is there no way to specify it in the cab file parameters like so:

<PARAM NAME="EnableZoomControl" VALUE=1>

I do have it set on 1, but that's not working for me. From what I can understand, the value is a boolean, 0 for do not display, 1 for display.
 
I don't use asp, but I've got the samples from BO. In the SmartViewerActiveX.asp file, there is this on line 49:

CRViewer.ViewReport

Try adding 'CRViewer.Zoom 1' right after that line.

-dave
 
Yes, sir! That worked, thanks so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top