[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?
Re: [Write (Open Office)] How do I automate the creation of a text document?
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???
Re: [Write (Open Office)] How do I automate the creation of a text document?
Quote:
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
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). :)
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:
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.
Re: [Write (Open Office)] How do I automate the creation of a text document?
Quote:
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