Create Word Document with OLE2.

Hi,
Is it possible to create a word docuent as an attachment? I want to create an attachment for opportunity when its status changes.
Is it possible to create word document in Actions and can we attach it to opportunity?
Any suggestions on how to approach for this requirment?
Regards,

Mike is not suggesting that you try to invoke a Word macro from OLE2. He is suggesting that you use Word's Macro Recorder to capture the actions you are trying to automate. The resulting macro will be written in VBA, and therefore of no direct use to you. It will, however, show you which objects/methods are relevant to your task. This information will make it much easier to write the equivalent OLE2 code.
Note that Macro Recorder tends to generate more code than is necessary, by reassigning default values to object properties, to ensure portability. Your OLE2 code can often be left much more brief, by assigning values only to those properties that actually change within your operation.
Eric Adamson
Lansing, Michigan

Similar Messages

  • Create Word document with Java

    I want to create a Word Document with Java. But I don't know how can I insert text in a Word document.

    I searched and found JXWord (probably limited to Windows): http://www.geocities.com/picmapicma/
    I'm interrested to know if it works fine...:)

  • Read,write and create word document with list data

    Hi,
    My requirement is that I have a custom list called List1 and which has a 4 (suppose XName, location, phone, email)columns and also have a Template document(.dot). If I click on save button , new document has to create from the Template document(.dot) and
    should modify the content depends on list columns.
    For that I need to read the document , find out the text where XName , location,,phone, email and replace with the list item data(user entered data). 
    Can anybody please refer links for read,write and create word document?
    Thanks in advance.

    Yes, you can using Office Open XML. I found it to be a lot more cumbersome and in the end not a money saving approach:
    https://msdn.microsoft.com/en-us/library/office/bb448854.aspx?f=255&MSPPError=-2147217396
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Font problem creating WORD document with Oracle Reports 8i/9i

    I created a report using different Arial fonts. Once the report is generated from a .NET application, the fonts in the word document are changed apparently into Helvetica. This disarrange my lay-out completely. How can I solve this problem?
    (NB. when I generate a PDF, there is no problem!)

    By the way. I create the files in this way:
       private void createFile(String outFileName) {
          try {
             ByteArrayInputStream result = clientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
             File newFile = new File(outFileName);
             FileOutputStream output = new FileOutputStream(newFile);
             int bytesRead = 0;
             byte[] byteArray = new byte[10000];
             while ((bytesRead = result.read(byteArray)) != -1) {
                output.write(byteArray, 0, bytesRead);
             output.flush();
             output.close();
          } catch (Exception e) {
             e.printStackTrace();

  • Create a word document with TOC, table,etc

    Hi,
    How to create a word document with Table of content(TOC),header, footer, table, etc?
    Help me with any APIs or examples. I have already tried with POI API, but couldnt create TOC.. So any other api or any solution is available to create complex word document.
    Thank you

    Hi BIJ001,
    Thanks for your valuable suggestion.
    Open standards WordprocessingML format is supports by Microsoft word. It is typical xml format of designing word document. But creating document with TOC,tables, different styles of paragraphs are complex. Using this format, i have created simple docs. I never tried with complex formats like TOC. The generating File should be in ".doc or .docx" format only.
    Hi gimbal2,
    I am parallely looking to find solution in OpenOffice format also. But i never try out ".docx" file format. I will try to look out this option.
    Thanks for the input.
    Edited by: user13735134 on May 24, 2011 6:55 AM

  • I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers.

    I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?

    version 10.6.8

  • Word document with multiple sections generates multiple pdf?

    Hello everyone,
    I'm a new and happy Mac user, but not fully able to use this. I hope you can help.
    I have a Word document, with multiple sections that I want to convert into pdf. When I used to do this with the PC, I didn't have problems. I used to use Click to Convert and I normally used to get one single pdf file.
    Now, using the pdf button wit the Mac, I get separate pdf files, one for each section. Is there a way that I can create a single pdf, with all the sections in order? If not, how can I merge the pdf in one single pdf file?
    Thanks in advance.

    Hi,
    just to let you know I have sorted this.
    http://macintoshhowto.com/leopard/how-to-merge-pdf-files-with-preview-in-leopard .html
    Thanks.

  • Opening Word document with OLE

    Hello,
    I must have a case of own-code-blindness, could anyone see what the problem is? A blank document is created but I can't get it to load the file...
    <snip>
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app, 'Visible', 1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'd:\foo.doc');
    CLIENT_OLE2.INVOKE(doc, 'FileOpen', args);
    </snip>
    aTdHvAaNnKcSe

    Thanks, I am able to setup webutil.
    Now I have other problem in context of migrating OLE functionality using Webutil. I have an OLE Container item 'OLE_FIELD' in block 'Blk_name' which contains a word document. 'OLE_FIELD' corresponds to a long raw column in the table . I want to put the contents of this into a newly created word document and run a macro on this document. This was done using Forms_Ole.Activiate_Server, Forms_Ole.Execute_verb earlier. Can someone let me know how this is achieved in 9iDS using Webutil since 9iDS does not support the ole container? I am sending the code as it was in earlier version of Forms.
    Declare
    arglist OLE2.LIST_TYPE;
    application OLE2.OBJ_TYPE;
    BEGIN
    FORMS_OLE.ACTIVATE_SERVER('Blk_name.OLE_FIELD');
    application := OLE2.CREATE_OBJ('Word.Application.8');
    -- Open the embedded document for editing
    FORMS_OLE.EXEC_VERB('Blk_name.OLE_FIELD',1);
    -- Run Macro for document
    arglist := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(arglist, 'MACRO_NAME.MAIN');
    OLE2.INVOKE(application, 'Run', arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    OLE2.INVOKE(application, 'Quit');
    -- Close Word
    FORMS_OLE.CLOSE_SERVER('Blk_name.OLE_FIELD');
    -- Release the OLE object
    OLE2.RELEASE_OBJ(application);
    END;
    Thanks in advance,
    Ravi

  • Populate word document with default metadata information

    Problem is revers as it is available in internet.  I have created list and
     columns. Which are populated  with default value. I have created word
     template. I can enter  data related to “Document properties”, ect. When I save that document to document library, I can see that filed data, that I type it in newly created word document.
    But because I have several project document library and sites, I would like to create library, 
    and fill all data with required values.  Then when I open new document from pre defied 
    template, I would like to have all fields  that are empty in document, to be filed 
    from  default columns value. Problem is, that when I save document, All fields are empty.
    There is no problem, upending document, and default properties are presented.
    How can I merge  default values from library, to word document ?

    I have word template, that I added-it as a site content type. It has all standard 
    fields  that are mapped to document library filed. If I open 
    new document in  document library, and input 
    required filed,  after  saving document, I can 
    see those fields in SharePoint document library (Item properties).
    Problem that I have is, following :
    When I open that  document “new document” from template, I would like to have all fields filed with default values of that particular library.
    Reason : Because  I will generate  hundred project (
    Each new library is based on new project, build fields are the same, values changes to mimic project)
    ),  I do not wont to create additional template, that would have required fields fill up wit project value, and add it to content type.. .
    I do not won`t to fill those properties manually.
    Option 1 :  After saving document based on template, it will fill out  
    required fields.
    Option 2: Create template, for each project, and save that template as project template, that users open, and save it to project Site/library.
    Option 1, is preferred.  Can that be done, when item is created, and copy project 
    information, from different location ?
    So I have  document library fields :
    Name of the project,  Projec Manager,  Project ref number, Contract, ...
    These filed are mapped to document filed :
    Name of the project,  Projec Manager,  Project ref number, Contract, ...
    I have document library : Project A
    Project A  ,  John dear, 
    REF2014_01_01, C1243332_2014, ...
    I have document library : Project B
    Project B ,  Same Jones ,  REF2014_03_05, AS563332_2014, ...
    I would like,  that when I save  document
     using New document (template),  that have those filed fill up. I do not wont to 
    create  new template for every project.

  • Convert 1 single microsoft word document with section breaks to multiple pdf files

    I am a windows 7 users. I have a single microsoft word document which contain 1500 pages. These 1500 pages are seperated by sections breaks in the microsoft word. I am trying to convert this word document to multiple pdf files seperated by the section breaks in the Microsoft word. How can I convert the single microsoft word document with section breaks to multiple seperate pdf files?

    Acrobat (Adobe PDF Printer and PDFMaker ) doesn't recognize the Section breaks.  It never has as far as I am aware.  The easiest thing to do is to manually break up a copy of the MS Word Document into the Sections you need and then create the PDFs from those MS Word documents.

  • Associating requirements in my Word Document with NI Gateway

    What do I need to do in order to associate
    requirements in my Word Document with NI Gateway? I have created a MS
    Word Style defined as Requirement_ID and Requirement_Text and applied
    them to their respective parts of the document but when I load the
    document in NI Gateway I get no response.

    jstrong -
    You could customize the Word NIRG Type to add a new Requirement element which uses a regular expression to parse Table information.
    When you include requirements in a Table, NIRG parses that information into the intermediate file in the form of |d Requirement_ID     REQX: blah, where "|" specifies the beginning of a new cell in the row and d specifies the cell number.
    Please take a look at the attached project which is a modification of the NIRG Word example. You'll notice that I use a custome Type called Word1 to load the Word Example - Requirements.doc file.
    Hope this helps!
    Manooch H.
    National Instruments
    Attachments:
    Word.zip ‏44 KB

  • Importing Word Documents with Images

    Hi, When I import word document in to Robohelp, it imports
    the images also. Now, I have duplicate images in multiple topics.
    How do I avoid duplicate images being imported? Is there anyway,
    where I can collate and store all the images in a single folder,
    instead of saving it in multiple folders?

    quote:
    Originally posted by:
    markpud
    Nice idea... I too have a Warning and Note icon repeated on
    almost every page.. but I don't find it too much bother to paste
    over the top with the "proper" icon after importing :)
    You're right. One reason this plan never came to fruition is
    because this doesn't take a lot of time.
    When I first came aboard, I envisioned a lot of importing of
    Word documents where each change was done to a Word doc (complete
    with macros and useful AutoText) and then imported into RoboHelp.
    Then, a global search would take care of the image problem. But
    that isn't really our MO, so this never happened.
    Although, it's a great way to create a new project. Author
    your Word documents with meaningful characters to represent each
    icon. Then when you import everything, just include the graphic
    once and then do a global search.
    Kevin

  • Placing word documents with embedded metafiles

    Hello,
    I have a Word document with Windows Metafile embedded pictures (with .EPS extensions). The pictures are math formulas, and I am not sure what tool they were created with.
    I open the document with Word 2010. I tried saving the document in both doc and docx format before placing in InDesign. But with ether format the following issue persists.
    The embedded metafile images look fine in Word, however after placing them in InDesign, the individual elements and clipping paths inside the embedded metafile images change their relative to each other positions, so the formulas start looking very wrong – individual symbols collide and/or get clipped.
    Why is this happening? Is there a way to work around this issue?
    I am on Windows 7 and InDesign CS 6.0.
    Thank you

    According to the author, the metafiles were placed in Word 2003 as ‘mathematical equation 3.0’ objects. I tried opening these with MathType 6.9 but it is able to open only a very small subset of the many equations in the document.
    I emailed Design Science for their opinion, but I am afraid that something similar to what is described in the article ‘Equations have become non-editable “pictures” in Microsoft Word’ may have happened to the documents I am working on.
    Here is the article:
    http://www.dessci.com/en/support/mathtype/tsn/tsn103.htm
    The frustrating part is that equations look all right in Word, or when exported from Word to PDF. But the way Adobe reads WMF metafiles, they get messed up.
    One such difference – Empty instead of Auto kerning is described in the following thread:
    http://forums.adobe.com/message/5330174#5330174
    But this is not the only issue. For some metafiles, blindly setting all kerning to auto messes them up. Some other metafiles exhibit bizarre vertical positioning of elements and/or shifts of clipping paths. The combination of these issues makes it very complex to write one-fits-all script to ‘fix’ the metafiles automatically.
    It appears I need to find the appropriate Microsoft libraries to correctly load WMF files into some intermediate vector format, matching Microsoft Word rendering exactly, and then export into EPS or something else that InDesign is capable of processing without repositioning elements.
    Any ideas what these libraries may be?
    Thank you

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • How to create shipment document with out inbound delivery document

    Dear Friends
    How to create shipment document with out outbound/inbound delivery document.
    In my client scenario, there is no inbound delivery for normal purchases.
    Just there are raising the PO to vendor, then they are doing MIGO for goods receipt.
    Can we do shipment creation with reference to PO?
    If it is possible, how it will be?
    Please let it solve
    With regards
    Lakshmikanth

    Dear Sameer,
    Please go to transaction VT01N here you enter Transportation planning point and shipment type then press enter.
    Now system will take you to the shipment document creation screen here you click on Select deliveries or press F6 now system will take you to the select outbound deliveries screen in this screen you enter selection data then execute, now deliveries will get assigned to that shipment.
    After assigning the deliveries enter the remaining data then complete the shipment finally save the shipment document.
    For more information please go through this SAP help link
    Note:- Shipment process need to be carry out for the deliveries before PGI.
    http://help.sap.com/saphelp_47x200/helpdata/en/f5/04898047bd11d2bf750000e8a7386f/frameset.htm
    I hope this will help you,
    Regards,
    Murali.

Maybe you are looking for

  • I can't get the homepage to switch from MySpace to a preferred site - MySpace has hijacked the homepage how do I disable MySpace?

    I had Myspace set as my homepage on Firefox. I now want to change it. I go to tools and then options and then change to what I want it and click on ok. But when I open the browser again it has reverted back to Myspace. I have tried disabling cookies

  • 9.2.0.6 to 9.2.0.8

    Dear all, How can I Upgrade my DB from 9.2.0.6 to 9.2.0.8.. am trying to download the patch from metalink.. but could'nt find any valuable downloads.. Any idea ? Yusuf

  • Lenovo G450 - Want to connect VGA to Plasma TV with HDMI inputs

    Hello Community I was hoping to get some verification on this from someone that owns a Lenovo G450 Model 2949. I want to understand if I can connect this notebook to my older plasma TV through the VGA output connector. My TV supports S-video, HDMI an

  • ComboBox - value disappears...

    I have a ComboBox in a DataGrid. Here's the behavior I'm seeing: The screen loads initially - the ComboBox is populated and the selected item is shown. If I click on the ComboBox, then move my mouse away and click on some other cell - without physica

  • "Publish Site" is dimmed and I can't publish.

    I made some changes to an existing website and tried to publish those changes, but the "publish SIte" icon at the bottom of the window is dimmed. Some of my websites listed along the left side of the window are red, but I can't do anything about it.