Search Results for

    Show / Hide Table of Contents

    FlexCelPrintDocument.GetPrinterHardMargins Event

    On .NET there is no way to get the actual physical margins of a printer without a p/invoke. As FlexCel doesn't contain p/invokes (in order to be portable to any platform), it will try to guess the best value for them by averaging the printer visible clip area. If you are not getting good results, you can let FlexCel know the real printer margins on this event. Normally, you would call GetDeviceCaps for this.

    Remarks

    See the printpreview demo to see how this event can be used.

    Syntax

    Namespace: FlexCel.Render

    public PrintHardMarginsEventHandler GetPrinterHardMargins

    See also

    • FlexCelPrintDocument
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com