RS2008 背景图像大小调整
因此,我尝试创建一个能够使用 Reporting Services 2008 预先填写“政府表格”的报告。
现在,这一切都归结为每个人似乎都遇到的 96 DPI 问题。
假设我有一个 300 DPI 高分辨率 JPG 文件,我想将其用作报告的背景图像。 (这张 jpg 实际上是我试图预填充的政府表格的扫描件)
当您设置矩形对象(甚至整个报告正文)的“填充”选项时,您别无选择,只能保持原始大小。我似乎无法使图像与矩形的大小成比例。
如果我将图像添加为...“图像对象” - 我会得到我想要的正确震惊恐怖 - 因为我可以选择尺寸选项“适合比例”,然后将我的“图像对象”调整为我渴望。
但是 - 您不能将文本框覆盖在图像对象的顶部。因为我的图像对象包含我试图从数据集中预填充的字段 - 它失败了。
有什么想法吗?
So I'm attempting to create a report that is able to pre-fill a "government form" with Reporting Services 2008.
Now this all falls down to the 96 DPI issue everyone seems to be having.
Let's say I have a 300 DPI high res JPG file that I want to use as a background image for a report. (This jpg is actually a scan of the government form I'm trying to prefill)
When you set the Fill option of a rectangle object (or even the entire report body) - you have no option but for it to be it's original size. I cannot seem to get the image to fit proportional to the size of my rectangle.
If I add the image as a ... "image object" - I get my desired right shock horror - because I can select the sizing option "fit proportional" and then resize my "image object" as I desire.
BUT - you cannot overlay textboxes over the top of an image object. And because my image object contains fields I'm trying to prefill from a dataset - it fails.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我设法解决了这个问题。
对于那些感兴趣的人,请阅读本指南并下载示例项目作为示例(忽略有关显示/隐藏高/低分辨率版本的内容 - 我只是使用该示例来了解它们如何能够将文本框覆盖在图像之上)。
http://www.infoq.com/articles/Gogolowicz-Swanson-SSRS
您需要密切关注对象的父对象。记住这些注意事项;
Page_1 矩形需要有 BaseRectangle 的父级。
Page_1_Image 需要有 BaseRectangle 的父级。
所有 page1 文本框都需要有 Page_1 矩形的父级等等。
现在这一切都有意义了。
Ok so I managed to figure this out.
For those interested, read this guide and DOWNLOAD THE SAMPLE PROJECT for an example (ignore the stuff regarding showing/hiding high/low res versions - I merely used the example to see how they were able to overlay textboxes ontop of images).
http://www.infoq.com/articles/Gogolowicz-Swanson-SSRS
You need to keep an eye on an objects parent. Keep in mind these notes;
Page_1 rectangle needs to have a parent of BaseRectangle.
Page_1_Image needs to have a parent of BaseRectangle.
All page1 textboxes need to have a parent of the Page_1 rectangle etc.
It all makes sense now.