Questions tagged [opendocument]

opendocument is intended for questions related to one of the XML file formats defined in the Open Document Format for Office Applications specifications.

opendocument is an ISO standard which encompases three file formats:

  • .odt (word processor documents)
  • .ods (spreadsheet documents)
  • .odp (presentation documents)

These formats are defined by the following specifications:

  • ODF 1.0
  • ODF 1.0 (Second Edition)
  • ODF 1.1
  • ODF 1.2
  • ODF 1.3 (In Development)

Apache OpenOffice is the reference implementation.

References

88 questions
3
votes
1 answer

Using jopendocument with coldfusion/railo, how to add table row?

I'm using jopendocument 1.2 with Railo 3.3.1.000 from http://www.jopendocument.org/start_text_2.html List> months = new ArrayList>(); months.add(createMap("January", "-12",…
tsurahman
  • 1,892
  • 5
  • 17
  • 26
3
votes
1 answer

Populate a QTextDocument from a .odt file

I am writing a rich text editor using C++ and Qt. For now, I would like it to support (at least) the .odt format. I found QTextDocumentWriter for writing the contents of the QTextDocument to a file, but I can't seem to find anything to read that…
houbysoft
  • 32,532
  • 24
  • 103
  • 156
3
votes
2 answers

How do I write a Microsoft Word/Office Open XML document using Perl?

I have written a Perl script that reads some data and generates an OpenOffice Writer/OpenDocument file for that data. Can I also construct a Microsoft Word/Office Open XML document?
name_masked
  • 9,544
  • 41
  • 118
  • 172
3
votes
1 answer

Manipulating ODT documents with PHP (basic search and replace)

With LibreOffice, I have designed and written a text document (ODT format). Now I want to find certain placeholders programmatically and replace them with text from a database. I know there are some ODT libraries for PHP, but as ODT files are just…
caw
  • 30,999
  • 61
  • 181
  • 291
3
votes
1 answer

How to replace text in XML document with special chars?

Look at the end of this post for an addition to that problem with textboxes! With this method I want to open a document, replace some text and then leave it alone. It works, thats something to be proud of. :D public static void…
Trollwut
  • 541
  • 1
  • 7
  • 23
2
votes
3 answers

C++ class to read and write opendocument spreadheets (*.ods)

I was looking for a Qt implementation (since Qt already support export of rich text to odt) but found none of them. Then I was astonished that I can't find any C++ class to read/write ods files. I need to import/export tables with basic formating…
Julien M
  • 657
  • 3
  • 10
  • 40
2
votes
1 answer

com_error: (-2147352567, 'Exception occured', (10, 'AspenModeler', 'A string value was expected', None, 0, 0), None)

When I use aspen custom modeller in python, This error occurs. Here is the code: Application = win32.Dispatch('ACM Application 3700') ACMP = Application.OpenDocument(os.path.abspath("Distillationcolumn.acmf")) and the error is com_error:…
Yin
  • 21
  • 3
2
votes
1 answer

The Open Document Specification about the manifest.xml file

The "Oasis Open Document Specification" says in Page 709 "17.1 Introduction" the Information stored inside the Manifest.xml file should be: A list of all of the files in the package. The media type of each file in the package. If a file stored in…
2
votes
2 answers

SAP BI Open Doc URL for retrieving PDF

In a reporting application we use, we were using BI 3.x API to produce Web reports. While doing the migration activity to 4.x version, we thought it is fine to go with open doc URL rather than doing the report generation through API. Many of the…
Raja
  • 627
  • 1
  • 9
  • 24
2
votes
0 answers

Python convert ODS to xlsx in memory

I have a Django app that generates reports using relatorio ODS templates. The output rendered file is also in ODS format. I would like to be able to convert the output ODS to PDF, XLS, XLSX ..etc. The only solution I could find was by running…
thelinuxer
  • 658
  • 1
  • 8
  • 28
2
votes
1 answer

How to create a style within OpenDocument/LibreOffice Writer to get titles on their own page?

I would like to make a style within a LibreOffice text document that formats all my top-level headlines to appear alone on a dedicated page. Actually, I would like to have quite the same as the chapters title pages of the LibreOffice Writer…
user1919510
2
votes
1 answer

What "text:s" means?

I parse content.xml and faced within office:spreadsheet -> table:table -> table:table-row -> table:table-cell -> text:p. What do "text:s" and it's attibute "text:c" mean?
Slaus
  • 2,086
  • 4
  • 26
  • 41
2
votes
2 answers

Can the LibreOffice / OpenOffice merge tool be used as `git-mergetool`?

I stumbled upon an old blog post suggesting this, unfortunately only as an unimplemented idea. Has this been done meanwhile / how can it be achieved? (I heard TortoiseGit might do this, but I'm running Linux) An alternative could also be the re-zip…
Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
2
votes
1 answer

MS Word won't read ODF file written with QTextDocumentWriter

I gave a try for QTextDocumentWriter and managed to generate ODF file copy-pasting sample code. The code looked pretty straightforward. But although OpenOffice opens generated document very well, my MS Word 2010 reports an error. If I choose to…
MaksymB
  • 1,267
  • 10
  • 33
2
votes
2 answers

How to save .NET DateTime in OpenDocument

I'm using C# to write out an OpenDocument spreadsheet in XML. No problem with writing double values, which work fine just like this: private void SaveFloatCell(XmlNode rowNode, XmlDocument ownerDocument, double number) { XmlElement…
Shunyata Kharg
  • 927
  • 3
  • 14
  • 26