Crystal Reports 将插入某些图像,但不会插入其他图像 [英] Crystal Reports will insert certain images but not others

查看:20
本文介绍了Crystal Reports 将插入某些图像,但不会插入其他图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于要插入 CR 的图像是否有特定要求?

Are there specific requirements for images that are to be inserted into CR?

我正在尝试将图像插入 Crystal 报表,但在选择文件后没有任何反应.我有一个不同的图像,用于测试插入没有问题,所以我假设它与保存图像时的 JPG 文件设置有关.请注意,这只是页眉的静态徽标——没有动态加载任何内容.

I’m trying to insert an image into Crystal reports, but nothing happens after I select my file. I have a different image that I’ve used for testing that inserts with no problems so I’m assuming that it has something to do with the JPG file settings when saving the image. Note that this is just a static logo for a page header – nothing is being dynamically loaded.

我知道不能使用 GIF,所以我尝试了 JPG 和 PNG,但均无济于事.我什至通过 Photoshop 再次保存了我的工作"图像,它会插入.然后我使用这些设置来保存非工作图像,但该图像不会插入.我过去经常使用 Crystal Reports,这是我第一次遇到这个问题,我的搜索使我找到了用于动态图像包含的各种资源,但对于这个希望简单的问题却一无所获.

I know that GIFs cannot be used, so I’ve tried JPG and PNG to no avail. I’ve even saved my "working" image again through Photoshop and it will insert. I’ve then used those settings to save the non-working image, but that image wont insert. I’ve used Crystal Reports a lot in the past and this is the first time I’ve come across this issue and my searches lead me to a variety of resources for dynamic image inclusion, but nothing to for this hopefully simple issue.

我正在使用适用于 Visual Studio 2010 的 Crystal Reports.

I’m using Crystal Reports for Visual Studio 2010.

链接到用于测试的图像

推荐答案

搞了一天这个问题,发现是Crystal Reports IDE的一个bug.

After messing with this problem all day, I found out it’s a bug in the Crystal Reports IDE.

复制问题的方法如下:

  1. 右键单击您的报告并选择插入>>图片
  2. 双击您要插入的图片.

根据您的图像以及图像在 Photoshop 中的保存方式,它可能会或可能不会插入到报告中.我的结果好坏参半,显然有些图像有效,有些则无效.我还没有完全弄清楚图案,但我相信它与图像的颜色配置文件有关.我可能不会再浪费时间研究它了,因为以下分辨率每次都对我有用,我可以导入我在 Photoshop 中创建的每张图像,而不管图像是如何保存的以及用于保存图像的设置.(当然,假设它们都是 JPG.)

Depending on your image and how the image was saved in Photoshop, it may or may not insert into the report. I’ve had mixed results and apparently some images work and some do not. I haven’t quite figured out the pattern yet, but I believe it has to do with the color profiles of the image. I probably won’t waste any more time investigating it, because the following resolution has worked for me every time and I can import every image that I’ve created in Photoshop regardless of how the image was saved and the settings used to save the images. (Assuming that they’re all JPGs, of course.)

分辨率:

  1. 右键单击您的报告并选择插入>>图片
  2. 单击要插入的图像以将其选中.
  3. 点击打开"

图像应正确插入报告中.

The image should insert into the report properly.

这是一个微妙的区别,但我希望这可以节省其他人几个小时的调试时间.

It’s a subtle difference, but I hope this saves someone else a few hours of debugging.

戴夫

这篇关于Crystal Reports 将插入某些图像,但不会插入其他图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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