Windows 7 中的水晶报表 - 报表在查看器内显示时具有巨大的左边距
我真的希望有人能在这里帮助我。我尝试过将SP1应用到Visual Studio 2008,将SP1应用到VB2008附带的Crystal Reports Basic来修复这个问题,但没有成功。我也尝试过设置边距、更改纸张尺寸和默认打印机。没有乐趣。
每次我在 Windows 7 中创建 ReportViewer 并为其提供 ReportDocument 时,报表都不会在 ReportViewer 中居中。如果我将窗口的宽度调整到可以看到报告的整个页面的程度,则左侧有很大一部分背景。我最初是在Windows XP下编码的(该错误在XP中不会发生,但在某些运行Windows 7的客户端系统上会发生),但是在将我的编码环境切换到Windows 7后,这个错误甚至在设计阶段就发生了!如果可以的话请帮忙。
屏幕截图:
http://i55.tinypic.com/53o135.jpg
正如您在此屏幕截图中看到的,右侧没有可见的 Crystal Report Viewer 背景,但左侧已经可见很大一部分。一旦窗口进一步放大,左侧就会变得更大。
I really hope someone can help me here. I have tried applying SP1 to Visual Studio 2008 and SP1 to Crystal Reports Basic that comes with VB2008 to repair this problem, but have had no success. I've tried setting margins, changing paper sizes and default printers too.. No joy.
Every time I create a ReportViewer and give it a ReportDocument in Windows 7, the report isn't centered in the ReportViewer. If I resize the width of the window to the point you can see the whole page of the report, theres a huge section of background to the left. I was originally coding under Windows XP (the error doesn't occur in XP but does occur on some client systems running Windows 7), but after swapping my coding environment over to Windows 7 this error even occurs at design stage! Please help if you can.
Screenshot:
http://i55.tinypic.com/53o135.jpg
As you can see in this screenshot, there is no Crystal Report Viewer background visible on the right, yet there is already a large section visible on the left. Once the window is enlarged further, the left becomes even larger still.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在Windows XP下使用Crystal XI,但我想我可以回答你的问题。
在下图中(取自您的图像),红色圆圈内的空白区域包含您的组树。单击其上方的图标(带有红色箭头)以隐藏组树。
灰色空间(绿色圆圈)告诉您部分名称,即页眉、组页脚等。要将其关闭,请进入文件->选项->布局强>。
我希望这能回答你的问题吗?哦,欢迎来到 StackOverflow :)
I'm using Crystal XI under Windows XP, but I think I can answer your question.
In the image below (taken from your image), the white space circled in red holds your Group Tree. Click on the icon above it (with the red arrow) to hide the group tree.
The grey space (circled in green) tells you the Section Names, i.e. Header, Group Footer, etc. To turn that off, go into File->Options->Layout.
Does this answer your question, I hope? Oh, and welcome to StackOverflow :)
好的,我找到了这个问题的解决方案。当用户在 Windows 显示设置中选择 120% 放大的对象时!您需要针对 DPI 变化进行调整
OK, I found the solution to this problem. It's when the user selects 120% magnified objects in their Windows Display settings! You need to adjust things for the DPI change