如何使用mvc4将水晶报表导出为html格式时获取页眉? [英] How to get page headers while exporting crystal report to html format using mvc4?

查看:87
本文介绍了如何使用mvc4将水晶报表导出为html格式时获取页眉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将水晶报告导出为.html格式时,它不显示任何页面中的页眉,也不显示页码,仅在最后一页显示页码。



我正在使用内存流将数据写入特定文件。

ex:

HttpResponse response = HttpContext.Current.Response;

MemoryStream流;

stream =(MemoryStream)reportDoc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.HTML40);

response.ContentType =text / html;

response.BinaryWrite(stream.ToArray());



急需帮助。



请帮我解决这个问题。



我试图添加屏幕截图,但这里没有添加。

While am exporting crystal report to .html format it is not showing page headers in any page and it is not showing page numbers also, showing page number only in the last page.

I am using memory stream to write data into a specific file.
ex:
HttpResponse response = HttpContext.Current.Response;
MemoryStream stream ;
stream = (MemoryStream)reportDoc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.HTML40);
response.ContentType = "text/html";
response.BinaryWrite(stream.ToArray());

Need help urgently.

Please help me to solve this problem.

I tried to add screen shot but it is not adding here.

推荐答案

这篇关于如何使用mvc4将水晶报表导出为html格式时获取页眉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆