odt


openoffice: duplicating rows of a table in writer

北战南征 提交于 2020-01-14 03:26:05
问题 I need to programmatically duplicate rows of a Table in openoffice writer. It's not difficult to add rows via table.Rows.insertByIndex(idx, count) , that adds empty rows and it's easy to add text in that row assigning DataArray to the CellRange . Doing this way you loose control on the style of the cells and specifically if a cell has words with different style (bold/italic) they get flattened to the same face. What I need is to duplicate a row in a way that preserves the style of each word

Add styling rules in pandoc tables for odt/docx output (table borders)

守給你的承諾、 提交于 2019-12-29 18:25:16
问题 I'm generating some odt/docx reports via markdown using knitr and pandoc and am now wondering how you'd go about formating tables. Primarily I'm interested in adding rules (at least top, bottom and one below the header, but being able to add arbitrary ones inside the table would be nice too). Running the following example from the pandoc documentation through pandoc (without any special parameters) just yields a "plain" table without any kind of rules/colours/guides (in either -t odt or -t

Add styling rules in pandoc tables for odt/docx output (table borders)

丶灬走出姿态 提交于 2019-12-29 18:25:14
问题 I'm generating some odt/docx reports via markdown using knitr and pandoc and am now wondering how you'd go about formating tables. Primarily I'm interested in adding rules (at least top, bottom and one below the header, but being able to add arbitrary ones inside the table would be nice too). Running the following example from the pandoc documentation through pandoc (without any special parameters) just yields a "plain" table without any kind of rules/colours/guides (in either -t odt or -t

How can I generate Byte array from an ODT file java

穿精又带淫゛_ 提交于 2019-12-25 13:15:34
问题 I am trying to generate a PDF from an ODT template file which contain the fields i need to populate. I wanted to get the byte array of this ODT template which is present in the root folder of my project. My application is in such a way that the byte array is provided to generate the PDF. Is there any specific method to generate the byte array without losing the properties of the template..? 回答1: Try this may help you : URL url = this.getClass().getResource("/your_file"); File templateFile =

Django create .odt or .docx documents to download

喜欢而已 提交于 2019-12-21 20:24:42
问题 I need to generate either .odt or .docx files based on the information I have in my database. Let's say I have a model: class Contact(models.Model): first_name = models.CharField() last_name = models.CharField() email = models.EmailField() I want that users are able to generate office document that contains that information and also some other text. I took a look for this example which is using python-docx and it gives me an idea how to generate that document. But I can't figure out where

Webodf display odf from bytes

浪尽此生 提交于 2019-12-13 18:20:01
问题 Is it possible for webodf to read a odf / odt file from its bytes? instead of an url? Currently using: var odfelement = document.getElementById("odf"); var odfcanvas = new odf.OdfCanvas(odfelement); odfcanvas.load("url/to/file.odt"); and would like something like odfcanvas.loadFromBytes(bytes); 回答1: Yes, It is possible to read an odt file from byte Array and then load it in webodf editor. To do so ,you will have to use javascript blob objects to construct a file from a byte array(desired file

How generate docx/odt file with math formulas from java

只愿长相守 提交于 2019-12-13 17:20:49
问题 Good day. I must generete docx or odt file with many math formulas inside. i try to find solution in Apashe POI & ODFtoolkit but i am not was able. google doesn't help. ( May be anybody can help me with solution in this task? (any example?) Thanks. 回答1: You could use the docx4j library. Here is the documentation for Getting started. I recommend that you create a template file first, with all the formatting, and as much structure as you can. Then you should put in content-controls where you

Changing backgroundcolor of a table-cell based on its value

ぐ巨炮叔叔 提交于 2019-12-13 00:55:03
问题 I'm using this nice tool pod to generate ODT-Files in my django-application. Is there a way to change the backgroundcolor of a table-cell based on its value? 回答1: Sure, in LibreOffice its easily found on the menu. Format -> Conditional Formatting. 回答2: You could generate a tag for the color in your django application and then have a post process LibreOffic Writer macro going through the tags and change the background color of the cells accordingly. 来源: https://stackoverflow.com/questions

Perl OpenOffice::OODoc - accessing header/footer elements

倖福魔咒の 提交于 2019-12-11 11:10:22
问题 How do you get elements in a header/footer of a odt doc? for example I have: use OpenOffice::OODoc; my $doc = odfDocument(file => 'whatever.odt'); my $t=0; while (my $table = $doc->getTable($t)) { print "Table $t exists\n"; $t++; } When I check the tables they are all from the body. I can't seem to find elements for anything in the header or footer? 回答1: I found sample code here which led me to the answer: #! /usr/local/bin/perl use OpenOffice::OODoc; my $file='asdf.odt'; # odfContainer is a

Oracle Connection in C# - connection string

£可爱£侵袭症+ 提交于 2019-12-11 00:26:37
问题 I'm currently trying to build an application in C# and connecting it to a live db running in Oracle 11g. I have the following connection details Host IP: 10.204.1.3 Port: 1521 DB Name: PROD My source code string connString = "DATA SOURCE=10.204.1.3:1521/PROD;PERSIST SECURITY" + "INFO=True;USER ID=username; PASSWORD=userpass"; OracleConnection conn = new OracleConnection(connString); conn.Open(); I was able to add a connection in Server Explorer with the Connection String used by VS but is

工具导航Map