Call doc.Close Problem - Illegal use of PROPERTY

Posted on 2003-12-03
Last Modified: 2013-12-18
Please help me with this problem.
I want to close my response form (from were I am sending the e-mail) immediately after sending it.
I got an error: Illegal use of PROPERTY with the
Call doc.Close

Could you please tell me how to close the response form and come back to the parent form?

I am posting with 125 points and I will double it if I get a prompt correct answer.

Many thanks in advance!

Sub Click(Source As Button)
      Print "Submitting mail..."
      Dim ws As New notesuiworkspace
      Dim uidoc As notesuidocument
      Dim doc As notesdocument
      Dim parentDoc As NotesDocument
      Dim session As New notessession
      Dim db As notesdatabase
      Dim maildoc As notesdocument
      Dim Body As NotesRichTextItem
      Set db=session.currentdatabase
      Set uidoc=ws.currentdocument
      Set doc=uidoc.document
      Set parentDoc = GetParentDocument( doc)
      Set maildoc = New NotesDocument(db)
      Set Body=New NotesRichTextItem(maildoc,"Body")
      doc.EMAIL_DATE = Now()
      Call doc.Save( False, False )
      Call ws.ViewRefresh
      maildoc.Form = "Memo"
      maildoc.SendTo = doc.EMAIL_SENDTO
      maildoc.CopyTo = doc.EMAIL_COPYTO
      maildoc.BlindCopyTo = doc.EMAIL_BCC
      maildoc.Subject = doc.EMAIL_SUBJECT
      message1="Click here to open the form=========>>"
      message2="(You may delete this after review.)"
      Call Body.AppendText(doc.EMAIL_MESSAGE(0))
      Call Body.AddNewLine(2)
      Call Body.AppendText(message1)
      Call Body.AppendDocLink(parentDoc ,"Please click this link to open the document")
      Call Body.AddNewLine(2)
      Call Body.AppendText(message2)
      Call maildoc.Send( False, Recipient )
      Call doc.Close
End Sub
Question by:Zopilote
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
  • 3
  • 3
LVL 19

Accepted Solution

madheeswar earned 250 total points
ID: 9865528
call uidoc.close
LVL 19

Expert Comment

ID: 9865534
call doc.close(true)
LVL 19

Expert Comment

ID: 9865565
what happened? Did it solved?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 9865575
Hi again,
No, it does not work. It gives the same error.

Author Comment

ID: 9865583
Actually the first answer works

but, it ask the confirmation Do you want to save it?

I do not want to save the e-mail document?

What can I do?


Author Comment

ID: 9865605
I solved the problem.

I changed the line:
   Call doc.Save( False, False )
   Call uidoc.Save

I thank you again for your prompt and correct answers.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Title # Comments Views Activity
If no attachment, dont send email - lotus notes/vba 10 407
Domino Lotus Notes Client 4 76
Migrating from Lotus Notes to Office 365 2 166
IBM Lotus Notes Rules not working 5 354
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

751 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