我可以在不使用数据库的情况下在水晶报表中显示图像吗 [英] can i show image in crystal report without using database

查看:86
本文介绍了我可以在不使用数据库的情况下在水晶报表中显示图像吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

plz帮助..
如果不使用数据库,我可以在水晶报表中显示图像吗?再一次,我确认您不在数据库中的图像.
在此先感谢......

plz help..
can i show image in crystal report without using database if yes then how? again one time i confirm to u image not in database.
thanks in advance......

推荐答案

加我的两美分(对不起,我答复很晚).我将使用Crystal Reports创建一个rpt文件(如果您有该应用程序,否则将不得不使用Visual Studio,但这很可怕).您可以像在Word文档中一样在rpt中添加图像.确保根据需要将其放在节报表标题或页面标题中.

在.NET查看器中加载报告(使用参数,如果适用),它应该可以工作.

希望对您有所帮助.
To add my two cents (sorry for the late reply). I would create an rpt file with Crystal Reports (if you have the application, otherwise you''ll have to use Visual Studio, but it is dreadful). You can add an image in the rpt just like you would in a word document. Make sure to place it in the section report header or page header depending on what you need.

Load up the report in the .NET viewer (with parameters if applicable) and it should work.

hope this helps.


下面的代码示例可能是这样的:
It is possible with the below code sample:
ReportDocument rptTest1 = new ReportDocument();
rptTest1.Load(System.Web.HttpContext.Current.Request.MapPath("App_Reports/rptpic1.rpt"));
rptTest1.Database.Tables["Images"].SetDataSource(rptTest.ImageTable(System.Web.HttpContext.
Current.Request.MapPath("App_Data/test1.bmp")));



参阅相应于: http://aspalliance.com/1097_Importing_Dynamic_Images_to_the_Crystal_Report_without_Database_Overhead_using_Visual_Studio_2005 [ ^ ]



Refer the article at: http://aspalliance.com/1097_Importing_Dynamic_Images_to_the_Crystal_Report_without_Database_Overhead_using_Visual_Studio_2005[^]


尝试一下..

在没有数据库的Crystal报表中加载图像 [ ^ ]
try this..

Loading Image In Crystal Reports Without Database[^]


这篇关于我可以在不使用数据库的情况下在水晶报表中显示图像吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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