Solved

Call doc.Close Problem - Illegal use of PROPERTY

Posted on 2003-12-03
6
1,093 Views
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
0
Comment
Question by:Zopilote
  • 3
  • 3
6 Comments
 
LVL 19

Accepted Solution

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

Expert Comment

by:madheeswar
ID: 9865534
else
call doc.close(true)
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 9865565
what happened? Did it solved?
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 5

Author Comment

by:Zopilote
ID: 9865575
Hi again,
No, it does not work. It gives the same error.
0
 
LVL 5

Author Comment

by:Zopilote
ID: 9865583
madheeswar,
Actually the first answer works
uidoc.close

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?

MTIA
0
 
LVL 5

Author Comment

by:Zopilote
ID: 9865605
I solved the problem.

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

I thank you again for your prompt and correct answers.

Z;D
   
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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