Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts
Report is shrinking fonts Report is shrinking fonts
Report is shrinking fonts
Go Back  Xtreme Visual Basic Talk > > > Report is shrinking fonts


Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2017, 09:41 AM
jpalatine jpalatine is offline
Centurion
 
Join Date: Oct 2003
Posts: 110
Default Report is shrinking fonts


Hi, I am using VS 2013 with reportviewer 11.0. My reports are shrinking to the left, e.g. when I design and show the report in reportviewer even though the body and report is 8.5/11 when it prints it will shrink the report to approximately 7/9. I even dummied up a report with one textbox and it did the same. Any suggestions, this is very consistent for this application, but other apps do not have this problem. Jim
Reply With Quote
  #2  
Old 07-05-2017, 04:23 PM
jpalatine jpalatine is offline
Centurion
 
Join Date: Oct 2003
Posts: 110
Default

OK I have found the solution but I need a fix. The problem was I had my panel resolution set to 125%, I am getting older. Which means my desktop was displaying data at 125% of their real size. So when I was in real time preparing the report the reportviewer tried to shrink the report which it did by the 25%. How can I tell reportviewer to stop shrinking the report is the display is set to anything other than 100%? Any help will be appreciated. JIM
Reply With Quote
  #3  
Old 07-05-2017, 05:00 PM
Cerian Knight's Avatar
Cerian KnightReport is shrinking fonts Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

I'm not well versed with reportviewer, but let us know what version of Windows you are using (which might be relevant to a workable solution)?
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
  #4  
Old 07-05-2017, 07:50 PM
jpalatine jpalatine is offline
Centurion
 
Join Date: Oct 2003
Posts: 110
Default

Windows 10
Reply With Quote
  #5  
Old 07-06-2017, 08:39 AM
Cerian Knight's Avatar
Cerian KnightReport is shrinking fonts Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

Have a look at this:
https://stackoverflow.com/questions/...tem-dpi-change

I was originally thinking about disabling display scaling for the exe, but it looks like the manifest recommendation is the best option.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
  #6  
Old 07-06-2017, 04:27 PM
jpalatine jpalatine is offline
Centurion
 
Join Date: Oct 2003
Posts: 110
Default

Thanks for the link. OK, so I am not totally versed in the fix, where and how do I add this to my manifest. I am totally unfamiliar with this and I need some step by step instruction. Can you help? thanks, jim
Reply With Quote
  #7  
Old 07-06-2017, 04:40 PM
jpalatine jpalatine is offline
Centurion
 
Join Date: Oct 2003
Posts: 110
Default

if it helps this is what is in the current manifest. It appears that some change is needed.

<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.

<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />

Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on and is
is designed to work with. Uncomment the appropriate elements and Windows will
automatically selected the most compatible environment. -->

<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->

<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->

<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->

<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->

<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->

</application>
</compatibility>

<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
-->

<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->

</assembly>
Reply With Quote
  #8  
Old 07-06-2017, 04:44 PM
Cerian Knight's Avatar
Cerian KnightReport is shrinking fonts Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

Edit: Now I see your manifest has the DPI info, but also a note on setting 'EnableWindowsFormsHighDpiAutoResizing' which might be relevant.

For basic manifest creation, I see three solution strategies (and many documentation links) here:
https://www.codeproject.com/Question...-in-my-project

Let me know if you need more help and I'll try to implement the DPI aware manifest myself (but don't have time at the moment).
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
  #9  
Old 07-08-2017, 06:13 AM
jpalatine jpalatine is offline
Centurion
 
Join Date: Oct 2003
Posts: 110
Default

Thank you. I was able to implement the DPI aware in the manifest. It actually made the other forms look rather dumpy. And more importantly it did not fix the reportviewer problem. The only way is to tell my users to set their dpi to 100%. This really looks like a problem with reportviewer. A big bug. But I thank you again for being so helpful. Jim
Reply With Quote
Reply

Tags
jim, report, reportviewer, shrinking, fonts


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts Report is shrinking fonts
Report is shrinking fonts
Report is shrinking fonts
 
Report is shrinking fonts
Report is shrinking fonts
 
-->