Hi Robson,
I've tested and it works for me. For example, try the following code:
printControl1.Margin = new Padding(20);
Probably, you want to handle an event, when page margins are changing? If yes, you need to handle PrintingSystem.BeforeMarginsChange and PrintingSystem.AfterMarginsChange events instead:
printControl1.PrintingSystem.BeforeMarginsChange += new MarginsChangeEventHandler(OnMarginsChanged);
printControl1.PrintingSystem.AfterMarginsChange += new MarginsChangeEventHandler(OnMarginsChanged);
private void OnMarginsChanged(object sender, MarginsChangeEventArgs e) {
...
}
Is this what you need?
@.
R&D, .NET Team.
PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.