I need to bind a reportsource (already created .rpt), to a CrystalReportViewer. Programs:(VS.net2003 C# - Crystal Reports)
I have already read and followed the msdn instructions, but I think I am just in a panic. I cannot seem to make this work.
I started a new web project by using Asp.Net.WebApplication. I now have forms Webform1.aspx and it's partner .cs. I have added "Projects.rpt" to the project. Webform1 now has the CrystalReportViewer, and I used the drag and drop for the oracleConnection. How do I bind the Projects.rpt to the viewer?
The error I get is this:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1010: Newline in constant
Line 12: <body MS_POSITIONING="GridLayout">
Line 13: <form id="Form1" method="post" runat="server">
Line 14: <CR:CRYSTALREPORTVIEWER id="CrystalReportViewer1" style="Z-INDEX: 101; LEFT: 80px; POSITION: absolute; TOP: 64px"
Line 15: runat="server" Height="1089px" Width="1030px" ReportSource='<%# C:\\Inetpub\\wwwroot\\NOV30_IMPACT\\Projects.rpt" %>' HasRefreshButton="True">
Line 16: </CR:CRYSTALREPORTVIEWER></form>
Source File: c:\inetpub\wwwroot\NOV30_IMPACT\WebForm1.aspx Line: 14
It looks to me like I have the databinding language wrong. I could really use some help here. I am in a real bind! (No pun intended)