0

我想在没有报告查看器的情况下呈现此报告并在运行时打印它,你能帮帮我吗?

我试试这段代码,我有异常本地报告处理过程中发生错误

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();
4

0 回答 0