automatic printerchoice in Notes 6.02

This is a discussion on automatic printerchoice in Notes 6.02 within the lotus-notes-programmer forums in Other Technologies category; Hello! I have a methode to change the standardprinter in Windows 2000, but the problem is, that Notes not recognize it, except I restart Notes. Is there a solution to tell Notes the active printer without restart it. Our Workstations run under Windows 2000 Prof SP4 with Notes 6.02. Below I've post the script code. Thanks in advance. Christian F. Sub myprinter(printer as string) Dim uiws As New NotesUIWorkspace Dim Database As NotesDatabase Dim session As New NotesSession Dim uidoc As NotesUIDocument Dim PrinterPathAndName As String Dim objNetwork As Variant Set Database=session.CurrentDatabase PrinterPathAndName=printer Set ...

Go Back   Database Forum > Other Technologies > lotus-notes-programmer

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 02-12-2004, 06:00 AM
Default automatic printerchoice in Notes 6.02

Hello!

I have a methode to change the standardprinter in Windows 2000, but
the problem is, that Notes not recognize it, except I restart Notes.

Is there a solution to tell Notes the active printer without restart
it.

Our Workstations run under Windows 2000 Prof SP4 with Notes 6.02.

Below I've post the script code.

Thanks in advance.

Christian F.

Sub myprinter(printer as string)
Dim uiws As New NotesUIWorkspace
Dim Database As NotesDatabase
Dim session As New NotesSession
Dim uidoc As NotesUIDocument
Dim PrinterPathAndName As String
Dim objNetwork As Variant
Set Database=session.CurrentDatabase
PrinterPathAndName=printer
Set objNetwork=CreateObject("WScript.Network")

objNetwork.SetDefaultPrinter PrinterPathAndName
Print "Printer changed to " + Cstr(PrinterPathAndName)

Set uidoc=uiws.CurrentDocument
Call uidoc.Print( 1 )
End Sub
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 09:24 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.