I have a Lotus Script agent that exports contents from a web form into a word document. The issue I am running into is that when the agent exports certain fields that contain bullets or numberings, it wraps them around on the word document and does not format them properly on word to appear bulletted or numbered in paragraphs. I was wondering is there a way to tell the agent to format the field contents the same way they are formated on the web form?
This is more of a presentation issue because the agent does perform its function properly only that the users want the document to look presentable also on word without intervention.
Heres the script with the fields in question.
Dim ses As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim descItem As NotesItem
Dim sumItem As NotesItem
Dim specItem As NotesItem
Set db = ses.CurrentDatabase
Set lookupdoc = db.GetDocumentByUNID(v_docid$)
Set descItem = lookupdoc.getfirstitem("desc")
Set sumItem = lookupdoc.getfirstitem("summary")
Set specItem = lookupdoc.getfirstitem("specs")
Print |Content-Type:application/vnd.ms-word|
Print |Content-Disposition: attachment; filename="preq.doc"|
Print |<br><b>General Summary:</b>|
Print |<br>| & sumItem.text
Print |<br>|
Print |<br><b>Principal Duties and Responsibilities: </b>|
Print |<br>| & descItem.text
Print |<br>|
Print |<br><b>Job Specifications (education, years of professional experience,technical skills, etc)</b>|
Print |<br>| & specItem.text
This is more of a presentation issue because the agent does perform its function properly only that the users want the document to look presentable also on word without intervention.
Heres the script with the fields in question.
Dim ses As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim descItem As NotesItem
Dim sumItem As NotesItem
Dim specItem As NotesItem
Set db = ses.CurrentDatabase
Set lookupdoc = db.GetDocumentByUNID(v_docid$)
Set descItem = lookupdoc.getfirstitem("desc")
Set sumItem = lookupdoc.getfirstitem("summary")
Set specItem = lookupdoc.getfirstitem("specs")
Print |Content-Type:application/vnd.ms-word|
Print |Content-Disposition: attachment; filename="preq.doc"|
Print |<br><b>General Summary:</b>|
Print |<br>| & sumItem.text
Print |<br>|
Print |<br><b>Principal Duties and Responsibilities: </b>|
Print |<br>| & descItem.text
Print |<br>|
Print |<br><b>Job Specifications (education, years of professional experience,technical skills, etc)</b>|
Print |<br>| & specItem.text