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,

    I have the next code:

    printset.Header = "/cl\"0\"Print Job For FarPoint Inc./n /n /n /n PRUEBA";

    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

    Thanks
  • 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...

    Dim pi As New FarPoint.Win.Spread.PrintInfo
    pi.Header = "/cl""0""Print Job For FarPoint Inc./n /n /n /n PRUEBA "
    FpSpread1.ActiveSheet.PrintInfo = pi
    FpSpread1.PrintSheet(0)
  • 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...

    FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();
    pi.Header = "/cl\"0\"Print Job For FarPoint Inc./n /n /n /n PRUEBA ";
    fpSpread1.ActiveSheet.PrintInfo = pi;
    fpSpread1.PrintSheet(0);
  • 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

    FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();
    pi.Header = "/cl\"0\"Print Job For FarPoint Inc./n/n/n/n PRUEBA ";
    fpSpread1.ActiveSheet.PrintInfo = pi;
    fpSpread1.PrintSheet(0);
  • 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.
Need extra support?

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

Learn More

Forum Channels