如何显示在运行时选择的图像? [英] How to show images that are selected at run time?

查看:63
本文介绍了如何显示在运行时选择的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的报告查看器现在显示一些嵌入的图像。但是我需要显示一个在运行时创建的图表。我的图表模块(控件)可以创建一个图表,例如Graph.jpg,但它应该在报告生成时加载到报告中。怎么做?

谢谢

解决方案

我的报告在本地呈现,我的数据源是Linq存储过程结果集。我在结果类中添加了一个byte []成员和一个getter方法,为每一行生成图像。我可以将图像作为数据库图像引用,只需指定数据集成员的值。

http://stackoverflow.com/questions/1835358/rdlc-reportviewer-control-how-to-display-images-from-the-database / 1836194#1836194


My report viewer now shows some embedded images. But I need to show a graph which is created at run time. My charting module( control) can  create a graph say Graph.jpg, but it should be loaded into the report at the time of report generation. How to do that?

Thank you

解决方案

My reports render locally and I my datasource is a Linq stored procedure result set. I added a byte[] member and a getter method to the results class that produces the image for each row. I can reference the image as a database image and just assign the value of the dataset member.

http://stackoverflow.com/questions/1835358/rdlc-reportviewer-control-how-to-display-images-from-the-database/1836194#1836194


这篇关于如何显示在运行时选择的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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