将水晶报告导出为单词 [英] Exporting a crystal report to word
本文介绍了将水晶报告导出为单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题,即将报告导出到WORD文档,应用程序停止,没有Word文档
代码如下所示:
I have a problem whlie exporting my report to WORD document, the application stops, there is no Word document
the code looks like this:
oRPT.Load(Server.MapPath("hereisThePathofMYCRYSTAL.rpt"))
ds = FillDataset() 'Here do I fill the dataset (successfuly)
oRPT.SetDataSource(ds.Tables(0))
CrystalReportViewer1.ReportSource = oRPT
Dim formatType As ExportFormatType = ExportFormatType.NoFormat
formatType = ExportFormatType.WordForWindows
oRPT.ExportToHttpResponse(CrystalDecisions.[Shared].ExportFormatType.WordForWindows, Response, True, "")
推荐答案
嘿Voley,
我不是VB人,我是C#家伙,但我找到了一个解决方案。
这里是一个完整的链接您可以在VB.NET或C#.NET中导出Crystal报表的指南
http://www.aspsnippets.com/Articles/Export-Crystal-Report-on-Button-Click-to-Word-Excel -PDF-and-CSV-in-ASPNet.aspx [ ^ ]
干杯,享受编码:)
Hey Voley,
I am not a VB guy, I am a C# guy but I have found a solution for you.
here is link a complete guide for you to export Crystal report in VB.NET or C#.NET
http://www.aspsnippets.com/Articles/Export-Crystal-Report-on-Button-Click-to-Word-Excel-PDF-and-CSV-in-ASPNet.aspx[^]
Cheers,Enjoy Coding :)
这篇关于将水晶报告导出为单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文