Original: http://www.cnblogs.com/minBear/Archive/2004/08/13/33124.aspx
CrystalReport "Access Denied" error
Today, when using .NET to develop CrystalReport, I encountered an "access denied" error, the page code is as follows:
ReportClientDocument RCD
=
New
ReportClientDocumentClassClass (); RCD.ReportAppServer
=
"
GRD-DAVI-XIiong
"
;
Object
SfilePath
=
@ "
E: /aaa.rpt
"
Rcd.open
Ref
SfilePath,
0
CrystalReportViewer1.Reportsource
=
RCD;
I asked the brother of the report platform development group. It turned out that there was a prefix rassdk: // before sfilepath, as follows Object sfilepath = @ "rassdk: // e: //aaa.rpt";