水晶报告图像被压扁 [英] crystal reports image squashed

查看:15
本文介绍了水晶报告图像被压扁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Crystal Reports(v11,如果这很重要)中是否有任何方法可以防止图像自行拉伸以适应整个 OLE 对象?我正在从数据库中动态加载图像,但不知道它们的纵横比.

Is there any way in Crystal Reports(v11, if this matters) to prevent the images from stretching itself to fit in the whole OLE-object? I'm loading the images dynamically from a database and don't know their aspect ratio.

感谢您的帮助.

推荐答案

我找到了答案 这里

要使图像正确调整大小,您必须按顺序执行以下步骤:

To make the image resize properly, you must perform the following steps in order:

  1. 将图片的 EnableCanGrow 设置为 true
  2. 计算宽度和高度并将其设置为所需的大小
  3. 将图片的 EnableCanGrow 设置为 false
  4. 用数据填充 DataSet 的图像对象
  5. 继续正常的报告处理.

如果您以错误的顺序获得这些物品,或跳过某个物品,您将发现 Crystal Reports 以意想不到且不可恢复的方式缩放图像.

If you get these items in the wrong order, or skip an item, you will find that Crystal Reports scales the image in unexpected and unrecoverable ways.

这篇关于水晶报告图像被压扁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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