Link to home
Start Free TrialLog in
Avatar of jforget1
jforget1

asked on

Auto Printing from Page vs. Form

Have used the code for some time on forms to have the print go to the users default printer automatically. I am in the process of doing a signature page that is static text, no fields and I thought it would be better to go via a Page vs. Form. Can I tweak this code so it will print the current page open which is the signature page. I think I need something to replace .CurrentDocument in the code.
Sub Click(Source As Button)
	Dim workspace As New NotesUIWorkspace
	Dim uidoc As NotesUIDocument
	Set uidoc = workspace.CurrentDocument
	Call uidoc.Print( 1 )
End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jforget1
jforget1

ASKER

OK thanks it was worth asking the questions. Converted them to forms instead.