如何解决Reportbuilder隐喻从.NET中的zlib Stream生成PDF
我设法在Firebird数据库中解压缩了存储的BLOB的zlib流。 问题是,此流包含使用“来自隐喻的Reportbuilder”(DELPHI)生成的报告。 我们没有Reportbuilder的许可证(嵌入在存储文件的软件中)
我需要在ASP.net网络服务中以PDF格式发送此报告。 非常感谢您的帮助,
到目前为止,我的代码(尚未生成报告)
while (reader.Read())
{
blob = reader.GetStream(0);
blob.ReadByte();// SKIP FIRST 2 BYTES
blob.ReadByte();
using (var zipStream = new DeflateStream(blob,CompressionMode.Decompress))
using (resultStream)
{
zipStream.CopyTo(resultStream);
}
}
return resultStream;
更新:
这是我现在拥有的结果resultStream(Base64Tofile)(SNAPSHOT) 因此,将其转换为实际PDF的任何操作都将很棒。
....................e..
....TPF0.TppPage..Absolu
tePageNo...AbsolutePageC
ount...Calculation..Cont
rolGroupBreakNo...Docume
ntName..Report.FirstPage
..Final..LanguageIndex..
.LastPage..PageNo...Page
Count...PassSetting..psO
nePass.PrintDateTime....
.#....@.PrinterSetup.Bin
Name..Magasin 2.PrinterS
etup.Collation..PrinterS
etup.DocumentName..Repor
t.PrinterSetup.PaperName
..A4.PrinterSetup.Printe
rName..Default.PrinterSe
tup.mmMarginBottom....P
**代码继续**
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。