Skip to Content
0
Former Member
Jan 13, 2009 at 02:58 PM

How Pass parameter with Activex Viewer

205 Views

Developper enviroment:

- Crystal Report XI

- Visual Basic 6.3

- Access 2007

Installa library : CRAXDDRT, CrystalActiveXReportViewerLib11_5

I need to pass some Value to the parameter field of my reports.

I use this code that working well to show the report and I need to add the right code to pass some parameter to the Report.

-


Dim CRXApplication As CRAXDDRT.Application

Dim CRXReport As CRAXDDRT.report

Private Sub Form_Load()

Set CRXApplication = CreateObject("CrystalRuntime.Application")

Set CRXReport = CRXApplication.OpenReport("C:\GR&A_Trend\R1_analisi.rpt", 0)

CrystalActiveXReportViewer4.ReportSource = CRXReport

CrystalActiveXReportViewer4.ViewReport

CrystalActiveXReportViewer4.EnableSearchControl = True

CrystalActiveXReportViewer4.Zoom (100)

End Sub

-


Can You help me to add the right code to pass some parameter to the Report.

Thank's

Regards

Giovanni Roi