I am creating a new blank document, and in the initialisation code, I use a very small margin just to know if it is working.
Code
WPRichText1.Clear;
WPRichText1.SetZoomMode(-12);
WPRichText1.Header.PageSize := wp_DinA4;
WPRichText1.Header.Landscape := False;
WPRichText1.Header.LeftMargin := 10;
WPRichText1.Header.RightMargin := 10;
WPRichText1.Header.TopMargin := 10;
WPRichText1.Header.BottomMargin := 10;
WPRichText1.Header.UpdatePageInfo(True);
Alles anzeigen
Those margins are not reflected in the dotted lines representing the usable area.
Trying to debug this, I see that the UpdatePageInfo procedure in the WPRTEDefs module is void, and does not contain any code.
I am using version 7.07, and if I look to my previous version (7.03) there is some code in that function.
So, my questions are:
1.) How a simple matter like configuring margins to a new document is properly done.
2.) As UpdatePageInfo has no code, is this a bug, or this function will be deprecated in the future.