Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

This is what I do...

There some sort of strange problem with Notes and picking up the default printer. Here’s what works for me.

First, I use Notes 7.03/8.01 or higher. With these versions the "Print" method of NotesUIDocument has a new parameter called printerTitle which is the name of the printer you want to use. Read about it here...
http://www-01.ibm.com/support/docview.wss?rs=899&uid=swg21266977

When you use the printerTitle parameter, it changes the printer for Notes. To get Notes to recognize the default printer again, you have to change the default printer to something other than the default printer, and then change it back to the default printer. So it looks something like this...

Dim objWMIService As Variant
Dim wsh As Variant
Dim colPrinters As Variant
Dim defaultprinter as String

Set objWMIService = GetObject( "winmgmts:\\.\root\cimv2" )
Set colPrinters = objWMIService.ExecQuery( "Select * From Win32_Printer Where Default = TRUE" )
defaultprinter = colPrinters.ItemIndex( 0 ).name

Call UIDocToPrint.Print( 1 , , , , "desired printer" )

Set wsh = CreateObject( "WScript.Network" )
Call wsh.SetDefaultPrinter( "desired printer" )
Call wsh.SetDefaultPrinter( defaultprinter )

Notes should now use the default printer again.


Feedback response number WEBB8NDQ7R created by ~Kim Quetnulylen on 11/07/2011

get default printer name (~Lisa Fezjumiso... 3.Nov.11)
. . Link to an FAQ and a request (~Martha Lopjipy... 3.Nov.11)
. . Try this... (~Kim Quetnulyle... 4.Nov.11)
. . . . Any way to set the default printer?... (~Martha Lopjipy... 7.Nov.11)
. . . . . . This is what I do... (~Kim Quetnulyle... 7.Nov.11)
. . . . . . . . Sweet but... (~Martha Lopjipy... 8.Nov.11)
. . You can find it in the windows regi... (~Fritz Ekfoober... 3.Nov.11)
. . . . get default printer name (~Lisa Fezjumiso... 3.Nov.11)
. . . . . . In Domino Designer help just search... (~Fritz Ekfoober... 3.Nov.11)
. . . . . . . . RE: get default printer name (~Lisa Fezjumiso... 8.Nov.11)
. . . . . . . . . . Get and set default printer (~August Fezkist... 9.Nov.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS