.NETGURU
help with error
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-crystal' list.


Greg Bernhardt
hey everyone, i am desperatly trying to complete an insanly easy report, but
fail to do so. I placed a few fields on a blank report and when I try to
debug the project I get this error:

Compiler Error Message: CS1009: Unrecognized escape sequence

Source Error:

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: -152px; POSITION:
absolute; TOP: 0px" runat="server" ReportSource='<%#
"C:\inetpub\wwwroot\reports\crystalreport1.rpt" %>' Height="1070px"
Width="1030px">
Line 15:             </cr:CrystalReportViewer></form>
Line 16:     </body>

Reply to this message...
 
    
Tim Musschoot
I think it hase something 2 do with the pathname in the cr:.. Control.

Try this:

<cr:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101;
LEFT: -152px; POSITION: absolute; TOP: 0px" runat="server"
ReportSource='<%# "C:\\inetpub\\wwwroot\\reports\\crystalreport1.rpt"
%>' Height="1070px" Width="1030px" />

And if it does not work:

<cr:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101;
LEFT: -152px; POSITION: absolute; TOP: 0px" runat="server"
ReportSource='<%# @"C:\inetpub\wwwroot\reports\crystalreport1.rpt" %>'
Height="1070px" Width="1030px" />

I have no experience with a workaround. I got the same error a couple
of months ago, but then I decided to manually bind the report source to
the control (in my codebehind file).

Best Regards,
Tim Musschoot
Software Engineer
AspFriends Moderation Team
Click here to reveal e-mail address
http://www.aspalliance.com/timmusschoot

-----Oorspronkelijk bericht-----
Van: Greg Bernhardt [mailto:Click here to reveal e-mail address]
Verzonden: woensdag 14 augustus 2002 21:39
Aan: ngfx-crystal
Onderwerp: [ngfx-crystal] help with error

hey everyone, i am desperatly trying to complete an insanly easy report,
but fail to do so. I placed a few fields on a blank report and when I
try to debug the project I get this error:

Compiler Error Message: CS1009: Unrecognized escape sequence

Source Error:

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: -152px; POSITION:
absolute; TOP: 0px" runat="server" ReportSource='<%#
"C:\inetpub\wwwroot\reports\crystalreport1.rpt" %>' Height="1070px"
Width="1030px">
Line 15:             </cr:CrystalReportViewer></form>
Line 16:     </body>

| [ngfx-crystal] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-crystal.asp = JOIN/QUIT

Reply to this message...
 
    
Roshni
Hi
Try giving double slash in the path
Roshni
----- Original Message -----
From: "Greg Bernhardt" <Click here to reveal e-mail address>
To: "ngfx-crystal" <Click here to reveal e-mail address>
Sent: Wednesday, August 14, 2002 3:39 PM
Subject: [ngfx-crystal] help with error

> hey everyone, i am desperatly trying to complete an insanly easy report,
but
[Original message clipped]

Reply to this message...
 
    
Domina Tang
I test my report use your code, it works fine. Which CR version of your
report? VS.Net can only accept reports generated by 8.5 and above.

When I import report into VS project, and use code:
    dim rpt as myReport()
    crViewer.ReportSource = rtp
I might have error msg like 'Unrecognized escape sequence', but if set
report's Build Action property to 'Embedded Resource', error is gone.

Domina
-----Original Message-----
From: Greg Bernhardt [mailto:Click here to reveal e-mail address]
Sent: Wednesday, August 14, 2002 3:39 PM
To: ngfx-crystal
Subject: [ngfx-crystal] help with error

hey everyone, i am desperatly trying to complete an insanly easy report, but
fail to do so. I placed a few fields on a blank report and when I try to
debug the project I get this error:

Compiler Error Message: CS1009: Unrecognized escape sequence

Source Error:

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: -152px; POSITION:
absolute; TOP: 0px" runat="server" ReportSource='<%#
"C:\inetpub\wwwroot\reports\crystalreport1.rpt" %>' Height="1070px"
Width="1030px">
Line 15:             </cr:CrystalReportViewer></form>
Line 16:     </body>

| [ngfx-crystal] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-crystal.asp = JOIN/QUIT

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification