2013-04-27 153 views
0

我想要渲染此報告並在運行時打印它,而無需報告查看器能否幫助我?本地報告處理期間發生錯誤。 LocalReport rdlc

我試試這個代碼,我有例外本地報表處理過程中出現錯誤

string deviceInfo = CreateEMFDeviceInfo(0,0); 

string mimeType = null; 

string encoding = null; 

string fileNameExtension = null; 

Warning[] warnings; 

var list = localReport.ListRenderingExtensions(); 

Byte[] bytes = localReport.Render(format, "", out mimeType, out encoding, out fileNameExtension, out stream, out warnings); 

fs.Write(bytes, 0, bytes.Length); 

fs.Close(); 

回答

相關問題