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

推荐订阅源

T
Tenable Blog
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
H
Help Net Security
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
量子位
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
Scott Helme
Scott Helme
The Last Watchdog
The Last Watchdog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
AI
AI
WordPress大学
WordPress大学
Security Archives - TechRepublic
Security Archives - TechRepublic
Google Online Security Blog
Google Online Security Blog
U
Unit 42
V2EX - 技术
V2EX - 技术
MongoDB | Blog
MongoDB | Blog
Schneier on Security
Schneier on Security
博客园 - Franky
H
Heimdal Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Cloudbric
Cloudbric
B
Blog RSS Feed
N
News | PayPal Newsroom
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园_首页
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
雷峰网
雷峰网

博客园 - 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");
  }