Solved

Auto Printing from Page vs. Form

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

19 Experts available now in Live!

Get 1:1 Help Now