简体   繁体   English

图片对象的Crystal Reports Can Grow选项

[英]Crystal Reports Can Grow option for picture object

I've got a crystal report built from v. 14.0. 我有一个从14.0版开始的水晶报表。

Inside the report I've got a picture object that I've set the scaling properties to 33%. 在报告中,我有一个图片对象,将缩放比例属性设置为33%。

The graphic location is set to pull from our DB. 图形位置设置为从数据库中提取。

I have two different images that I need displayed there depending on parameters passed into the report. 根据传递到报表中的参数,我需要在其中显示两个不同的图像。

They are both 300 DPI, 1950 x 319. 它们都是300 DPI,1950 x 319。

Of both images, one pulls in wrong. 在这两个图像中,一个错误。 It seems like it's scaling to 33% OF whatever 33% of the original image size is. 无论原始图像大小的33%是多少,它似乎都可以缩放到33%。 Basically looks like 1/3 of what it should look like. 基本上看起来应该是它应该看起来的1/3。

The other image pulls in exactly how it should look @ 33% scaled. 另一幅图像以33%的缩放比例精确显示了外观。

The scaling doesn't change in the picture object properties when each image is loaded, it stays @ 33%. 加载每个图像时,图像对象属性中的缩放比例不会更改,而是保持在33%。 If I change the one that comes in wrong to 100% scaled, then it looks correct which is weird, because @ 100% it should be way bigger. 如果我将错误的代码更改为100%缩放比例,那么看起来是正确的,这很奇怪,因为@ 100%应该更大。

I've tried copying the bad image into the good image and resaving but the same thing happens, the scaling gets set wrong. 我尝试将不良图像复制到良好图像中并重新保存,但发生相同的情况,缩放比例设置错误。

I can't figure out what's different about the images that's causing this weird behavior. 我无法弄清楚导致这种奇怪行为的图像有什么不同。

I've tried saving the images to bmp format but the same thing continues to happen. 我尝试将图像保存为bmp格式,但同一件事继续发生。 I've saved the images with multiple versions of photoshop and still nothing changes. 我已经使用多个版本的Photoshop保存了图像,但仍然没有任何变化。

Is anyone able to point me in the right direction here? 有人能在这里指出正确的方向吗? Thank you. 谢谢。

After much research we've identified something in the exif info that is causing this issue. 经过大量研究,我们在exif信息中发现了导致此问题的原因。

There's a block in the image that doesn't work called app0 that contains the jpg file interchange format information. 图像中有一个不起作用的块名为app0,其中包含jpg文件交换格式信息。 I don't know a whole lot about it other than we used an app called photostudio.exe to look at the exif info. 除了我们使用名为photostudio.exe的应用来查看exif信息外,我对此一无所知。

We then used a tool called exiftool to remove that block from the exif info. 然后,我们使用了一个名为exiftool的工具,将其从exif信息中删除。

After doing so, the image scaled perfectly to 33%. 这样做之后,图像完美缩放到33%。

It's almost as if Crystal is scaling, then looking at that first app0 exif block and failing, then scaling again (effectively just retrying their method), and looking at the next blocks without failing any further. 几乎就像Crystal正在缩放一样,然后查看第一个app0 exif块并失败,然后再次进行缩放(实际上只是重试其方法),然后查看下一个块,而不会再失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM