Solved

Auto Printing from Page vs. Form

Posted on 2009-04-02
2
162 Views
Last Modified: 2013-12-18
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

0
Comment
Question by:jforget1
2 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 24057479
IMHO there's no functionality available to print a Page. A Page is not associated with a document, hence CurrentDocument will yield Nothing.

There may be dirty tricks to print a Page, e.g. using the SendKeys library. If you want to ogo that way, see www.benpoole.com and search for SendKeys...
0
 

Author Comment

by:jforget1
ID: 24058973
OK thanks it was worth asking the questions. Converted them to forms instead.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Email relaying to outside address 4 161
Lotus notes email code 6 112
How to connect (using VBA) to a IBM Notes webmail server 3 233
Cannot access mail archive from IBM domino 5 101
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now