需要有关打印数据的帮助 [英] Need help regarding printing data

查看:42
本文介绍了需要有关打印数据的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我正在使用visual studio 2010 express edition.as你知道这个版本没有水晶报告。

那么请你告诉我如何进行打印..



和我正在寻找的一个,是否可以将数据发送到pdf文件并打印。



例如我在gridview中获取了一些数据,当我点击打印按钮时,它应该在pdf文件中显示数据。



请给我一些解决方案

谢谢

Hi all

I am using visual studio 2010 express edition.as u know there is no crystal report in this version.
so can you please tell me how to do the printing..

and one specially i am looking for, is it possible to send the data to pdf file and print.

e.g. i fetched some data in gridview and when i click print button , the it should show the data in a pdf file.

Please give me some solution for it
Thank you

推荐答案

参考: GridView to PDF [ ^ ]



这里:将DataGridView导出为使用Reporting Services报告生成的Excel / PDF /图像文件 [ ^ ]

它在C#中,但拥有你需要的一切。您应该能够获得逻辑以及如何继续进行导出。如果您需要VB.NET代码,网上有免费的转换器可以将C#片段转换为VB .NET [ ^ ]



另外从MSDN查看此主题可能对您有用:

如何将DataGridView导出到Excel [ ^ ]
Refer: GridView to PDF[^]

Here: Exporting a DataGridView to an Excel/PDF/image file by using Reporting Services report generation[^]
It''s in C#, but has all what you need. You should be able to get the logic and how to move ahead for export. In case, you need VB.NET code, there are free converter on net that can convert C# snippets into VB.NET[^]

Also check this thread from MSDN might be useful for you:
How to export a DataGridView to Excel[^]


我们可以在visual studio 2010中使用水晶报告。

查看这些链接你必须下载sap水晶报告



http://www.aspdotnet-suresh.com/2012/01/install-crysta l-reports-in-visual.html [ ^ ]





http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp [ ^ ]



http://www.businessobjects.com/jump/xi/crvs2010/default.asp [<一个href =http://www.businessobjects.com/jump/xi/crvs2010/default.asptarget =_ blanktitle =新窗口> ^ ]



希望这些链接可以帮助你:)
we can use crystal report in visual studio 2010.
check these links you have to download sap crystal reports

http://www.aspdotnet-suresh.com/2012/01/install-crystal-reports-in-visual.html[^]


http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp[^]

http://www.businessobjects.com/jump/xi/crvs2010/default.asp[^]

hope these links help u:)


这篇关于需要有关打印数据的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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