[RESOLVED] Changing the size of CrystalActiveXReportViewer dynamically
Hi
How to change the size of CrystalActiveXReportViewer ( Crystal viewer-Crystal report 10) dynamically according to users screen resolution in VB6.0?
Please provide the sample codings
Thanks in advance.
Re: Changing the size of CrystalActiveXReportViewer dynamically
In your forms resize event you can set the size of your report control to fill the form. so when the user max's the form the report control resizes along with it. Or set it to whatever size of the form you want.
Code:
Option Explicit
Private Sub Form_Resize()
If Me.WindowState <> vbMinimized Then
CRReportViewer1.Width = Me.ScaleWidth
CRReportViewer1.Height = Me.ScaleHeight
End If
End Sub
Re: Changing the size of CrystalActiveXReportViewer dynamically