私には問題があり、解決するためにはわかりません。異なるスキーマを使用して2つの.RDLCレポートを使用
私は2つの異なるスキーマを持つ2 .rdlc
レポートがあります:私は Microsoft.ReportViewer.Comon.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
Microsoft.ReportViewer.WinForms.dll
を使用する必要がある最初のレポートを実行するには http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition
:
まず: http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition
セカンドをバージョン8.0.0.0
が、私は目のレポートを実行しようとすると、私はエラーました:
詳細:レポート定義をアップグレードすることはできません、無効なターゲット名前空間「http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition」を有します。
だから私は、バージョン10.0.0.0
で.dll
を必要とするが、それは、バージョン8.0.0.0
でMicrosoft.ReportViewer.WinForms
を必要とするので、私は働いて8.0.0.0
10.0.0.0
に最初のレポートストップからのバージョンを変更したとき。
私が追加しよう:
設定ファイルで<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportViewer.WinForms" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
</assemblyBinding>
が、薄い何も変更しないでください。
1つのプログラムでこのレポートを2回実行する方法はありますか?
私は別のassemblyBinding
セクションを使用して、私は
ReportViewer 2010
を使用して古い2005
rdlc
ファイルの表示も問題ありません