如何在导出的数据中包装标题列。 [英] How to Wrap Header Column in Exported data.

查看:64
本文介绍了如何在导出的数据中包装标题列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家

我有直接从gridview导出数据到csv和excel文件的功能。现在我想包装标题列文本...意味着我的名字备注评论为

备注

评论



如何做到这一点plz help ....

谢谢

Hi Experts
I have function to export the data directly from gridview to csv and excel file .Now i want to Wrap the Header Column Text...Means iwant the name "Remark comment" as
"Remark
Comment"

How this is done plz help....
Thanks

推荐答案

你所做的只是使用EPPlus函数来包装所说的文字



What you do is you just use the EPPlus function to wrap said text

ExcelPackage.Workbook.Worksheets["Here"].Cells["A1:A2"].Style.WrapText = "The value you want to wrap";


这篇关于如何在导出的数据中包装标题列。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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