openoffice.org

OpenOffice.org: macro help

有些话、适合烂在心里 提交于 2019-12-11 15:54:01
问题 In OOo Calc I need to copy a column (only the values , not the format) from one sheet to another (in the same worksheet) using a macro assigned to a button. I browsed a bit around but found nothing significant :-( 回答1: To answer the original question: use a data array, which will be significally faster on large ranges of cells Source = ThisWeek.getCellRangeByName("H12:H206") source_data = Source.getDataArray() Target = Steering.getCellRangeByName("M12:AU206").setDataArray(source_data()) 回答2:

Use LibreOffice / OpenOffice to convert docx to pdf

会有一股神秘感。 提交于 2019-12-11 14:52:57
问题 i want to use LibreOffice / OpenOffice commande line to convert docx file to pdf file, but i'm struggling to use these tool, Is there anyone who knows how to use LibreOffice / OpenOffice commande line ?. Please, If there's any suggestion, do not hesitate. Thank You ! 回答1: This may work. soffice --convert-to pdf some.docx --headless (I've only tried it with .odt files myself, but fingers crossed.) 来源: https://stackoverflow.com/questions/55709687/use-libreoffice-openoffice-to-convert-docx-to

export images and graphics in doc files to images in openoffice

天大地大妈咪最大 提交于 2019-12-11 10:15:14
问题 I am using openoffice sdk to get all info from doc file, what I need now is to be able to extract all images in a doc file and save them as images png or gif. I am using Java, Is there any working example? thanks; 回答1: Here it is example how to extract images from MS Word/OpenOffice documents. It is written in C# but it trivial to convert it to Java. link: http://blog-of-darius.blogspot.com/2011/03/extract-images-from-word-openoffice.html Updated: I converted code to Java import com.sun.star

How to convert TSV to CSV using openoffice

我的未来我决定 提交于 2019-12-11 07:24:20
问题 How do convert TSV file to CSV format using openoffice ? 回答1: TSV = Tab separated ? If so, just give it a .txt extension, open in the spreadsheet program (Calc) as CSV, the Wizard will ask you which is the field separator, choose TAB. Afterwards, save it as a (true) CSV. 回答2: Only solution that I found was find and replace, I used my emacs to replace "tab" with "," and it worked. 来源: https://stackoverflow.com/questions/2549800/how-to-convert-tsv-to-csv-using-openoffice

Using Java find installation directory of an application?

一世执手 提交于 2019-12-11 06:58:12
问题 How do I find installation directory of OpenOffice using Java Code? I want to run it as a service when a user uses my application. 回答1: There is no portable solution to this. On Windows you can search the registry; see read/write to Windows Registry using Java. On Linux / UNIX, you can search the default installation directories, though these may vary from one distribution to the next. 来源: https://stackoverflow.com/questions/6250034/using-java-find-installation-directory-of-an-application

This HTML Word document displays incorrectly in OpenOffice.org

梦想与她 提交于 2019-12-11 05:28:45
问题 I have this simple code in php: <?php header("Content-type: application/vnd.ms-word"); header("Content-Disposition: attachment;Filename=kid_tag.doc"); echo '<table cellspacing="0" cellpadding="0" border="0" width="8.4cm"> <tr> <td colspan="3" style="text-align: right; height: 0.6cm">Nursery</td> </tr> <tr> <td style="height: 1.8cm"><img src="http://images.funadvice.com/photo/image/old/6943/tiny/cat.jpg" /></td> <td style="text-align: center; font-weight: bold">Sofia Abello</td> <td> </td> <

Reading Openoffice Calc (.ods) programmatically using c#?

核能气质少年 提交于 2019-12-10 13:36:32
问题 I want to know if it is possible to read OpenOffice Calc spreadsheet programatically with c#, I can do this for Excel(.xls and .xlsx) but unable to find a solution for reading calc spreadsheet. Help me if anyone has solution. 回答1: ODF .NET - It works for c# and you can read and write. Says like this on there page: ODF .NET allows you to write applications to create, modify and parse text documents and spreadsheets. Supports all versions of .NET Framework, .NET Compact Framework and Mono. 回答2:

What is the (single) best online source for learning OpenOffice.org scripting API [closed]

纵然是瞬间 提交于 2019-12-09 05:40:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am using OpenOffice.org for most of my not so very frequent Office Suite needs and most of the time it is more than adequate replacement for it's commercial alternative. Where it falls short though is the scripting API. I am yet to find the documentation that would make sense of the API in a way that would let

Adding up all the positive numbers in Excel

感情迁移 提交于 2019-12-08 21:41:17
问题 Is there a way to add up all of the positive numbers in a row/column but ignoring all of the negative numbers? Like SUM(), except that it ignores negative numbers. Would I have to use VBA? If so, how would I do it in VBA? If it can't be done in Excel, can it be done in OpenOffice Calc? 回答1: Use SUMIF. YTo sum all the positive numbers in Column A: =SUMIF(A:A,">0") Same function exists in Excel and Calc 回答2: =SUMIF(A1:A99,">0") 回答3: Sure like this: =SUMIF(B1:B50,">0") This will add all positive

libreoffice massive text color change

走远了吗. 提交于 2019-12-08 16:49:35
问题 Is there a way to change all occurrences of a specific color in a text in LibreOffice or Openoffice? 回答1: yes: With cursor in the find box: hit " more options " in the Search & Replace dialogue; click on " Format... "; select " Font effects "; select the color to search for; Repeat the same for the replace box, selecting the desired new color (or " Automatic " to reset it to the default). 回答2: Here at pp 19-20 it is written how to do it with AltSearch extension. The benefits of using