problem setting page margin

greetings

I have a problem setting page margin in runtime, I have next code:

[ procedure TRMReport.SetPropPage(frPage: TfrPage);
begin
with frPage do
begin
Prop := ConfigPage.TypePage;
Prop := ConfigPage.PageWidth;
Prop := ConfigPage.PageHeight;
Prop := ConfigPage.Rightmargin;
Prop := ConfigPage.Leftmargin;
Prop := ConfigPage.Topmargin;
Prop := ConfigPage.BottomMargin;
Prop := ConfigPage.Orientation;
UseMargins := True;
end; ]

then I Create Report dynamically, but no work fine.
When I see the result of frPage.rightmargin it is negative.

Any advice, I thank you

Diego

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.