Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unrecognized escape sequence in Crystal Report viewer
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00693886
Message ID:
00694146
Vues:
15
It has been a frustrating 1.5 days trying to get that to work. Glad I'm getting paid by the hour, or I would starve to death. :-)

Thanks for your patience in helping me with this stuff.

>Hmm, I'm surprised that didn't work. The error is typically referencing an invalid string reference where it can't parse the information inside the string and evaluate the escape characters. I'm glad though that you were able to get you report working.
>
>>That didn't work. I tried double slashes and forward slashes, but it didn't work either. Instead I have switched setting the value in code and ignoring the path by doing this, which works.
>>
>>crvMain.ReportSource = Server.MapPath("test.rpt");
>>
>>>Try placing an "@" sign in front of your report path in line 15 like the following:
>>>
>>>
>>>@"C:\Program Files\Microsoft Visual Studio .NET\Crystal Reports\Samples\Reports\General Business\World Sales Report.rpt"
>>>
>>>
>>>>I get the following when viewing a page with the crystal report viewer on it. The preview works find with the VS.NET built-in browser, but throws this error with Netscape or IE is used.
>>>>
>>>>
>>>>
>>>>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: CS1009: Unrecognized escape sequence
>>>>
>>>>Source Error:
>>>>
>>>>
>>>>
>>>>Line 13: 		<form id="reportstaff" method="post" runat="server">
>>>>Line 14: 			<asp:Label id="lblMessage" runat="server"></asp:Label>
>>>>Line 15: 			<cr:CrystalReportViewer id=crvMain runat="server" Width="966px" Height="977px" ReportSource='< % ERROR: # "C:\Program Files\Microsoft Visual Studio .NET\Crystal Reports\Samples\Reports\General Business\World Sales Report.rpt"  % >' SelectionFormula="{Customer.Last Year's Sales}>0">
>>>>Line 16: 			</cr:CrystalReportViewer>
>>>>Line 17: 		</form>
>>>>
>>>>
>>>>Source File: c:\inetpub\wwwroot\inout\reportstaff.aspx    Line: 15
>>>>
>>>>
>>>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform