Reputation: 73
How to attach or embed IBM Notes document in the email using Lotus Script.
I need to compose and send a email with a number of documents (bills) as embedded documents or attachments but not links. The user selects one or more documents from a view and clicks "Email Bills To Customers" and the application will loop through each customer document, looks up their bill documents and collects them as attachments with this email. The challenging part is how to create the notes documents as attachment or embedded notes document, pdf or images (whatever is possible). I want the solution in IBM Lotus script.
Please help.
Upvotes: 1
Views: 1027
Reputation: 65
We use PDFCreator > https://www.pdfforge.org/pdfcreator
Unlike the Swing offering it's Open Source and always being updated, and dead easy to control via LotusScript to print and attach PDF's.
Upvotes: 0
Reputation: 14628
You may want to consider this tool: Swing Software PDF Converter.
It is commercial software, but it is probably your best option if you want actual file attachments instead of just rendering the rich text of multiple documents into the body of your message. And yes, it does have an API that you can use from LotusScript.
Upvotes: 0
Reputation: 30960
You can use NotesDocument's method RenderToRTItem. It will create a "picture" of the document and put it into a RichTextField.
Collect such a "picture" of all your bills and put those into the final RichtText item with AppendRTItem (and probably AddPageBreak).
Upvotes: 2