Top margin is being ignored.

  • Hello

    When printing out a letter using wprichtext, I have passed in a top margin of 0.25 inches, but when the letter prints it is not respecting the top margin. When I step through the code the topmargin is always correct, but when printed, the top margin is almost a 0.50 inch.

    Here is what my code looks like

    WPRichtext1.header.TopMargin := 360;
    WPRichtext1.header.BottomMargin := 1440;
    WPRichtext1.header.LeftMargin := 720;
    WPRichtext1.header.RightMargin := 720;

    WPRichText3.FastCopyProperties(WPRichText1);
    WPRichText3.FastAppendText(WPRichText1);
    WPRichText3.RTFData.UpdateReformatMode(False, True);
    WPRichText3.ReformatAll;
    WPRichText3.Print;

    Any ideas as to why the top margin is printing differently?