RDLC报表中ReportPath和ReportEmbeddedResource属性的使用区别
ReportPath的作用是为了关联外置报表文件
示例:
Dim pReportFile As String = My.Application.Info.DirectoryPath & "\Reports\DayReport.rdlc"
If (Not File.Exists(pReportFile)) Then
xLoad.Enabled = False
Return SuccessFailResult.createFail("Report file does not exist")
End If
Me.ReportViewer1.LocalReport.ReportPath = pReportFile
ReportEmbeddedResource的作用是为了关联内置的报表
示例:ReportViewer1.LocalReport.ReportEmbeddedResource = “ReportEmbeddedResource.DayReport.rdlc”
赋值的的格式为“{项目的Namesapce}.{报表名称}.rdlc”