Hallo Zusammen
ich habe ein Problem mit der Printfunktion. Jedes mal wenn ich die Printfunktion aufrufe, druckt es mir nur ein leeres Blatt aus obwohl es ein Dialog ausdrucken sollte. Könnt ihr mir weiterhelfen ?
Danke für eine rasche Antwort.
ich habe ein Problem mit der Printfunktion. Jedes mal wenn ich die Printfunktion aufrufe, druckt es mir nur ein leeres Blatt aus obwohl es ein Dialog ausdrucken sollte. Könnt ihr mir weiterhelfen ?
VB.NET-Quellcode
- Private Sub cmdDrucken_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDrucken.Click
- Dim printDialog1 As PrintDialog = New PrintDialog
- printDialog1.Document = PrintDocument1
- Dim result As DialogResult = printDialog1.ShowDialog
- If (result = DialogResult.OK) Then
- PrintDocument1.Print()
- End If
- End Sub
Danke für eine rasche Antwort.