惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
Simon Willison's Weblog
Simon Willison's Weblog
B
Blog
V
Visual Studio Blog
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
博客园 - 司徒正美
博客园 - 【当耐特】
T
Tenable Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium
S
Secure Thoughts
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
IT之家
IT之家
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
大猫的无限游戏
大猫的无限游戏
PCI Perspectives
PCI Perspectives
H
Hackread – Cybersecurity News, Data Breaches, AI and More
阮一峰的网络日志
阮一峰的网络日志
P
Privacy International News Feed
N
News and Events Feed by Topic
H
Hacker News: Front Page
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure
Google Online Security Blog
Google Online Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
H
Heimdal Security Blog
Project Zero
Project Zero
C
CERT Recently Published Vulnerability Notes
MyScale Blog
MyScale Blog
AI
AI
月光博客
月光博客
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
WordPress大学
WordPress大学
L
Lohrmann on Cybersecurity
TaoSecurity Blog
TaoSecurity Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
SecWiki News
SecWiki News
C
Cisco Blogs
The Last Watchdog
The Last Watchdog

博客园 - popcode

读取客户端收藏夹资料的问题 .net2.0 web site中的cs文件怎么编译为dll jsp与javascript delphi中的DBGrid无法刷新数据 ms的题目,无聊不妨看看 查询datatime类型 由传奇木马引起的遐想 com组件的调用 团队开发中使用什么开发工具 关于博客园Post的性质 [转]项目失败的经验 项目测试有感 安全警告 - MS04-009 CSDN专家分意义何存 道歉 什么是Blog 把Excel文件中的数据读入到DataGrid中 节日快乐 Microsoft IIS6.0实现WAP应用
Crystal Report的奇怪问题
popcode · 2004-04-19 · via 博客园 - popcode

最近在做报表,需要用到Crystal Report来做,在VS.net中做了一个小测试,在页面加入一个Crystal Report控件,指定一个rpt路径,在Design中能可以正常加载,可是当View in Browser,却出现了如下错误:

说明:
在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS1026: 应输入 )行 14: <CR:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Width="875px" Height="1163px" ReportSource="<%# d:\\wwwroot\\Report\\Report1.rpt %>">
提示的是14行出错。

如果不在控件里加ReportSource就不会出现这样的错误提示,于是把ReportSource写在Page_Load里,然后View in Browser就正常显示了。
代码如下:
private void Page_Load(object sender, System.EventArgs e)
  {
   // Put user code to initialize the page here
    CrystalReportViewer1.ReportSource = ("d:\\wwwroot\\Report\\Report1.rpt");
  }