Change page margins in code

How can I set the page margins in code? I know how to make in in vcl but where are the properties in .net?
When I have to make this in script what event should I choose?

Thank you

Comments

  • edited 6:56AM
    units = millimeters

    script:
        private void Page1_StartPage(object sender, EventArgs e)
        {
          // margin = 1 cm
          Page1.LeftMargin = 10;
        }
    

    report from code:
                FastReport.ReportPage page = new FastReport.ReportPage();            
                report.Pages.Add(page);
                page.CreateUniqueName();
                page.LeftMargin = 10;
                page.RightMargin = 10;
                page.TopMargin = 10;
                page.BottomMargin = 10;
    
  • edited 6:56AM
    ipong wrote: »
    units = millimeters

    script:
        private void Page1_StartPage(object sender, EventArgs e)
        {
          // margin = 1 cm
          Page1.LeftMargin = 10;
        }
    

    report from code:
                FastReport.ReportPage page = new FastReport.ReportPage();            
                report.Pages.Add(page);
                page.CreateUniqueName();
                page.LeftMargin = 10;
                page.RightMargin = 10;
                page.TopMargin = 10;
                page.BottomMargin = 10;
    

    thank you, fast answer ; >

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.