Solved

Auto Printing from Page vs. Form

Posted on 2009-04-02
2
166 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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