openoffice.org

Use OpenOffice Uno CLI with C# to create a spreadsheet

最后都变了- 提交于 2019-11-28 19:58:24
I have so far found a couple of sources that discuss creation of ODS files: How to create ODS documents in .Net and How to create .odt files with C#.NET? And most interestingly an explanation for opening calc files . However this opens OpenOffice in fullscreen, what im looking for is some way to write to a Calc file (.ods) without actually opening Openoffice. So that I can write a function that just opens a savefiledialog, gets the filename and then creates and saves the .ods file. Are there is any C# code examples available to do such a thing? So I have finally resolved this issue and want to

Open Office Spreadsheet (Calc) - Concatenate text cells with delimiters

亡梦爱人 提交于 2019-11-28 06:32:35
I am using Open Office's spreadsheet program and am trying to concatenate several text cells together with delimeters. For example, suppose I have the cells below: +--------+ | cell 1 | +--------+ | cell 2 | +--------+ | cell 3 | +--------+ | cell 4 | +--------+ | cell 5 | +--------+ I would like to concatenate them with delimiters so that the result is in one cell like this one: +----------------------------------------------+ | (cell 1),(cell 2),(cell 3),(cell 4),(cell 5) | +----------------------------------------------+ My first thought was to try and make a macro or something, but I don't

OpenOffice command line PDF creation

大兔子大兔子 提交于 2019-11-28 06:30:15
I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a command line command? OscarRyz Art of Solving has also a very good API to perform the conversion in Java. It is a little slow but it is simple enough. This is how I use it: File inputFile = new File("C:\\oreyes\\hola.doc"); File outputFile = new File("C:\\oreyes\\hola.pdf"); OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100); try

Join two spreadsheets on a common column in Excel or OpenOffice

十年热恋 提交于 2019-11-28 06:19:28
I have two CSV files with a common column and I want to "Join" the tables together on the common column. For example: Join 'A' with 'B' equals 'Result'. If a one table has a key value that does not exist on in the other table its just left as blank. == Table A == == Table B == == Table result == Name ,Age Name ,Sex Name ,Age ,Sex Bob ,37 + Bob ,Male => Bob ,37 ,Male Steve ,12 Steve ,Male Steve,12 ,Male Kate , 7 Kate , 7 , Sara ,Female Sara , ,Female I know how to do this with an SQL database but I have never done it with "Excel" or "OpenOffice.org Calc" Suggestions? robert In Excel, vlookup

how to create an odt file programmatically with java?

丶灬走出姿态 提交于 2019-11-28 05:00:26
How can I create an odt (LibreOffice/OpenOffice Writer) file with Java programmatically? A "hello world" example will be sufficient. I looked at the OpenOffice website but the documentation wasn't clear. Adnan Take a look at ODFDOM - the OpenDocument API ODFDOM is a free OpenDocument Format (ODF) library. Its purpose is to provide an easy common way to create, access and manipulate ODF files, without requiring detailed knowledge of the ODF specification. It is designed to provide the ODF developer community with an easy lightwork programming API portable to any object-oriented language. The

How to Search and Replace in odt Open Office document?

◇◆丶佛笑我妖孽 提交于 2019-11-28 01:13:20
问题 In my Delphi application I am currently do Search&Replace programmatically for doc and docx word documents using office ole automation. Does anyone has the code to do the same (for doc, docs, odt) in OpenOffice? I also asked a related question on saving to pdf. 回答1: You should take a focus on XReplaceable interface. Here is the example. Please note, that there's no error handling. I've tested it with LibreOffice writer and it works fine for me. uses ComObj; procedure OpenOfficeReplace(const

Saving to pdf from OpenOffice

谁说我不能喝 提交于 2019-11-28 00:29:37
Since I just asked this question and got a very useful reply I wonder if anyone has already the code for using the documentTopdf routine built in in Open Office for saving odt, doc, docx files to pdf. Here there is the c# example anyway since having it in Delphi direcly would be great for many users. Very similarly :) Here is the tutorial describing all features used for configuration of the generated document. For the following example I chose fit to width magnification, password protection and hidden window controls. The export is done in hidden mode when the OpenOffice window isn't shown at

Problems with office automation in asp.net. I can use alternatives such as open-office, if I knew how

谁都会走 提交于 2019-11-27 22:31:47
问题 I have a ASP.NET 2.0 web application that should upload a ppt file and then extract its slides to images. For that I have imported office.dll and Microsoft.Office.Interop.PowerPoint.dll assemblies and wrote the following code public static int ExtractImages(string ppt, string targetPath, int width, int height) { var pptApplication = new ApplicationClass(); var pptPresentation = pptApplication.Presentations.Open(ppt, MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoFalse); var slides

How to convert ppt to images in Ruby?

六眼飞鱼酱① 提交于 2019-11-27 21:56:27
问题 I'm using Ruby for displaying the contents of powerpoint files in a webpage. I've found solutions using the win32ole but I'm in the linux environment and it doesn't work. I think the application could trigger a openoffice command for conversion. 回答1: I recommend using Docsplit. Install the gem, and then you can do something like: Docsplit.extract_images(filename, :size => '920x', :format => [:png]) 回答2: You can use Rjb and JODConverter to export your powerpoint to flash (or any other format).

How can I use OpenOffice in server mode as a multithreaded service?

不打扰是莪最后的温柔 提交于 2019-11-27 18:34:56
What is the experience of working with OpenOffice in server mode? I know OpenOffice is not multithreaded and now I need to use its services in our server. What can I do to overcome this problem? I'm using Java. Yes, I am using OpenOffice as a document conversion server. Unfortunately, the solution to your problem is to spawn a pool of OpenOffice processes. The commons-pool branch of JODConverter (before it moved to code.google.com ) implemented this out-of-the-box for you. With the current version of JODConverter (3.0-SNAPSHOT), it's quite easy to handle multiple threads of OOo in headless