RBSupport and Margins!!

  • I'm upgrading from WPTools 5.29 to 5.30.

    I have a problem with the new RBSupport unit. If you make a new empty report with Report Builder.
    1. Put a TppWPRichText control in the detail band
    2. Activate the Stretch property
    3. Modify the text writing 2 pages of text.
    4. Now close the rich-editor and make a Preview.

    Text does not respect footer-height and right margin...

  • Have you solved that problem? I'm having the same!

    Thank you,

    Antonio Carlos


    Zitat von lucascompa

    I'm upgrading from WPTools 5.29 to 5.30.

    I have a problem with the new RBSupport unit. If you make a new empty report with Report Builder.
    1. Put a TppWPRichText control in the detail band
    2. Activate the Stretch property
    3. Modify the text writing 2 pages of text.
    4. Now close the rich-editor and make a Preview.

    Text does not respect footer-height and right margin...

    • Offizieller Beitrag

    Hi,

    The margins are ignored by the RB support. It uses it's own page size.

    This happens here:

    FPaintEngine.PageSizes.Clear;
    FPaintEngine.PageSizes.Add(
    MulDiv(lClientRect.Right - lClientRect.Left, 1440, WPScreenPixelsPerInch),
    $FFFFF); //MulDiv(lClientRect.Bottom - lClientRect.Top, 1440, WPScreenPixelsPerInch));
    try
    FPaintEngine.Reformat;
    TWPSizeMetafile(FCurrentPageImage).BeginDraw(
    MulDiv(lClientRect.Right - lClientRect.Left,
    FPaintEngine.Memo.CurrentXPixelsPerInch, WPScreenPixelsPerInch),
    MulDiv(lClientRect.Bottom - lClientRect.Top,
    FPaintEngine.Memo.CurrentYPixelsPerInch, WPScreenPixelsPerInch),
    FPaintEngine.Memo.CurrentXPixelsPerInch,
    FPaintEngine.Memo.CurrentYPixelsPerInch,
    fprinterdc);


    Here the current page size (RTFData.Header.PageWidth ..) could be used, too.

    Julian