ReportViewerコントロールでwinformを使用しました。レポートにデータがロードされているときに、そのエラーが表示されます。ReportViewerのSystem.OutOfMemoryException winform - ローカルレポート処理中にエラーが発生しました
ローカルレポート処理中にエラーが発生しました。
レポート処理で予期しないエラーが発生しました。
例外の種類のSystem.OutOfMemoryException
System.OutOfMemoryException details
私は、フォームのLoadイベントにこのコードを使用:
DSは私のデータセットですReportViewr1.ProcessingMode = ProcessingMode.Local
Dim ReportDataSource2 As New Microsoft.Reporting.WinForms.ReportDataSource
ReportDataSource2.Name = RPSet.DataSetName
ReportDataSource2.Value = ds.Tables(0)
ReportViewr1.LocalReport.ReportPath = "C:\Reports\Report1.rdlc"
ReportViewr1.LocalReport.DataSources.Add(ReportDataSource2)
ReportViewr1.RefreshReport()
を。 私のシステム構成は次のとおりです。
のWindows 8.1 64ビット(本物)
コアi7プロセッサー
8 DDR3 RAMのGB(1600 FSB)
2ギガバイトDDR5グラフィックカード
500ギガバイトSSD
I私のプログラムのメモリ消費量は300〜400 MBであることがわかりました。 それから、なぜメモリ不足ですか? Only 322 MB consumed by program while processing - details
「ds」には何がありますか? –
これには、請求の詳細に関するフィルタを含むselectコマンドが含まれています。それは約1000行を返します。 – Admin
私のシステムは8GBのRAMと64ビットを持っています。プログラムはわずか322 MBを消費していますが、メモリ不足の例外を避けるために、プログラムのメモリ制限を増やす方法はありますか? – Admin