wordpress hit counter
Open XML Newbie - Basic Question - .Net - Development Tools - OpenXML Developer

Open XML Newbie - Basic Question

Development Tools

Discussions about working with Open XML using a wide range of development tools

Open XML Newbie - Basic Question

  • rated by 0 users
  • This post has 1 Reply |
  • 2 Followers
  • Hi All,

     

    I am a Java developer that has been tasked to do some research into an ASP.NET system. I have no experience with any .NET so I would appreciate basic answers :)

     

    Scenario: I read in an rtf document which is a letter template from a db, I then need to merge information taken from the user via a web UI, into the relevant fields in the RTF. Finally, I need to convert the RTF to a .docx file and send to the client machine.

     

    Can you please advise me:

    1. Does the Open XML SDK provide libraries which would allow the inserting of data into an rtf? 
    2. Does the Open XML SDK provide libraries which would allow the transformation of the rtf to a docx?

     

    Bonus Question!

    -Would Open XML provide libraries to convert a docx to an XSL FO?

     

    I would really appreciate your help on this. thank you :)

  • Note that:

    1. Office Open XML (OOXML) is a standardised XML based file format for documents such as Word, Excel and PowerPoint documents.
    2. Open XML SDK is Microsoft's .NET library that allows you to programmatically create and manipulate documents. It doesn't mimic or provide any of the Word application functionalities like pagination, layouting, converting to other formats, ... You can only use it parse and change the content of document files.

    As I understand you want to use RTF files as templates in the document generation (mail merge) process but the output should be MS Word document. Open XML SDK will not help you here. For converting from RTF to .docx you can check out Aspose library.

    But if you can use MS Word documents as templates instead of RTF documents you can use Open XML SDK to create your own document generation solution or use existing products like Docentric or FlexDoc which are both template based solutions.

Page 1 of 1 (2 items)