Working with Embedded File Object

Posted on 2006-04-18
Last Modified: 2013-12-18
Hello -

I am creating a front end to a fax system.  I have to give the users the ability to add cover sheets to their outbound faxes.  When a fax is sent, I need to be able to use an embedded file object (Word Docs with defined merge fields) that I have saved in the database as templates.  With it, I need to fill in the necessary information programmatically such as the "To", "FaxNumber" and "Comments" fields and save it as a temporary document to be sent out with the fax.  Each fax and cover sheet will be processed individually so there is no need to store tables of information.

I need to know how to make a copy of the stored word doc and how to access and populate the doc fields once I access it.

Question by:KDrago
    LVL 14

    Expert Comment

    since you posted your question here, i assume that you are using domino designer to develop the front end. i would suggest using subforms as your templates instead of word documents. it will allow you to easily populate the fax cover sheet with the information you want.

    Author Comment

    Yes using domino designer as the front end - guess I should have stated that.  

    I am using Word documents so the users can add and maintain their cover sheets as opposed to having to having to do a programming change every time someone needs a new one.  They are familiar with mail merges so developing cover sheets in this way seemed the best way to keep the maintenance in their hands.  

    We are a company that has many subdivisions so the there are many different custom cover sheets they will want to create and maintain.
    LVL 14

    Accepted Solution

    I see.  this is what i think you need.

    1. If your word templates are attached to a notes document, you have to extract them to the local pc
    2. create a word document OLE automation based on the template (.dot), fill in the necessary information and save it (.doc)
    3. create a lotus notes fax document
    4. embed the saved word document as an object (EMBED_OBJECT) in a NotesRichtextItem and save/send the document.

    hope it helps


    Author Comment

    Thanks cezarF.  I modeled something based on your suggestion and it is working out well.  
    LVL 14

    Expert Comment

    glad it worked. thanks for the points. :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    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…
    Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now