Print Preview ActiveX Active Users: 34 / Visits Today: 177
Highest Active Users: 101
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 PrinterName - Property
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: PrintQuality - Property Topic Next Topic: Port - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/23/2005 :  12:14:06  Show Profile
Property PrinterName

Action:

This property sets or returns the name of the printer for printing the current document.

Syntax:

PrinterName [ strPrName As String ] As String

Remarks:

When PrinterName is not set, the default printer is used, and PrinterName returns a empty string.

StrPrName must contain the same name of the printer as returned from the printers collection DeviceName.

Example:

To select a printer :

Dim prtLoop As Printer, Selection As Boolean

For Each prtLoop In Application.Printers
    With prtLoop
        Selection = MsgBox ("Device name: " & .DeviceName , vbYesNo)
        if Selection then
           Preview.PrinterName = .DeviceName
           Exit For
        endif
    End With
Next prtLoop


Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com
Go to Bottom of Page
  Previous Topic: PrintQuality - Property Topic Next Topic: Port - Property  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02