PrintInfo PaperSize in version 3

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

  • Posted 8 September 2017, 12:44 pm EST

    <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>

    <FONT color=#000000>

    <FONT face=Arial size=2>printInfo.PaperSize = new System.Drawing.Printing.PaperSize("Legal", 850, 1400);</FONT>

    <FONT face=Arial size=2>Everything worked perfectly.</FONT>

    <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>

  • Replied 8 September 2017, 12:44 pm EST


    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:
            <span class="kwd">Dim</span> printset <span class="kwd">As New</span> FarPoint.Win.Spread.PrintInfo()
    printset.PaperSize = <span class="kwd">New</span> System.Drawing.Printing.PaperSize(<span class="st">"Legal"</span>, 850, 1400)

    FpSpread1.Sheets(0).PrintInfo = printset
      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:

    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.
  • Replied 8 September 2017, 12:44 pm EST

    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.

  • 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. :)
Need extra support?

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

Learn More

Forum Channels