New line (/n) no response

Posted by: atakazo on 8 September 2017, 1:01 pm EST

  • Posted 8 September 2017, 1:01 pm EST

    Hi,<br><br>I have the next code: <br><br>printset.Header = "/cl\"0\"Print Job For FarPoint Inc./n /n /n /n PRUEBA";<br><br>But, the word "PRUEBA" is not printed four lines below.  The word is printed one line below only.  Why? I use Spread for Windows Forms v25, 2.5.2013.2005<br><br>Thanks<br>
  • Replied 8 September 2017, 1:01 pm EST

    I tested this with the new maintenance release(2.5.2015.2005) and it prints the header correctly...<br><br>Dim pi As New FarPoint.Win.Spread.PrintInfo<br>pi.Header = "/cl""0""Print Job For FarPoint Inc./n /n /n /n PRUEBA "<br>FpSpread1.ActiveSheet.PrintInfo = pi<br>FpSpread1.PrintSheet(0)<br>
  • Replied 8 September 2017, 1:01 pm EST

    I then tested this with the 2.5.2013 version in C# and it also printed the header correctly...<br><br>FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();<br>pi.Header = "/cl\"0\"Print Job For FarPoint Inc./n /n /n /n PRUEBA ";<br>fpSpread1.ActiveSheet.PrintInfo = pi;<br>fpSpread1.PrintSheet(0);<br>
  • Replied 8 September 2017, 1:01 pm EST

    Thanks Bob, the problem is in code without space between /n.  We have a lot of code migrated from spread .com<br><br>FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();<br>pi.Header = "/cl\"0\"Print Job For FarPoint Inc./n/n/n/n PRUEBA ";<br>fpSpread1.ActiveSheet.PrintInfo = pi;<br>fpSpread1.PrintSheet(0);<br>
  • Replied 8 September 2017, 1:01 pm EST

    I don't believe the .Net product will recognize consecutive new line characters without a space between them.<br>
Need extra support?

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

Learn More

Forum Channels