WYSISYG Printing from wprichtext with runtime size change?

  • I would like to print the contents of a wprichtext as it is displayed on screen, with the visual word wrapping, but in a different font size.
    So I need to convert word wraps to #13 I am guessing before I decrease the font size.
    I used to use:
    wprichtext1.memo.fastappendactiveline
    and
    wprichtext1.lines.add(#13)
    but this no longer works.
    I tried using wprichtext1.lines[] but that returns entire paragraphs.

    • Offizieller Beitrag

    Hi,

    this does not look like a possible solution.

    I would implement a different printi routine which is using PrintPageOnCanvas at a different zoom level. This way the text is zoomed, all word wrap stays the same, no changes are done.

    See the Implementation of PrintPage (WPCtrMemo.pas) as example. There are also demos which use PrintPageOnCanvas.

    Julian