1 (edited by manixs2013 2018-12-05 04:47:44)

Topic: RTF

Hello MVD!

is there a way set a default on the Print Preview
• left margin
• right margin
• top margin
• bottom margin
• Preview Orientation to : LANDSCAPE
* Set page Paper

Re: RTF

Please download latest beta version
https://www.dropbox.com/s/anufoqnsh809x … a.zip?dl=0


procedure Form1_OnShow (Sender: TObject; Action: string);
begin
    Printer.Orientation := poLandscape; // poPortrait
    Form1.RichEdit1.PrintSetup.Margins.Left := 50; // millimeters
    Form1.RichEdit1.PrintSetup.Margins.Top := 50;
    Form1.RichEdit1.PrintSetup.Margins.Bottom := 50;
    Form1.RichEdit1.PrintSetup.Margins.Right := 50;
end;

Settings for page size is not yet supported.

Dmitry.