Report. Printer-Eigenschaft (Access)Report.Printer property (Access)
Gibt ein Printer -Objekt zurück, das den Standarddrucker im aktuellen System darstellt, oder legt dieses fest.Returns or sets a Printer object representing the default printer on the current system. Lese-/Schreibzugriff.Read/write.
SyntaxSyntax
Ausdruck. Druckerexpression.Printer
Ausdruck Eine Variable, die ein Report -Objekt darstellt.expression A variable that represents a Report object.
BeispielExample
Im folgenden Beispiel wird der erste Drucker in der Printers -Auflistung als Standarddrucker für das System und dann der Name, die Treiberinformationen und die Portinformationen gemeldet.The following example makes the first printer in the Printers collection the default printer for the system, and then reports its name, driver information, and port information.
Dim prtDefault As Printer
Set Application.Printer = Application.Printers(0)
Set prtDefault = Application.Printer
With prtDefault
MsgBox "Device name: " & .DeviceName & vbCr _
& "Driver name: " & .DriverName & vbCr _
& "Port: " & .Port
End With
Support und FeedbackSupport and feedback
Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation?Have questions or feedback about Office VBA or this documentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.