请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

15828075167
论坛元老   /  发表于:2014-12-13 17:59  /   查看:3416  /  回复:1
一、Report将chart加入至报表中,然后将报表以word导出,该如何实现呢?
我还是不是很清楚C1report、C1printDocument这些的关系。

二、PrintDocument如何导出Word的文档。

三、C1PrintDocument 的命名空间以及添加引用的文件名。

刚刚接触,还不是很了解,而且也没有找到相关的文档,希望能帮忙解答一下,麻烦了。

1 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2014-12-15 14:42:00
沙发
回复 1楼15828075167的帖子

1.你可以通过DocxExportProvider将C1Report导出到word文档。代码参考:
  1. DocxExportProvider dexpProvider = new DocxExportProvider();
  2. dexpProvider.CanExportRange(OutputRangeTypeEnum.All);
  3. OutputRange outputrange= new OutputRange(1, 2);
  4. c1Report1.C1Document.Export(Server.MapPath("File.docx"), dexpProvider, outputrange, true);

  5. //In case you want to export in RTF format you can simply render the report using RenderToFile() method as :
  6. //c1Report1.RenderToFile("RtfFile.rtf", FileFormatEnum.RTF);
复制代码

C1Report可以创建报表,C1PrintDocument可以打印文档。C1Report可以使用C1PrintDocument打印,但不仅限于。
有关产品描述:http://www.gcpowertools.com.cn/p ... reports_winform.htm

2.C1PrintDocument的export方法可以实现导出。
http://helpcentral.componentone. ... eport/webframe.html

3.命名空间:C1.C1Preview.C1PrintDocument
dll:C1.C1Report.4.dll
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部