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

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...:)

  • 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

  • Read, Write and create files from java applet.

    Dear All,
    I have created a two files. One is applet and one application file. I am creating a instance of application file in applet. Application file is used for reading, writing and creating files. When I invoke applet from broser it dipslays error wrt file access permission. From the forum search I know that we need to sign the applet / edit the java policy to run the code locally. Final delivery of my code should execute on different system. Its not web. I have created a html page on submitting the form it invokes applet to read the form values from param and needs to update the values in xml file located locally. Please help me on how I can proceed with this fix.
    Thanks in advance.

    Sorry if I have not stated the problem clearly. I need to update content to files hosted in local system using java applets.
    I belive there are two ways to achive that.One with jar signer and one with modifying the java policy file. But this application needs to be installed in different system locally as I have created a application with webpage as useinterface and need to update the content in local files on submission. Not sure on how to modify the java.policy files in each end user system and whats the value we need to update in java policy file. Please help me on the steps to be followed

  • 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();

  • Reading and displaying Ms.Word document with web dynpro java

    Hi,
    I'm using NetWever developer studio 7..0.21.
    I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible?
    If possible , is there a blog etc.?
    Thanks.

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • Hi there, I currently subscribe to Adobe Pro Subscription (yearly) and I also subscribe to Adobe PDF pack (monthly).  I only require Adobe to read and create PDF documents such as converting word/excel document or a web based document.  Can someone tell m

    Hi there, I currently subscribe to Adobe Pro Subscription (yearly) and I also subscribe to Adobe PDF pack (monthly).  I only require Adobe to read and create PDF documents such as converting word/excel document or a web based document.  Can someone tell me if I'm doubling up as I'm not sure of the differences between the products and would like to save a few dollars.

    Acrobat Pro can do a lot more than the PDF Pack online service.
    Try if you can do everything you need with PDF Pack; otherwise keep Acrobat Pro.

  • 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

  • Api POI read and replace my word document with java

    Hi
    Everyone
    I�d like to know if someone has a piece of code reading a word document with api POI to send me?
    I need read replace the word document wiht java j2ee.
    Thanks

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • Late Binding Word Automation creates a document with an unresponsive Ribbon

    I have a .NET ActiveX COM object that is calling Word and adding a template for processing. This template will get some data and then add in a layout template which will create the final document with the data and layout.
    When it is all said and done, the Word document has all the data, however, when the user tries to access the ribbon (click on one of the tabs or an item in the visible ribbon), nothing happens (like it is disabled).  You can click into the document
    itself and if the document has bolded text or something like that the ribbon changes to reflect the changes in font. 
    The only way for the ribbon to become responsive is to either minimize and reshow Word or select another application and then back to Word.  This "unlocks" the ribbon and you can interact with it.
    I accidently left in a reference to Word 2010 when I was testing something and then the code I have worked.  I went back to late binding and removed the reference to Office 2010 and it does not work even though none of my code has changed.  The
    Word constants/enums I am using were already locally created and the methods I am using have the either no parameters or the appropriate parameters provided as far as I know.
    In the code snippet below, the line "officeApp.ActiveWindow.Activate()" is what worked with early binding to
    cause the ribbon to be responsive immediately and allow the use to interact with the ribbon with no additional steps.  With late binding nothing seems to work.
    Code snippet :
    Dim reportDocument As Object = Nothing
    Try
    officeApp = GetObject(, "Word.Application")
    usingExistingWord = True
    Catch exp As Exception
    'Not Ideal - would prefer not to rely on Exception handle to catch this
    If officeApp Is Nothing Then
    officeApp = CreateObject("Word.Application")
    End If
    End Try
    Try
    'Open process template
    templateDocument = officeApp.Documents.Add(Template:=ProcessTemplate)
    Catch exp As Exception
    Success = False
    If Not usingExistingWord Then
    officeApp = Nothing
    templateDocument = Nothing
    End If
    Throw exp
    End Try
    If templateDocument Is Nothing Then
    'The process template was not loaded/added properly, abort code
    If Not usingExistingWord Then
    officeApp.Quit()
    officeApp = Nothing
    End If
    Success = False
    Exit Sub
    End If
    'hide Word while the process template runs its code.
    officeApp.Visible = False
    Try
    officeApp.Run("RunReport", _parameters, reportDocument)
    Catch exp As Exception
    Success = False
    If officeApp IsNot Nothing Then
    If templateDocument IsNot Nothing Then
    templateDocument.Close(SaveChanges:=False)
    templateDocument = Nothing
    End If
    If Not usingExistingWord Then
    officeApp.Quit()
    End If
    officeApp = Nothing
    End If
    Throw exp
    End Try
    If Success Then
    Try
    If reportDocument IsNot Nothing Then
    reportDocument.Activate()
    End If
    officeApp.ActiveWindow.Activate()
    officeApp.Activate()
    officeApp.ActiveWindow.ToggleRibbon()
    officeApp.ActiveWindow.ToggleRibbon()
    Catch ex As Exception
    End Try
    End If
    'Done - close the process template
    templateDocument.Close(SaveChanges:=c_wdDoNotSaveChanges)
    End If
    Thanks in advance for any help you are able to provide!

    Hi gardmica,
    Thanks for the detail explaintation. However I still failed to reproduce the issue. Here is the code I tested:
    Public Class Class1
    Sub Main()
    Dim reportDocument As Object = Nothing
    Dim usingExistingWord As Boolean
    Dim officeApp As Object
    Dim templateDocument As Object
    Dim ProcessTemplate As String
    Dim Success As Boolean
    Dim c_wdDoNotSaveChanges As Boolean
    Success = True
    ProcessTemplate = "C:\Users\UserName\Desktop\ProcessAndLayoutTemplates\MailMerge Process XML.dot"
    Try
    officeApp = GetObject(, "Word.Application")
    usingExistingWord = True
    Catch exp As Exception
    'Not Ideal - would prefer not to rely on Exception handle to catch this
    If officeApp Is Nothing Then
    officeApp = CreateObject("Word.Application")
    End If
    End Try
    Try
    'Open process template
    templateDocument = officeApp.Documents.Add(Template:=ProcessTemplate)
    Catch exp As Exception
    Success = False
    If Not usingExistingWord Then
    officeApp = Nothing
    templateDocument = Nothing
    End If
    Throw exp
    End Try
    If templateDocument Is Nothing Then
    'The process template was not loaded/added properly, abort code
    If Not usingExistingWord Then
    officeApp.Quit()
    officeApp = Nothing
    End If
    Success = False
    Exit Sub
    End If
    'hide Word while the process template runs its code.
    officeApp.Visible = True
    Try
    'officeApp.Run("RunReport", _parameters, reportDocument)
    Catch exp As Exception
    Success = False
    If officeApp IsNot Nothing Then
    If templateDocument IsNot Nothing Then
    templateDocument.Close(SaveChanges:=False)
    templateDocument = Nothing
    End If
    If Not usingExistingWord Then
    officeApp.Quit()
    End If
    officeApp = Nothing
    End If
    Throw exp
    End Try
    If Success Then
    Try
    If reportDocument IsNot Nothing Then
    reportDocument.Activate()
    End If
    officeApp.ActiveWindow.Activate()
    officeApp.Activate()
    officeApp.ActiveWindow.ToggleRibbon()
    officeApp.ActiveWindow.ToggleRibbon()
    Catch ex As Exception
    End Try
    End If
    'Done - close the process template
    templateDocument.Close(SaveChanges:=c_wdDoNotSaveChanges)
    End Sub
    End Class
    Did I miss any step? Does the issue exist when you didn't run the "RunReport" macro?
    Also I notich that the template is working in a compatibilty mode, is it helpful that convert it via File->Info->Convert?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to open and read pdf and micrsoft word (.doc) files or documents

    My problem is how to use my BB 9800 software version 6.0.0.546 to read/view pdf files and microsoft office documents. I have also bought documents to go from online and have installed it on my phone, but whenever i try to open it I receive a message that it is incompactible. Any help will be greatly appreciated.

    Hi, Sammy.
    Why not install a 3rd party PDF reader and Word Doc reader to help open and read pdf and micrsoft word (.doc) files or documents? You can google it and select one whose way of processing is simple and fast to help you with the related converting work.  It will be better if it is totally manual and can be customized by users according to our own favors. Remember to check its free trial package first if possible. I hope you success. Good luck.
    Best regards,
    Arron

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • I would like to create a document with imbedded video, to email, and airdrop to an iPad mini. What program should I use?

    I would like to create a document with imbedded video, to email, and airdrop to an iPad mini. What program should I use?

    Thank you for using the Apple Support Communities
    I would suggest using Apple's Pages which allows support for imbedding videos from the device's camera roll. Pages also allows for sharing via email, Air Drop, and Messages.

  • Created a document with FM Author 12 and added a template in FM12 to the document

    Created a document with FM Author 12 and added a template in FM12 to the document. Can't open the document again in FM Author 12 "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel".

    Should both programs be in "Authoring" mode?

  • Need to create the document with originals and checkin that document

    HI Guys,
    My requirement is to write a method to  create the document with originals and checkin that document of DMS.
    Plz suggest the approach to get this requirement solved.
    Regards,
    RSK

    Hi Bala,
    Thanks for the reply.
    Iam writing the code under method like below.
    Importing:
    ls_doc type bapi_doc_draw2.
      APPEND is_files TO it_files.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata               = ls_doc
       IMPORTING
         documenttype               = iv_doctype
         documentnumber             = iv_docnumber
         documentpart               = iv_docpart
         documentversion            = iv_docvers
         return                     = iv_return
       TABLES
        documentfiles              = it_files.
    Iam checking with document number , document type, document part, document version... it is throwing error message as
    error while checking in and storing: version number(25).
    Please advice whether it is correct approach?
    Regards,
    RSK
    Edited by: shravan kumar ravula on Dec 22, 2011 11:24 AM
    Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM
    Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM

Maybe you are looking for

  • External hard drive not showing in disk utility

    my samsung external hard drive has always worked with no problem on my mac.. I have just plugged it in to do some work and it will not appear anywhere.. not even in disk utility i have tried the USB port and it is working fine because i also have a m

  • HP IQ546t won't accept a cd

    Hi, new to this forum:  My HP touchsmart IQ546t won't accept a cd into the slot:  feels like it hits something when it's about a quarter of the way in and won't go any further.  There was not another cd already installed.  It was working fine until a

  • Volume not high enough

    I looked at the other posts regarding volume levels on the iPhone 4 but I don't see anything that applied to my issue, or offered a suggestion that I could try. Using the phone in hand-held mode the volume on the phone is okay, not as loud as I'd lik

  • How to download jco, for using in a test sap system?

    Hello, at the moment i am trying to program with java a connection to a sap test system (from the book abap objects). Normally the conenction is built up by jco. My question is, because i haven´t got a login to the service marketplace, is there any p

  • Oracle 11GR2 on windows 2008 Geo-Dispersed cluster

    Hi all, anyone can guide me about the installing oracle 11GR2 on windows 2008 Geo-dispersed cluster environment? Please guide and provide documentation if possible, thanks