in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

PrintControl MarginChanged Event doesn't fire.

Last post 8/20/2008 2:18 PM by Alan (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 8/19/2008 1:47 PM

    PrintControl MarginChanged Event doesn't fire.

    I droped a PrintRibbonControler on a form, and set PrintControl MarginChanged event, but it doesn't fire. When user change the margin on Ribbon control, nothing happens.

    That is the right event to catch?

  • 8/20/2008 2:18 PM In reply to

    Re: PrintControl MarginChanged Event doesn't fire.

    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.
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED