troubleshooting Question

Lotus Notes Cannot Locate

Avatar of amit_banore
amit_banore asked on
2 Comments1 Solution3871 ViewsLast Modified:
I have a database with the form:PrintExpenseForm which i use as a Print form for an Expense Claim. The default printer on my workstation is working fine. I use the following code to achieve this. The code is in the action button of the Expense claim document. But i get the greetings in sequence:
1) Cannot Locate Form: PrintExpenseClaim
2) Cannot locate Default Form
3) Notes Error - Cannot locate Default Form

Anyone help????

     Dim ws As New NotesUiWorkspace
     Dim cDoc As NotesDocument
     Dim uiDocument As NotesUiDocument
     Msgbox "Please switch to Landscape mode before printing.", 48, "Alert"
     Set cDoc = ws.CurrentDocument.Document
     Set uiDoc = ws.CurrentDocument
     Call cDoc.replaceItemValue ( "Form", "PrintExpenseClaim" )
     Set uiDoc = ws.EditDocument ( False, cDoc )
     Call uiDoc.Print
     Call uiDoc.Close
     Call cDoc.replaceItemValue ( "Form", "ExpenseClaim" )
     Call cDoc.replaceItemValue ( "SaveOptions", "0" )    

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros