Where is the top border and the left border.

Posted by: qiaohj on 8 September 2017, 12:55 pm EST

  • Posted 8 September 2017, 12:55 pm EST

    the Farpoint v2.5


    in the demo file.


    Borders.cs line 141.


    i updated the code into


    fpSpread1.Sheets[0].Cells[1, 1,2,2].Border = new LineBorder(Color.Blue);
    fpSpread1.Sheets[0].Models.Span.Add(1, 1, 2, 2);


    then i can see a span cell with blue border.


    then i add a button with the onclick event


    fpSpread1.ActiveSheet.PrintInfo.Preview = true;
    fpSpread1.PrintSheet(0);


    in the Preveiew form, the merged cell's left border disappeared?


    how can i deal with this?

  • Replied 8 September 2017, 12:55 pm EST

    I was able to reproduce this but in my test the left side is visible but the top is not.  I will write this up as a bug since it also happens in v3.  I do not think there will be any more updates to v2.5.  In the meantime I would suggest using a ComplexBorder(which worked well for me) or using the other overload for the LineBorder...

    FarPoint.Win.LineBorder(Color.Blue, 2, True, True, True, True)
  • Replied 8 September 2017, 12:55 pm EST

    The problem is an issue with either the PrintPreviewControl or the printer driver. If you change the zoom level you'll notice the line does show for certain zoom levels. It appears that at times single pixels lines will not be rendered. Why this occurs we do not know but we are looking into.


Need extra support?

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

Learn More

Forum Channels