title: BLURRY TEXT - WINDOW FORMS - PANEL - VB.net
body: <p>I know this topic has MANY questions/answers but I am still drawing blanks. Running Windows 10, Visual Studio 2019. I have created a Windows Forms App (.NET Framework). Target is .NET Framework 4.7.2. I have a Form created with a Panel on the form. The Panel is sized to 384x576 which is approximate 4&quot; x 6&quot;. That is the exact size I have my page size set to. When I print preview (via code) it looks clear, but when it prints to my laser printer, some of the text is blurred. The text is a Label.
  My apologies up front, almost 80% of the code has been pieced together from &quot;MANY&quot; websites, so if you see any specific part of my code that looks like your code, sorry I am not giving proper credits in the footnotes.</p>
  <p>Here is some of my code:</p>
  <p>PRINT BUTTON</p>
  <pre><code>Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
      Dim myprintdialog As New PrintDialog
      memoryimage = New System.Drawing.Bitmap(Panel1.Width, Panel1.Height)
      Panel1.DrawToBitmap(memoryimage, Panel1.ClientRectangle)
  
      If myprintdialog.ShowDialog = DialogResult.OK Then
          Dim value As System.Drawing.Printing.PrinterSettings
          value = myprintdialog.PrinterSettings
          myprintdialog.Document = PrintDocument1
          PrintDocument1.PrintController = New StandardPrintController()
          Panel1.BackColor = Color.White
          PrintDocument1.Print()
      End If
  End Sub
  
  Private Sub PrintPage(sender As Object, e As System.Drawing.Printing.PrintPageEventArgs) Handles 
       PrintDocument1.PrintPage
      e.Graphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality
      e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
      e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
      e.Graphics.DrawImage(memoryimage, 0, 0)
  End Sub
  </code></pre>
  <p>and even app.manifest</p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;assembly manifestVersion=&quot;1.0&quot; xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;
  &lt;assemblyIdentity version=&quot;1.0.0.0&quot; name=&quot;MyApplication.app&quot;/&gt;
  &lt;trustInfo xmlns=&quot;urn:schemas-microsoft-com:asm.v2&quot;&gt;
  &lt;security&gt;
    &lt;requestedPrivileges xmlns=&quot;urn:schemas-microsoft-com:asm.v3&quot;&gt;
      &lt;requestedExecutionLevel level=&quot;asInvoker&quot; uiAccess=&quot;false&quot; /&gt;
    &lt;/requestedPrivileges&gt;
  &lt;/security&gt;
  &lt;/trustInfo&gt;
  &lt;compatibility xmlns=&quot;urn:schemas-microsoft-com:compatibility.v1&quot;&gt;
  &lt;application&gt;
  &lt;/application&gt;
  &lt;/compatibility&gt;
  &lt;application xmlns=&quot;urn:schemas-microsoft-com:asm.v3&quot;&gt;
  &lt;windowsSettings&gt;
    &lt;dpiAware xmlns=&quot;http://schemas.microsoft.com/SMI/2005/WindowsSettings&quot;&gt;true&lt;/dpiAware&gt;
  &lt;/windowsSettings&gt;
  &lt;/application&gt;
  </code></pre>
     
  <p>This can't be that difficult, or is it? I hope someone sees something that I am doing wrong. Any suggestion will be greatly appreciated.</p>