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

RDC Report Viewer and Default ZOOM Size

Status
Not open for further replies.

goodner

Programmer
Mar 30, 2005
7
US
Using the RDC viewer to display reports... The programming language is Clarion 5b. I have been able to successfully set the RDC viewer display size by the following command:

xWidth=GetSystemMetrics(0)
yHeight=GetSystemMetrics(1)

if xWidth=640 then
ThisWindow{prop:at,3}=315
ThisWindow{prop:at,4}=205
elsif xWidth=800 then
ThisWindow{prop:at,3}=396
ThisWindow{prop:at,4}=230
elsif xWidth=1024
etc.
etc.

I would also like to set a default ZOOM or display font size. The viewer is set to have a ZOOM Button with the command:
CrystalReport.HasZoomControl(1).
However the command to set the default ZOOM Level is not working: re = CrystalReport.SetZoomLevel(2). Questions: 1) In what application event should the command be placed? And 2) What are the valid commands for SetZoomLevel?

Any help is appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top