从路径中载入动态图像在水晶报告中 [英] load dynamic image from path in crystal report

查看:160
本文介绍了从路径中载入动态图像在水晶报告中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的报告中显示一个图像,我在我的sqlserver数据库中保存图像的路径,现在我想从路径加载图像。我搜索所有的互联网,并尝试所有的指导,我第一次插入图像我的报告,然后我去>格式编辑器>图片>图形位置> ,并将图像的路径插入到文本区域中,像这样 {Command.path} ,但是当我运行时,图片。现在我该怎么办?

我使用visual studio 2013和最新版本的水晶报表。

I want to show an image in my report , I save path of image in my sqlserver database and now I want to load image from path .I search all of internet for that and try all of guidance , I first insert image into my report and after that I go to >Format Editor > picture > Graphic Location > and insert path of image into the textarea like this {Command.path} but when I run , it doesn't show any picture . Now how should I do ?
I use visual studio 2013 and latest version of crystal report .

推荐答案

根据,你做的正确。也许尝试设置一个等于 {Command.path} 的公式字段,然后使用它来看看水晶是否没有正确解析?这样,您可以显示公式字段并查看其显示方式。也许你用DB引号或空格来存储它?或者,使用参数应该肯定有效,因此您可以使用 {Command.path} 作为用于加载映像的参数来创建子报表。

According to this, you're doing it right. Perhaps try to set a formula field equal to {Command.path} and use that instead to see if crystal just isn't parsing it properly? That way you can display the formula field and see how it displays. Perhaps you're storing it in the DB with quotation marks or spaces? Alternatively, using a parameter should definitely work, so you could make a sub-report with {Command.path} as a parameter that it uses to load up the image.

这篇关于从路径中载入动态图像在水晶报告中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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