combit List & Label 29 - .NET Help
combit.Reporting Namespace / DrawDesignerObjectEventArgs Class / PrintFinished Property
Example


In This Topic
    PrintFinished Property
    In This Topic
    With this property List & Label is notified that no further data for the Designer object is available for printing and that List & Label is not asking for them anymore by DrawDesignerObject or GetFieldHeightInformation.
    Syntax
    'Declaration
     
    
    Public Property PrintFinished As Boolean
    public bool PrintFinished {get; set;}
    public:
    property bool PrintFinished {
       bool get();
       void set (    bool value);
    }
    Example
    class MyDesignerObject : DesignerObject
    {
    	// ...
    	protected override void OnDrawDesignerObject(DrawDesignerObjectEventArgs e)
    	{
    		// Design mode or print mode?
    		if (e.IsDesignMode)
    			e.PrintFinished = true;
    		else
    			e.PrintFinished = _lastPage; // Last page?
    		
    		// ...
    	}
    	// ...
    }
    Class MyDesignerObject
    	Inherits DesignerObject
    	' ...
    	Protected Overrides Sub OnDrawDesignerObject(e As DrawDesignerObjectEventArgs)
    		' Design mode or print mode?
    		If e.IsDesignMode Then
    			e.PrintFinished = True
    		Else
    			e.PrintFinished = _lastPage ' Last page?
    		End If
    		' ...
    	End Sub
    	' ...
    End Class
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also