来自Visual Studio 2005中DB的Reportviewer图像(请帮忙) [英] Reportviewer Images from DB in Visual Studio 2005 (Please help)

查看:68
本文介绍了来自Visual Studio 2005中DB的Reportviewer图像(请帮忙)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中使用reportviewer控件在本地Windows应用程序中生成报表。我无法从数据库中显示我的图像。我有一个非常好的图像,当我将它保存到文件时它显示得很漂亮,但当我将我的图像设置为相同的字节数组时......小红色 x

我试图在我的报告中查看我从数据库中检索到的图像。我尝试了everthing,将图像框的DB值作为字节数组,将byte []值修改为字符串,将数据源更改为位图等。但我读到的每个地方都必须是一个字节数组(我认为是byte [])。而且我无法在网上找到它或者一个例子!

I Tried to get a image viewed in my report that I retrieve from a DB. I tried everthing, giving the image box the DB value as byte array, modifying the byte[] value to be a string, changed the datasource to be a bitmap, etc. But everywhere I read it must be a byte array (byte[] i think). And I cant get it to work or a example on the web!

如果有可能有人将其解决了,那么如果有人能告诉我我必须做什么,或者它只是不工作,我将是一个非常幸福的人...为了让我停止尝试并使用有效的东西...

If it is possible that anyone have figered this out, I will be a very happy man if anyone out there can tell me what I must do, or that it just dont work... in order for me to stop trying and use something that does work...

请帮助......

谢谢

 

推荐答案

" REPORT VIEWER SUCK!" ;

"REPORT VIEWER SUCK!"

请,任何人,请帮忙...

please, anybody, please help...

我围绕上述问题创建了一个奇怪的工作,我保存图像子磁盘并显示它作为外部图片,不幸的是,当我在客户的电脑上安装它没有图片显示!它适用于我的机器,路径在我和客户机器上都很完美......但它没有在那里显示。如果有任何人从报告查看器控件获得任何满意(使用图像 - 而不是嵌入的图像),请给我一个如何做到这一点的提示。我不是一个新人,已经发展了近10年......

I created a weird work around the above problem where I save the image son disk and show it as external pictures, unfortunatly when i installed it on client's computer no pictures show! It works on my maschine, and the paths are perfect on both me and the clients maschine... but it dont show there. If there is anybody out there that got any satisfaction from the reportviewer control (using images - not imbedded ones) please give me a hint on how you did it. I am not a newby, have developed for almost 10years...

谢谢......


这篇关于来自Visual Studio 2005中DB的Reportviewer图像(请帮忙)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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