Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Call a report that was in a different form

What is the correct way to call a report that was in a different form?

This is my current code

Dim frmImprimeComprobante As New AdvancedReports.frm_RptRecepMerc

frmImprimeComprobante.ShowDialog()

frmImprimeComprobante.CrystalReportViewer1.SelectionFormula = "{tbRecepcionEnc.fdRecepcion} =" & 26 & "" & _

" and {tbRecepcionEnc.fdCodigoProveedor} =" & 4 & "" & _

" and {tbRecepcionEnc.fdCodigoMovimiento} =" & 1 & ""

frmImprimeComprobante.CrystalReportViewer1.ReportSource = "
AdvancedReports\AdvancedReports\RptRecepMerc.rpt"

frmImprimeComprobante.CrystalReportViewer1.RefreshReport()

But displays the following error:

Error 1 'AdvancedReports.frm_RptRecepMerc.Private Dim WithEvents CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewer' is not accessible in this context because it is 'Private'.
Glauco\TI Backup\Proyectos\Advanced\AdvancedDaily\AdvancedDaily\frm_Recepcion.vb 513 9 AdvancedDaily

Thanks from Costa Rica

Former Member
Not what you were looking for? View more on this topic or Ask a question