ServerReport页面大小 [英] ServerReport page size

查看:76
本文介绍了ServerReport页面大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在winform应用程序中使用reportviewer来查看serverreport。当我将报告加载到reportviewer时,我想根据要显示的报告将查看器调整为纵向或横向。当我查看 ReportViewer1.ServerReport.GetDefaultPageSettings 时,无论rdl中的报告大小指定了什么,它都会显示为8.5x11。我尝试更改报告PageSize和InteractiveSize, GetDefaultPageSettings 仍然说8.5x11肖像。如何判断报告大小应该是什么,以便我可以在让用户看到之前控制查看器?

I am using a reportviewer in a winform application to view a serverreport. When I am loading the report into the reportviewer, I want to size the viewer to portrait or landscape depending on the report that is to be displayed. When I look at ReportViewer1.ServerReport.GetDefaultPageSettings, it says 8.5x11 no matter what is specified for the report size in the rdl. I have tried changing the report PageSize and InteractiveSize and the GetDefaultPageSettings still say 8.5x11 portrait. How can I tell what the report size is supposed to be so I can control the viewer before making it visible to the user?

推荐答案

我真的死在这里。谁能帮我?这是一个错误吗?我看错了设置吗?是否无法从ServerReport获取大小?我搜索并看到很多帖子引用本地报告但不是serverreport。我是唯一使用ServerReport的人吗?
I'm really dying here. Can anyone help me? Is this a bug? Am I looking at the wrong setting? Is it just not possible to get the size from the ServerReport? I've searched and seen lots of posts that refer to local reports but not serverreport. Am I the only one using a ServerReport?


这篇关于ServerReport页面大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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