First of all I must say, My English language skill is not good but I'll try to communicate as best as possible.
I am using Visual Studio 2013Ultimate with Update4 on .NetFramework 4.5.1 and Crystal Reports SP13.0.13.1597
When installed complete. ( Previously i have tried it with my project but CR & CRviewer not working)
I have tried using CRviewer in a new asp.net page The following code
***-----WebFrom1.aspx-----***
<body>
<form id="form1" runat="server">
<div>
<asp:RadioButton ID="rdoByAll" runat="server" Text="all" GroupName="rdoChoose" AutoPostBack="True" />
FromDate :
<asp:TextBox ID="txtDateFrom1" runat="server" AutoPostBack="True"></asp:TextBox>
ToDate :
<asp:TextBox ID="txtDateTo1" runat="server" AutoPostBack="True"></asp:TextBox>
<asp:Button ID="btnCallReport1" runat="server" Text="CallReport" />
<br />
<br />
<asp:RadioButton ID="rdoByName" runat="server" Text="ByName" GroupName="rdoChoose" AutoPostBack="True" />
FromDate :
<asp:TextBox ID="txtDateFrom2" runat="server" Height="16px" Width="150px" AutoPostBack="True"></asp:TextBox>
ToDate :
<asp:TextBox ID="txtDateTo2" runat="server" Height="16px" Width="150px" AutoPostBack="True"></asp:TextBox>
<asp:Button ID="btnCallReport2" runat="server" Text="CallReport" />
<asp:DropDownList ID="ddlNamelist" runat="server" AutoPostBack="True">
</asp:DropDownList>
<br />
<br />
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" ToolPanelView="None" />
<br />
</div>
</form>
</body>
***-----WebFrom1.aspx.vb-----***
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Web
Public Class WebForm1
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub rdoByAll_CheckedChanged(sender As Object, e As EventArgs) Handles rdoByAll.CheckedChanged
If rdoByAll.Checked = True Then
txtDateFrom1.Enabled = True
txtDateTo1.Enabled = True
btnCallReport1.Enabled = True
txtDateFrom2.Enabled = False
txtDateTo2.Enabled = False
btnCallReport2.Enabled = False
ddlNamelist.Enabled = False
Else
txtDateFrom1.Enabled = False
txtDateTo1.Enabled = False
btnCallReport1.Enabled = False
txtDateFrom2.Enabled = True
txtDateTo2.Enabled = True
btnCallReport2.Enabled = True
ddlNamelist.Enabled = True
End If
End Sub
Protected Sub rdoByName_CheckedChanged(sender As Object, e As EventArgs) Handles rdoByName.CheckedChanged
rdoByAll_CheckedChanged(sender, e)
End Sub
Protected Sub btnCallReport1_Click(sender As Object, e As EventArgs) Handles btnCallReport1.Click
Dim rpt As New ReportDocument()
rpt.Load(Server.MapPath("CrystalReport1.rpt"))
Me.CrystalReportViewer1.ReportSource = rpt
Me.CrystalReportViewer1.RefreshReport()
End Sub
End Class
-------------------------------------------------------------------------------------------
When i press F5 to run project make Code of radiobutton not work(Disable,Enable OtherControl such as textbox)
And when i try press CallReportButton CRviewer do not show anything.
When I brought CRviewer leaving the page ,Code of Radiobutton were working fine.
But can't to show "CrystalReport1.rpt" on CRviewer when i click CallReportButton. i'm not understand.
Then i have tried to learn from follow this link : CR not working in visual studio 2013
and Using Crystal Report in ASP.Net website, Report not showing in CrystalReportViewer
i have to create a new CR ASP NET project and copy the whole C:\inetpub\wwwroot\aspnet_client folder
into my app folder and then add this to your web.config file, line in bold: <add key="vs:EnableBrowserLink" value="false"/>
project is working but not fine when I try to click button to call report I get this pop-up . " popup.JPG" what is it?
And project warning! could not find schema information every element . "Could not find every Element.JPG"
After that, copy the whole C:\inetpub\wwwroot\aspnet_client folder into my app folder Only! not add in my web.config
(In previous project need to use CR) make to project were working but i get same pop-up when i click to show report.
**** buleline in popup.JPG picture is "The report you requested requires further information"