Results 1 to 7 of 7

Thread: [Write (Open Office)] How do I automate the creation of a text document?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2010
    Posts
    9

    [Write (Open Office)] How do I automate the creation of a text document?

    Hey,

    Sorry if this has been answered before but I have not been able to find it in the forum.

    I am looking for a way of automating the generation of a text document which includes a table and an image. My client has requested, however, that it be in Open Office format. I have played around with AODL for a while and have been able to create a file with the text within the table but some things are still bugging me.

    One such thing is column width. Another one is aligning an image.

    I find the problem with AODL is that it is not very intuitive to use and there are not so many examples available.

    Does anybody know another library to work with odt documents?

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2010
    Posts
    9

    Re: [Write (Open Office)] How do I automate the creation of a text document?

    no one?

  3. #3
    Hyperactive Member
    Join Date
    Oct 2010
    Location
    Indiana
    Posts
    457

    Re: [Write (Open Office)] How do I automate the creation of a text document?

    Ya, No One is here... LOL

    Provide More Information....
    What exactly do you mean?? Are you trying to create this document out of Microsoft Office, VSTO and just save it as Open Office compatible?????? Or are you tyring to create something to work out of Open Office???
    Last edited by nO_OnE; Jun 1st, 2011 at 08:43 AM.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [Write (Open Office)] How do I automate the creation of a text document?

    I am looking for a way of automating the generation of a text document which includes a table and an image. My client has requested, however, that it be in Open Office format.
    this is a contradiction as an open office format document is not a text document and text documents can not contain images, so the title is misleading

    not many people here work with open office
    perhaps try at
    http://www.oooforum.org/forum/index.phtml
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2010
    Posts
    9

    Re: [Write (Open Office)] How do I automate the creation of a text document?

    @westconn1 Why is it that an Open Office Document is not a text document? Is it the definition of the word? What type of document do I open in a Open Office Writer?

    What I meant with my original post was that I need a .Net reference, just like Word.Interop, to be able to work with (and create) documents programatically. The one I was using for OO was an incredible pain in the a*s and thankfully my client has said that he would like to work with Microsoft Office

    I have realized now that most people here work with Microsoft Office but I would still like to leave this question here in case someone else like me comes looking for a solution (or even if I come back to using OO).

  6. #6
    Hyperactive Member
    Join Date
    Oct 2010
    Location
    Indiana
    Posts
    457

    Re: [Write (Open Office)] How do I automate the creation of a text document?

    It is in the way the document is saved. A simple text file can be easily edited from almost anything because it just saves it as simple text. You can even display the contents of a text file on the command prompt, try it. Just create a txt file, then open up the command prompt, navigate to it, and simply type:
    Code:
    type mytxt.txt
    it will display the text in the txt file on the screen.
    Now try doing that with a Open Office Document...

    The newer MS Office (2007 and later) files are actually Zip files. If you have it try creating a document, make sure you save it in the newer format, then rename the extension to .zip, then browse through it.

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [Write (Open Office)] How do I automate the creation of a text document?

    Why is it that an Open Office Document is not a text document?
    they contain formatting and information about fonts, document properties, and may other things not contained in text documents

    i am sure that open office (as with word) can open and save text files, but these should then not be considered open office documents

    by default .doc files are opened by word (or if office is not installed, wordpad), while .txt files are opened by notepad

    as noted above the document format, of newer versions of word has changed, and i can not open them in my old version of word, or any other program installed on my computer
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width