FASTREPORT COM/ActiveX报表如何保存到C++项目中?
来源: 发布时间:2016-08-08 浏览:1411次
可以的。
VC++ :
... IStream * pStream;CreateStreamOnHGlobal(NULL, true, &pStream);
pStream->AddRef();
pReport->PrepareReport(true);
pReport->SavePreparedReportToStream(pStream);
.....
C#:
System.IO.MemoryStreamms = new System.IO.MemoryStream();
Report.PrepareReport(false);
Report.SaveReportToStream( ms );