Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.Printing
Private binaryMemoryStream As System.IO.MemoryStream = Nothing
Private Sub btnBinarySave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBinarySave.Click
If Not Me.binaryMemoryStream Is Nothing Then
Me.binaryMemoryStream.Close()
End If
Me.binaryMemoryStream = New System.IO.MemoryStream()
Me.UltraPrintDocument1.SaveAsBinary(Me.binaryMemoryStream)
End Sub
Private Sub btnBinaryLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBinaryLoad.Click
If Me.binaryMemoryStream Is Nothing Then
Return
End If
Me.binaryMemoryStream.Position = 0
Me.UltraPrintDocument1.LoadFromBinary(Me.binaryMemoryStream)
End Sub