<cr:crystalreportviewer id=CrystalReportViewer2 style="LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" Width="966px" Height="977px" ReportSource='<%# "C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Crystal Reports\\Samples\Reports\\General Business\\World Sales Report.rpt" %>' SelectionFormula="{Customer.去年销售额}>0">
</cr:crystalreportviewer>
C#代码。预览时出现:CS1009: 无法识别的转义序列。
ReportSource表达式还有什么问题啊?

解决方案 »

  1.   

    <CR:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 16px" runat="server" Width="966px" Height="977px" ReportSource='<%# "D:\\Program Files\\Microsoft Visual Studio .NET 2003\\Crystal Reports\\Samples\\Reports\\General Business\\World Sales Report.rpt" %>' SelectionFormula="{Customer.去年销售额}>0">
    </CR:CrystalReportViewer>
      

  2.   

    楼上:预览时就一个水晶报表的控件,没有出现World Sales Report.rpt的内容,只是一个刚从工具栏拖入设计器的水晶报表没有DataBings的ReportSource。??
      

  3.   

    http://www.crystaldecisions.com/products/dev_zone/downloads/wrox4_report_integration_web.pdf