将图像从C#资源传递到水晶报告 [英] Pass image from C# resources to crystal report
本文介绍了将图像从C#资源传递到水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个项目,我在C#windows应用程序的Resources中保存了图像。
我尝试了什么:
I am creating a project that I saved the image in Resources in C# windows application.
What I have tried:
Dear Sir/Madam,
I really need to pass the image to Crystal report that I saved in C# Resources in my project.
Please, help me.
Regards,
推荐答案
看看c# - 从Resources / ResourceManager加载图像 - Stack Overflow [ ^ ]。有一个很好的例子如何使用资源。
另一种可能是将图像从资源保存到临时文件,然后传递名称和位置提交到报告。对于这种方法,请查看在运行时将图像加载到报告中 [ ^ ]
Have a look at the discussion in c# - Load Image from Resources/ResourceManager - Stack Overflow[^]. There's a nice example how to use a resource.
Another possibility could be to save the image from the resource to a temporary file and then pass the name and location for this file to the report. For such approach have a look at Load Image into Report at runtime[^]
亲爱的谢谢亲爱的我解决了我的问题。
Dear Thanks dear I solved my problem.
这篇关于将图像从C#资源传递到水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文