Word Wrap changes when printing

Posted by: heromac on 8 September 2017, 1:52 pm EST

  • Posted 8 September 2017, 1:52 pm EST

    Hi,

    I'm trying  to print textboxcell with multiline and wordwrap set to true.On the screen everything looks fine. When printing the points where the text get's wrapped change, leading to text beeing cut off at the end. When using a Zoomfactor it gets worse, sometimes there is only one word per line. It seems like the cell uses the "wrap points" from the non-zoomed cell and that the text get's zoomed on a different scale than the cell itself.

     I'm using Spread 4.0.2001.2005 on VS 2005.

     

    Thx in advance and sorry for the bad english.

    Marc

     


     

  • Replied 8 September 2017, 1:52 pm EST

    Hello,

    I tested the reported issue with the 4.0.2009.2005 build of the control and the word wrap seems to be working correctly without cutting off any text. Attached is the sample project for your review. Let us know, if we have missed something or the steps to replicate the issue at our side.For the print, I have used the PrintSheet method.

    Thanks


    2009/05/TextBoxCellWordWrap.zip
  • Replied 8 September 2017, 1:52 pm EST

    The DrawString method of the graphics object is used to render the string to the screen/print out. The exact wrapping points will change due to the differences in the graphics object being rendered to. That is out of our control. If the exact wrapping point is necessary we suggest using hard coded line feeds.


     


     

Need extra support?

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

Learn More

Forum Channels