如何从C#将数据网格导出到Excel模板 [英] how to export a datagrid to an Excel template from c #

查看:178
本文介绍了如何从C#将数据网格导出到Excel模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

向所有人致以问候,希望您能帮助我.

我开始用C#编程...,我需要将datagrid导出到Excel模板.

希望我能提供帮助,他们也将不胜感激.

Greetings to all and hope you can help me.

I''m starting to program in c # ... and I need to export a datagrid to an Excel template.

I hope I can help and they are grateful.

推荐答案

看,这并不容易,大多数情况下,至少在格式化时会出错,所以我建议您要使用telerik控件(telerik网格),我现在不知道是否有其他类似的控件(也可以阅读div express),它允许直接导出,因此您可以导出为PDF,XML,xls,note,.... ...因此它只是ex allowPDFExport ="True"的属性,然后您将看到有关此内容的导出按钮

问候
look man it is not easy and most of times it will make some error at least in formatting so i advise you to use telerik control(telerik Grid) i don''t now if there is another controls like these (read about div express also) it allows the direct export so you can export to PDF, XML,xls,note,.......so on it is just a property ex allowPDFExport = "True" then you will see an export button read about that

regards


这篇关于如何从C#将数据网格导出到Excel模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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