CRViewer in form stays too small (do not use the hole form size) 
Author Message
 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



Sun, 20 Nov 2005 23:01:16 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Funny Form-Sizes using MDI-forms

2. Small/big fonts affect form/pictures size??

3. Re-sizing controls on a form when the form is re-sized

4. Loss of Focus on a VB Form when calling ViewReport using the CRViewer

5. Staying on a record when using multiple forms

6. Forms Collection: Using it to Open Forms by Passing the Form Name as a String Variable

7. question about mdi forms and the size of their child forms

8. Small AVI does not appear as original size

9. How to auto size the main form/ MDI form

10. Sizing form inside mdi form.

11. Form size not properly remembered on program startup?!?

12. Form size not properly remembered on program startup?!?

 

 
Powered by phpBB® Forum Software