Hi All,
I am not able to display the Crystal report Viewer in panel tag in aspx page.
Below is the code on aspx page.
<asp:Panel ID="pnlSeminarRegistrationReportViewer" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" BestFitPage="False"
Width="100%" BorderStyle="None" />
</asp:Panel>
And below is the code on aspx.vb page where i am getting dataset and trying to bind it into Crystal report viewer.
ds = ObjBalSeminarRegistration.Search_SeminarRegistration(ObjEntitySeminarRegistration, "")
Dim rep As ReportDocument = New ReportDocument()
rep.FileName = Server.MapPath("Reports/rptSeminar_Registration.rpt")
rep.SetDataSource(ds)
CrystalReportViewer1.BorderStyle = BorderStyle.None
CrystalReportViewer1.DisplayToolbar = False
CrystalReportViewer1.Zoom(150)
CrystalReportViewer1.BestFitPage = False
CrystalReportViewer1.HasCrystalLogo = False
CrystalReportViewer1.Width = "1180"
CrystalReportViewer1.Height = "770"
CrystalReportViewer1.ReportSource = rep
CrystalReportViewer1.DataBind()
FINALLY, ADD THE VIEWER WITH A PANEL CONTROL ON THE PAGE.
pnlSeminarRegistrationReportViewer.Controls.Add(CrystalReportViewer1)
pnlSeminarRegistrationReportViewer.Visible = True
CrystalReportViewer1.ShowFirstPage()
Thanks and Regards,
Darshan
Any help on this much appriciated :)