
CRViewer in form stays too small (do not use the hole form size)
Hi everybody
MS ACCESS 2002 on Windows Xp / Crystal Decisions 9
I have a form "f4" and want to start the CRViewer in form "f5"
see code below !
It work fine.. but the Crystal Report viewer inside my form "f5" have
a size of 2 inches.. i can see (i have good eyes) that the report is
ok ..
but too small ..
How can i increase it ??
Nb: with "zoom" I can increase the content but th Control stays small
!!
----------- code in form "f4" ----------------------------------
Option Compare Database
Dim crxApplication As New CRAXDRT.Application
Public Report As CRAXDRT.Report
Private Sub Command1_Click()
DoCmd.OpenForm "F5"
End Sub
Private Sub Form_Load()
Set Report = crxApplication.OpenReport("C:\hess\access_appli_test\bases_mini\crystal_report\e_cli3.rpt",
1)
End Sub
----------- code in form "f5" ----------------------------------
Private Sub Form_Load()
CRViewer1.ReportSource = Forms!f4.Report
CRViewer1.ViewReport
CRViewer1.Zoom 100 ' ca marche mais agrandit le contenu pas la fentre
Visible = True
End Sub
Private Sub Form_Resize()
'This code resizes the Report Viewer control to Form7's dimensions
CRViewer1.Top = 0
CRViewer1.Left = 0
CRViewer1.Height = 14400
CRViewer1.Width = 14400
End Sub
Private Sub Form_Open(Cancel As Integer)
DoCmd.MoveSize 1940, 2600, , 2600
End Sub