PrintInfo PaperSize in version 3

Posted by: stage on 8 September 2017, 12:44 pm EST

  • Posted 8 September 2017, 12:44 pm EST

    <P><FONT face=Arial size=2>In version 2.5 I was printing a sheet (PrintSheet) and was setting the PrintInfo on the sheet specifying the PaperSize to either legal or letter such as </FONT></P><FONT color=#000000>
    <P><FONT face=Arial size=2>printInfo.PaperSize = new System.Drawing.Printing.PaperSize("Legal", 850, 1400);</FONT></P>
    <P><FONT face=Arial size=2>Everything worked perfectly.</FONT></P>
    <P><FONT face=Arial size=2>In version 3 if I set the PaperSize the sheet will not print. It will go to the printer but just sits there in the queue but does not print. This is happening here when I am testing and at the client.</FONT></P></FONT>
  • Replied 8 September 2017, 12:44 pm EST

    Hello,<br><br>I tried this and didn't encounter any issues. I used the latest build of Spread for Win forms(3.0.2004.2005) using this code:<br> <pre class="coloredcode"> <span class="kwd">Dim</span> printset <span class="kwd">As New</span> FarPoint.Win.Spread.PrintInfo()<br> printset.PaperSize = <span class="kwd">New</span> System.Drawing.Printing.PaperSize(<span class="st">"Legal"</span>, 850, 1400)<br><br> FpSpread1.Sheets(0).PrintInfo = printset<br> FpSpread1.PrintSheet(0)</pre>  Make sure you're using the latest version of Spread Win 3. If you aren't using the latest, you can get that on our updates page:<br>http://www.clubfarpoint.com/FarPointSupportSite/Modules/Download/updates.aspx<br><br>It is possible that this is a printer issue. If using the latest Spread doesn't work, try updating your printer drivers and see if that helps.<br>
  • Replied 8 September 2017, 12:44 pm EST

    <P>I updated version and drivers and the problem still persisted for a while but on fresh testing today it now seems okay. I will do the same at the client site. Thanks.</P>
  • Replied 8 September 2017, 12:44 pm EST

    Maybe all it needed after the updates was a reboot and thats why it persisted. Glad to hear that it's doing better. If you have any other troubles, we're here to help. :)<br>
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels