I am creating a button in Lotus Notes email and want embed a script in that button. The script is to add network printer when the user clicks the button. I know how to create a button but don’t know how to attach a script in the button. Would someone give me a sample code or template? The script that I wish to attach to this button is:
Option Explicit
Dim multiPrinter, UNCpath1, UNCpath2
UNCpath1 = “\Server-12\Mul”
UNCpath2 = “\Server-12\Front”
Set multiPrinter = CreateObject(“WScript.Network”)
multiPrinter.AddWindowsPrinterConnection UNCpath1
multiPrinter.AddWindowsPrinterConnection UNCpath2
multiPrinter.SetDefaultPrinter UNCpath1
Subject: How to embed a script in a button
Hi there ,
do you have the Lotus Notes designer installed ? i beleive if designer is install you will see the code editor appearing automatically at the button creation . Or you may right click on the button then choose the “Edit button” menu option.
If you do not have installed the lotus notes designer , please do…
Subject: RE: How to embed a script in a button
I don’t even think you need to have designer if the button is just in a body field of a mail message. I have a button a lot of my users use and customize without designer.
The hardest part is teaching them how to either right click to get edit button, or as prefer to show them… Place the cursor after the button and arrow to the left until the “Text” pull down menu changes to the “Button” pull down menu. Then choose edit button.