本文介绍了无法使用第三方DEVX网格将格式化的excel数据复制到新的excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在vb.net编码的窗口应用程序中生成格式化的xlsx.
关闭应用程序后,当我尝试将数据从生成的格式化的excel复制到新的excel(使用右键单击->新的excel文档创建)时.仅文本被复制而没有格式.现在,如果我们将新excel的格式与复制excel合并,就可以使用格式化来复制数据.但是我很纳闷,有没有什么方法在每次复制时都不需要合并样式.
请为此提出一些解决方案..

此部分已从评论中移出-LOSMAC [/EDIT]
我正在使用第三方DEVX网格通过这种方法生成Excel数据.首先,我需要获取数据集,然后以编程方式将其与网格绑定,然后简单地调用以下方法,为我提供了自定义格式的excel

I''m generating a formatted xlsx in a window app coded in vb.net.
after closing the app When i tries to copy data from generated formatted excel to new excel (created using right click->new excel document). Only text get copied without the formatting. Now we can copy data with formatting if we merge the formatting of the new excel with the copying excel. But I was wonder is there any way that we wouldn''t need to merge style every time we copy.
Please suggest some solution for this..

This section was moved from comment - LOSMAC[/EDIT]
I''m using a third party DEVX grid to generate excel data using this method. first i need to fetch the dataset then i programmatically binding it with the grid then simply calling following method, gives me custom formatted excel

gvRuleLineUnBand.ExportToXls(_tempFileLocation, options)

推荐答案


这篇关于无法使用第三方DEVX网格将格式化的excel数据复制到新的excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 21:39
查看更多