I have 2 webforms Form1 and Form2.
Form1 has button Print
Form2 has CrystalReportViewer
I have VB code for Print_click
Datatable=something from database……
……………………………………….
Dim rpt As New ReportDocument
rpt.Load(Server.MapPath("Test.rpt"))
rpt.SetDataSource(datatable)
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.DataBind()
Problem is that Form1 doesn’t see Form2.CrystalReportViewer ( in VB6 I would say Form2.CrystalReportViewer1.ReportSource = rpt).
I make Public Class Form2 but I cannot see that form from Form1.
How to make webforms visible from one to another?
Thanks in advance
Form1 has button Print
Form2 has CrystalReportViewer
I have VB code for Print_click
Datatable=something from database……
……………………………………….
Dim rpt As New ReportDocument
rpt.Load(Server.MapPath("Test.rpt"))
rpt.SetDataSource(datatable)
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.DataBind()
Problem is that Form1 doesn’t see Form2.CrystalReportViewer ( in VB6 I would say Form2.CrystalReportViewer1.ReportSource = rpt).
I make Public Class Form2 but I cannot see that form from Form1.
How to make webforms visible from one to another?
Thanks in advance