CrystalReport "访问被拒绝" 错误的处理
今天用.NET开发CrystalReport时碰到一个“访问被拒绝”的错误,页面代码如下:
问了一下报表平台开发组的兄弟,原来错误是sFilePath前还要加一个前缀rassdk://,如下
object sFilePath = @"rassdk://E:\\AAA.rpt";
ReportClientDocument RCD = new ReportClientDocumentClass();
RCD.ReportAppServer = "GRD-DAVI-XIONG";
object sFilePath = @"E:\AAA.rpt";
RCD.Open(ref sFilePath,0);
CrystalReportViewer1.ReportSource = RCD;
RCD.ReportAppServer = "GRD-DAVI-XIONG";
object sFilePath = @"E:\AAA.rpt";
RCD.Open(ref sFilePath,0);
CrystalReportViewer1.ReportSource = RCD;
问了一下报表平台开发组的兄弟,原来错误是sFilePath前还要加一个前缀rassdk://,如下
object sFilePath = @"rassdk://E:\\AAA.rpt";