在导入Excel数据的同时保留格式. [英] inporting excel data while retaining formatting.

查看:107
本文介绍了在导入Excel数据的同时保留格式.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以导入Excel数据以使用C#以任何格式显示(数据网格等.),同时保留粗体,斜体和删除线等格式.

Is it possible to import excel data to display using C# in any format(data grid etc ..) while retaining formatting like Bold, italic and strikethrough.

推荐答案

仅通过使用excel interop.您将需要使用互操作打开excel工作表并查询每个单元格的格式.
Only by using excel interop. You will need to open the excel worksheet using interop and query the formatting for each cell.


这篇关于在导入Excel数据的同时保留格式.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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