Opening a word template in 10g

When trying to open a word template file in 10g using,
client_ole2.invoke(obj_hnd,'open',arglist),
following error is thrown and the document is not getting opened,
2006-Jun-15 10:49:30.679 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception null
2006-Jun-15 10:49:30.679 ERROR>WUO-707 [OleFunctions.invoke_obj()] Unable to invoke Method:2006-Jun-15 10:49:30.679

Without knowing what object obj_hnd refers to, I can only speculate that it incorrectly refers to something other than Word's Documents collection. If you are unfamiliar with Word's object model, search this forum using keyword Object Browser. This tool will help you understand what methods/properties are available, and valid arguments/values for same.
Eric Adamson
Lansing, Michigan

Similar Messages

  • Error -41106 when trying to open a word template

    when I run it saids that Word or Excel in not loaded on the system but it is and failes to open the word window. It does open an excel if I change the file type.

    Could you please give us a little more information? How are you calling the template? What version of LabVIEW and Word?
    I am just not sure what you are trying to do.
    Thanks,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Office 2013 - Unable to open word template

    Hi,
    I have windows service written in VC++ and trying to open a word template xxx.dotx located on the server. however, I am geting below error code while opening the same template. I have written a sample application and it is opening the template.
    my windows service is 32 bit and I have installed office 2013 64bit and OS win 7 64bit.
    <hr=-2147467259>
    working code
    #import "MSO.DLL" rename_namespace("MSOFFICE") rename("RGB", "ofRGB") rename("DocumentProperties", "ofDocumentProperties")
    #import "VBE6EXT.OLB" rename_namespace("MSVBEXT") rename("Application", "ApplicationVBExt") raw_interfaces_only
    #import "msword.olb" rename_namespace("MSWORD") rename("DialogBox", "DialogBoxWRD") rename("RGB", "RGBWRD") rename("DocumentProperties", "DocumentPropertiesWRD") rename("ExitWindows", "ExitWindowsWRD") named_guidsvoid CWordTestDlg::OnButton1()
    // TODO: Add your control notification handler code here
    MSWORD::_ApplicationPtr m_pWordApp;
    HRESULT hr = m_pWordApp.CreateInstance("Word.Application");
    if(FAILED(hr))
    AfxMessageBox("Unable to start MS Word.", hr);
    return;
    AfxMessageBox("Successfully Created");
    m_pWordApp->DisplayAlerts = MSWORD::wdAlertsNone;
    // Make sure the application is not visible.
    m_pWordApp->Visible = VARIANT_FALSE;
    MSWORD::_DocumentPtr m_pWordDoc = NULL;;
    MSWORD::DocumentsPtr pDocs = m_pWordApp->Documents;
    if(pDocs == NULL)
    AfxMessageBox("Unable to retrieve the documents collection from MS Word.", pDocs);
    return;
    // Open the template.
    CComVariant varTemplateName(_T("\\\\xxx.xxx.xxx.xxx\\kx.dotx"));
    m_pWordDoc = pDocs->Open(&varTemplateName);
    if(m_pWordDoc == NULL)
    CString msg;
    msg.Format("Unable to open %s.", _T("\\\\xxx.xxx.xxx.xxx\\kx.dotx"));
    AfxMessageBox(msg);
    return;
    AfxMessageBox("Successfully Opened");
    m_pWordApp.Detach();
    // Reset the MSWord Document ptr.
    m_pWordDoc.Detach();
    thanks,
    Krishna

    Hi,
    Interop is not supported on a Server or with in a services.
    But if you want to this, you have to set up the Environment. I follow this Guideline with my Word and I'm able to start Word on a Server.
    1) Goto Control panel -> Administrative Tools -> Component Services
    2) Expand Tree by clicking on Component Services -> Computers -> My Computer -> DCOM Config
    3) Search CLSId 00020906-0000-0000-C000-000000000046 (which is for Word 97-2003 application)
    4) By selecting 00020906-0000-0000-C000-000000000046 this CLSId now right click on Properties
    5) In the Propeties area, click on Security TAB
    6) Select Customize option from all (Launch and Activations Permissions, Access Pemissions, Configuration Permissions)
    7) Take the User of the Services and Allow all permissions for this user
    8) Go to Identity TAB in the same properties area, select option as a This user and then add username (the user must be administrator of this machine) and password. Click on Apply, Ok
     Locale Profile: True
    9) Refresh Component Services and check your application is working fine or not.
    10) set Folder, if not present:
       C:\Windows\SysWOW64\config\systemprofile\Desktop
    This article gives some insights.
    http://theether.net/download/Microsoft/kb/288367.html
    Hope this helps.
    Kind Regards
    Thomas

  • Pages with word templates

    I'm writing my thesis and my school uses a MS Word template... has anyone had experience with using Word templates in Pages?  Will it be a nightmare or relatively easy -I don't want to spend hours and hours reformatting.  Thanks for your feedback.

    Pages should open the Word template although you might have to change the extension from .dot to .doc. But, as ffiti said, formatting is often off. But there are other options besides Office for Mac. TextEdit that comes with your Mac can open Word files & there are the Office clones such as LibreOffice or NeoOffice that are free.

  • Word opened from word addin freezing the dialog which has opened from addin and crashing the parent word document

    I have a office addins which works seamlessly in excel, powerpoint and outlook except in word . We have a option to create a word documents using the templates in a dialog which is opened from addin. And we have an option to set the work area  for
    our webapplication either to use filestorage or sharepoint storage.
    Again the same addin works perfectly with filestorage cache but the same doesn't work with sharepoint storage. the problem is when we create the new documents using the templates it produces the new word document, once it is created and opened, the parent
    word document and the intermediate dialog window should get close but  instead it hangs both of them. when i try to close it explicitly it says word has stopped working.
    Issue is with sharepoint 2010+Sharepoint storage and the same is not working with sharepoint 2013 as well as it by default uses sharepoint storage.
    I have posted in the VSTO forum before but I haven't got the response yet. please help me this is a major and critical issue for us.
    PS: irrespective of OS its not working.
    code to produce a file
    function ProduceFile(strFileUrl) {
       var obj = new ActiveXObject('SharePoint.OpenDocuments.3');
       obj.EditDocument(strFileUrl);

    Hi ShilpaSheshadri, 
    if this is a quite urgent, i may suggest to open a ticket directly, so that we can have a remote session to check this up. http://support.microsoft.com
    i checked some forum such as:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/e2c801c0-6120-432c-97d5-8d59a43ce7f3/thisaddinstartup-is-not-executed-when-open-ms-word-template-using-vsto-from-sharepoint-2010?forum=vsto
    perhaps you can also try to use other workaround, 
    http://blog.qumsieh.ca/2012/11/05/link-to-a-document-opens-in-read-only-mode/
    to check, please have a check if this issue was also shown in other client machine or other client browser version.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Is there a way to open Word from forms 10g?

    Is there a way to open Word from a 10g form? I am trying to pass some data to a word document (like a template). Is there a way to open word from a form button?

    That assumes that the mime types are correctly mapped within the browser and that you already know the location and name of the file on the client machine.

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • Word document does not open - problem with template

    I have a share point folder synced to my computer. I have repeatedly trouble opening word documents that have been created based on a specific word template (.dotx). In those cases, when I open the document in my local synced folder Word opens and
    the bottom border of Word indicates that it is "Opening" the template file. This process never seems to complete and Word must be closed through Ctrl-Alt-Del. Suggestions would be appreciated.

    Hi AlexBXL,
    DOTX files use the newer Open XML-based Word document format, which was introduced in Microsoft Office 2007.  They can opened in Microsoft Word 2007 or previous versions of Word with Open XML component support.
    You can open the DOTX files with Microsoft Word 2007 or previous versions of Word. Or you can convert the documents to the Word 2013 mode.
    Here is an article about using Word 2013 to open documents created in earlier versions of Word, you can use as a reference:
    https://support.office.com/en-sg/article/Use-Word-2013-to-open-documents-created-in-earlier-versions-of-Word-609bbdba-96f2-407b-baaf-d8e53d60d34f?ui=en-US&rs=en-SG&ad=SG
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Automatically complete a word template using the oracle database

    I have a Microsoft office word template and I would like to automatically complete some fields using data from my Oracle 10g database. For example where I have the text “Dear Mr.” I want to get the name of that person from a table in the database. Also by pressing a button in Oracle forms I want to open the word document to see the result. Any ideas how to do that? Thank you.
    Message was edited by:
    Flomaster

    Hello,
    There are lot of code pertaining to your requirement(OLE) in forms forum,a search will give you the required code.
    Regards
    Mohan

  • Creating Activities in CRM using Word Templates and Web Services??

    Hi,
    This functionality can be achieved through Adobe Interactive Forms from what I have learnt through demos etc. We are checking the feasibility of using with Word Templates instead.
    This thread has multiple questions:
    We are trying to set up the activity creation as mentioned in the CRM70 system.
    1) At this point, finished the retrieval of information from the CRM Activity into a Word Template using a READ Web Service. Subsequently synchronized this with outlook and can see the Word document in the outlook item. Not able to open the same in Outlook, since it comes over as a XML document type. "Cannot open as there is a problem with the contents. ">" expected, line so and so...is the message
    2) I created a Web Service that writes as well into CRM and would like to use this from the Word Template to create the activity in CRM
    2a) Can the word template be incorporated with buttons that can trigger creation in CRM, similar to Adobe "Execute" etc
    2b) If yes, and If there are some custom fields that I add to the activity transaction, in the UI, can I populate these with input from the Word Template, as well
    Regards,
    Ashwin

    Hell Wregs,
    You can create the Product in CRM GUI,by using Transaction:COMMPR01,not mandatory to have WebUI..,
    but b4 that you need to set up Product Hierarchy and Product category under which the Products can be created.
    Use Transaction:COMM_HIERARCHY Transaction to do this.
    Hope this helps
    let me know if any further questions
    Thanks & Regards
    Arshad

  • Word Templates in a Sharepoint Library

    Hi,
    Is there a way to get the same behaviour in a document library in SP2010 as when you "open" (= double click) on a Word template (.dot/.dotm extension) in the Windows Explorer => creates a new document based on the template.
    (I know about creating a content type, add a template and attach that content type to the document library.)
    Thanks,
    Peeter

    That works if you only have one template.
    Is teher no way to have Sharepoint understand that a .dot file is a Word template and hence, as default, create a new document instead of opening the template itself. Exactly as it would in Windows Explorer.
    Peeter
    ps There is another thread
    http://social.msdn.microsoft.com/Forums/en/sharepointecm/thread/194e559e-3aa3-4330-8f54-936afdab6e3a that mentions a method to create a webpart to accomplish this. Can someone explain more in detail how this is done? ds
    Peeter, yes my solution is only work when you have one template. Although for the multiple template, you need to enable the content type and thus this option would not available when you select content type. Thus if you want to assign more templates with single
    doc library, then content type would be the idle option and new document item click open the default content type template.Although content type will work on single template also.
    Further, the mentioned link I think discussing the other possible solution in the absence of content type. But you can decide based on above explanation. its good to go for content type for extendability .
    Regards, Dharnendra Shah "strong belief is the only way to success"

  • Word Templates

    Hi
    Can anyone say how we can edit the word template(dochmnl1) which is used when we export sales or purchasing documents to MS-Word?
    Regards
    Louis

    Hi Louis
    The templates are stored in separate folders in the WordDocs folder per language. Select the correct one based on your localization. In Microsoft Word, open the template file you want to change (there are 4 to choose from). You will notice that there are four additional toolbars (right click on your Word toolbars for list). These represent the SAP Business One fields that are pre-linked for you. You can select more from the drop down list of these toolbars. You can also delete SAP fields on the template as needed. You will notice that the linked fields are highlighted in gray. Ordinary text fields (not linked to SAP) are not highlighted and can also be deleted or changed as required. You can change the font size, colour, bold, italics, etc. of both linked and non linked fields as you wish.
    Hope this helps
    Kind regards
    Peter Juby

  • Word templates as activity attachments

    We are attaching Word docs to CRM activities.
    We would like to use the document create functionality that is a part of the attachment tool bar in an activity.
    Is there any way to call a specific word document template without setting the template as the default template in MS-word.
    For example we have a letter template stored on the user's PC. Our current  process is to open Word. Open the template. Save the document. Import the document as an attachment.
    We would like to hit the create button and launch Word as an application and immediately call the template?
    Word has command line switches that enable this functionality "/t". Is there someway to pass the switch in the call to the create the document in the activity.
    Any insight is appreciated.
    Roger Myers

    Roger,
    I think you can achieve the functionality by using a workflow. There you can attach existing Word templates or create new ones with ease.
    Hope it helps.

  • Word Templates for Office:mac

    I am trying to locate the Legal templates for MS word that are compatable with Office:mac.
    My search of the Microsoft downloads website came up with nothing. In fact the few templates I found were more along the lines of novelties rather than the full blown templates downloads.
    Does anyone know where the legal Pleadings/Forms templates are found? I am particularly interested in where the case-builder programs are.
    Thanks,
    Doug

    MS Word templates are usable on both platforms Windows and Macintosh.
    For example I downloaded the Pleadings form located here;
    Pleading form with 32 lines
    after expanding the form with Stuffit Expander it opened right up in Word for Mac.
    When you first hit the download button you will see another page that tells you your system isn't compatible. It isn't talking about the template, it is talking about the Windows BS built into the MS website for automatic downloading. Just hit the download button on that page and your file will download in the Safari Download manager.

  • Attachments using Word Templates

    We are attaching Word docs to CRM activities.
    We would like to use the document create functionality that is a part of the attachment tool bar in an activity.
    Is there any way to call a specific word document template without setting the template as the default template in MS-word.
    For example we have a letter template stored on the user's PC. Our current process is to open Word. Open the template. Save the document. Import the document as an attachment.
    We would like to hit the create button and launch Word as an application and immediately call the template?
    Word has command line switches that enable this functionality "/t". Is there someway to pass the switch in the call to the create the document in the activity.
    Any insight is appreciated.
    Roger Myers

    Roger,
    I think you can achieve the functionality by using a workflow. There you can attach existing Word templates or create new ones with ease.
    Hope it helps.

Maybe you are looking for