如何在c#中将pdf或excel文件添加或附加到crystal报表中 [英] How to add or attach a pdf or excel file into crystal report in c#

查看:92
本文介绍了如何在c#中将pdf或excel文件添加或附加到crystal报表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行时将pdf或excel文件附加到水晶报表中。是否有任何方法可以在不使用OLE对象的情况下添加pdf / excel?



我尝试了什么:



我的设计方式是,如果点击报告按钮,报告将随之打印我需要的excel表格将被打开。

现在我希望这张excel表格在他的水晶报告中打印。

请帮帮我

I want to attach either a pdf or excel file into the crystal report at run time.Is there any method to add pdf/excel without using OLE object?

What I have tried:

I designed in such a way that if the report button is clicked the report will be printed along with that the excel sheet that i needed will be opened.
Now I want this excel sheet to print inside he crystal report.
Please help me

推荐答案

没有OLE对象就无法这样做(如果Crystal Reports提供它,为什么不使用它们?)...

正如你所说的Excel使用该Excel文件作为子报告的数据源可能是更好的选择......
There is no way to do so without OLE objects (and why not to use them if Crystal Reports offer it?)...
As you are talking about Excel it may be a better option to use that Excel file as data source for a sub-report...


这篇关于如何在c#中将pdf或excel文件添加或附加到crystal报表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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