Ho @lucas_marais
try RobotPageSetup properties and methods.

some additional explanations.

Sub SetPageSetup()
With New RobotApplication
If Not (.Visible = -1 And .Project.IsActive = -1) Then Exit Sub
With .Project.PrintEngine.PageSetup
.PaperSize = 9 ' << 9 = A4, 8 = A3
.PageOrientation = I_PSO_PORTRAIT
.MarginTop = 30
.MarginBottom = 25
.MarginLeft = 16
.MarginRight = 19
.Gutter = 2
With .TitlePage: .Active = True: .Frame = I_PSFT_NONE: End With
With .Header: .Active = True: .Frame = I_PSFT_FRAME: End With
With .Footer: .Active = True: .Frame = I_PSFT_SEPARATION_LINE: End With
With .Variables
.SetValue "PROJECT_NAME", "MyProject"
.SetPredefinedValue IRobotVariablePredefinedId.I_VPI_REPORT_PAGE_NUMBER, 1
End With
isSaved = .Save
End With
End With
End Sub
IRobotVariablePredefinedId overview.
Best Regards
Stéphane Kapetanovic
Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
