spead.. about printHeader

Posted by: cokewoman on 8 September 2017, 12:45 pm EST

  • Posted 8 September 2017, 12:45 pm EST

    <P>hi~</P>
    <P>it's first time to post a question.</P>
    <P>I'd like to display 3lines printheader (below)</P>
    <P><printheader1></P>
    <P>               printheader2</P>
    <P>                                     printheader3</P>
    <P> </P>
    <P>Is it possible?<BR>i haven't found any other option with displaying printing header.<BR>looking forward to get answer clearly..help me..</P>
  • Replied 8 September 2017, 12:45 pm EST

    You can insert new lines in the header but it is not possible to have three different headers.<br>
  • Replied 8 September 2017, 12:45 pm EST

    <P>Hello,</P>
    <P>We do have escape codes you can use to put newline characters in the Header property of the PrintInfo. Here is some code to create 3 lines with the 3rd line centered.</P> <PRE class=coloredcode> <SPAN class=kwd>Dim</SPAN> p <SPAN class=kwd>As</SPAN> FarPoint.Win.Spread.PrintInfo
    p = FpSpread1.Sheets(0).PrintInfo
    p.Preview = <SPAN class=kwd>True</SPAN>
    p.Header = <SPAN class=st>"Line1/nLine2/n/cLine3"</SPAN>
    FpSpread1.PrintSheet(0)
    </PRE> 
  • Replied 8 September 2017, 12:45 pm EST

    <P>Thank you for your help~^^</P>
    <P>i'll try again.</P>
    <P>have a good day~</P>
Need extra support?

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

Learn More

Forum Channels