询问者
如何设置缩放,才能使ReportViewer报表显示比例不受Windows影响?

问题
全部回复
-
需要设置缩放大小
https://msdn.microsoft.com/zh-cn/library/microsoft.reporting.winforms.reportviewer.scale%28v=vs.120%29.aspx?f=255&MSPPError=-2147217396专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
-
Hi,
直接禁用窗体缩放如何?
范例:
Me.AutoScaleMode = AutoScaleMode.None
Regards,
Moonlight
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已建议为答案 Moonlight ShengMicrosoft contingent staff 2016年6月24日 9:14
- 取消建议作为答案 大海怪 2016年7月4日 6:49
-
Hi,
直接禁用窗体缩放如何?
范例:
Me.AutoScaleMode = AutoScaleMode.None
Regards,
Moonlight
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
韩立学
- 已编辑 大海怪 2016年7月4日 6:50
-
Hi,
>>而是windows10的“更改文本、应用和其它项目的大小”在作怪。
但是那个属性就是DPI scaling啊, winform和他匹配的就是这个属性。
另外,根据你的描述感觉像是下面这个属性影响了你的文件(控制面板\外观和个性化\显示),因为window的缩放属性会把控件都一起缩放:
如果和系统设置字体有个的话你可以尝试在onload方法中把窗体字体重写为默认大小:
Protected Overrides Sub OnLoad(e As EventArgs) Me.Font = New Font(Me.Font.FontFamily, Me.Font.SizeInPoints * 125 / 96)'125那边和当前dpi对应,默认是96 MyBase.OnLoad(e) End Sub
Regards,
Moonlight
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- 已编辑 Moonlight ShengMicrosoft contingent staff 2016年7月7日 8:43