Create document with no form

Hi,

I create a document with a field form and when i send the document the field form disapear.

There is my code:

Set newdoc = New NotesDocument ( db )

newdoc.Form = "Return Receipt"

newdoc.from = session.UserName

newdoc.IntendedRecipient = session.UserName

newdoc.DeliveryReport = "N"

newdoc.DeliveryDate = Date

newdoc.DeliveredDate = Date

newdoc.sendTo = "Test user"

newdoc.subject = "test"

newdoc.PostedDate=Cstr(IsTime)          

Call newdoc.send(True)

Can you held me?

Estelle

Subject: Create document with no form

How do you know it disappears? I would guess it maybe the receiving database (I’m gussing mail) maybe transforming the value.

If you set it to “cat” does it come through?

Subject: RE: Create document with no form

Hi,

i know it dissapear because i look the document in the database receiver (it’s a mail database) and in the document property there is no form field.

I try cat too and samething.

??

Subject: Create document with no form

Is there a form in your receiving database called “Return Receipt”? I wonder if there is not, it is just opening it the default form and ignoring the form field.

Subject: RE: Create document with no form

Hi,

Yes, there is a form Return Receipt.

Subject: Create document with no form

There are this $field,

$Title =“(Return Receipt)”:“Return Receipt”

and many others $field.

I think those fields replace the form field.

??

Subject: RE: Create document with no form

If you store the form with the sent document, then you’ll have the $Title field instead of a Form field.

If a document has a Form field, it will use the form definition in the database it’s sent to. It sounds like you are really sending the form from the first database as part of the document, which is why you have a $Title instead of a Form.

Subject: RE: Create document with no form

If those fields are on the document, it means you have stored the form in the document. Documents with stored forms do not have a Form field – they don’t need one.

Subject: RE: Create document with no form

How i have stored this in the document. It’s just a script to create document (see in first courriel).

??

Subject: RE: Create document with no form

Call newdoc.send(True)

The True value for the AttachForm argument stores the form in the document.

Subject: RE: Create document with no form

I put false in send command

Call newdoc.send(False)

and it’s working.

Thank you!

Estelle

Subject: RE: Create document with no form

You parameter doc.send is likely to have true as a parameter

Call doc.send(True)