Solved

Auto Printing from Page vs. Form

Posted on 2009-04-02
2
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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