Where can I find a C library to read Excel and/or ODS files? - libraries

Googling for "ods c library" doesn't lead any useful results.

This is only in its experimental status yet, but the idea behind it is to replace the LibreOffice Calc filters by an external Library. The developer is the main LibreOffice Calc developer. The OpenOffice and LibreOffice Calc filter use all UNO and are dependent on the Calc core design.

you could try libxl although that is C++ (multi platform, but xls/xlsx)

Related

F# literate programming: how to embed plots?

I've been using F# for a few months now and have started looking into ways to create documents and presentations that include static plots/charts with F#, much like I was able to do in the programming language R with knitr and Beamer slides. For literate programming, I've found that FSharp.Formatting allows me to export to HTML and that FSharp.Markdown.Pdf will allow me to export to .pdf, but in neither instance is there a clear way to embed plots generated in F#.
For creating plots, I'm familiar with FnuPlot (which allows me to write a static plot directly to a .png), Plotly, and have started looking into XPlot, but again, there isn't a clear way to include charts from these packages into document produced out of F#.
This may be more of a "plotting in F#" question than literate programming, but is there a simple means of producing a presentation or document with static charts, text/tables, and a custom CSS in F#?
Thanks for your help!
The FsLab journal template lets you turn scripts with Markdown comments and F# code snippets into a nice HTML (and with some limitations into a PDF too). Here is a sample output that it can produce.
To get started you can:
Download "FsLab Journal Template" from the FsLab downloads page
Get a Visual Studio Template if you are using VS
Look at Literate F# scripts and Embedding output documentation.
It supports embedding of XPlot and F# Charting charts out of the box. If you're interested in adding FnuPlot support, then it certainly be done - feel free to open an issue on GitHub for this.

Arbitrary long integers in Delphi - NX library?

just looking for some implementation of arbitrary large integer numbers with some basic arithmetic (add, mul, div at least) for Delphi.
All solutions I did already found are either painfully slow(FGInt, BigInt, MyBigInt, UBigInts), i386 CPU specific (sdpbigInt) or implemented in C (MPIR/GMP).
So far the best results got with Delphi GMP wrappers for MPIR, but I'd prefer pure Delphi/Asm library (MPIR requires C compiler installed and knowledge of C if would like to study algorithms or do some tweaks).
I've read positive comments about NX multiprecision library written by Marcel Martin, but unfortunately it's no more available to download from the official site at http://www.ellipsa.eu . As code was distributed as freeware including sources, I do not find a problem to get it from other site. Can anybody throw in some alternate download link, please ?
Thanks in an advance.
Since you didn't specifically ask for a free alternative: StreamSec Tools 4.0. It contains hand optimized assembler for both x86 and x64 and comes with source.

OpenOffice.org API or LibreOffice API?

Which API should I use? Which one is more promising? My main goal is to generate ODF documents. It's important for me to support ODF 1.2. And I want to use C++ and CLI bingings.
I use OpenOffice API a lot in an application of me. I made some tests with LibreOffice too and there are some (as far as i see undocumented and unwanted!) differences allready! (OO 3.2 against LO 3.4 and 3.5) Not much but here and there teh LO-Api behaves different from the OO-Api even in the same functionality. This is not important if you only deal with one of them, but it is important when you have to be sure that your App runs with OO and LO.
There is nearly no difference between the two APIs ATM. At least before Libreoffice 4.0 ( which is only in planning with no specific date ) there might be some long necessary API clean-ups. All in all they should be even c++ binary compatible.
Right now you should be able to use the same extensions/code to access both Libreoffice and Openoffice. You should only be careful with all interfaces marked as LibO 3.4 or 3.5 from http://api.libreoffice.org/

How to convert ODT to DOC/RTF without openoffice.org

Is there any way to convert odt documents to doc or rtf on linux without openoffice or any library that relies on having openoffice installed ?
OpenOffice.org and its derivatives (LibreOffice, Symphony, etc) currently have one of the best converters between ODF and the Microsoft formats (besides the ODF support built into MS Office).
If those converters are not an option for you, you can choose between some alternatives: Foremost you might want to check out the KOffice project which also offers command line tools for file conversion:
KOffice - File Filters
Then there is another open source project with a free BSD license available on SourceForge:
OpenXML/ODF Translator
This project offers not only add-ins for Microsoft Office, but also a stand-alone command line version which also runs on Linux.
Then there would also be a different approach: You can automate Google Docs using command line tools:
googlecl: Command line tools for the Google Data APIs
Google Docs file conversion have internally been based on the OpenOffice.org file filters, but as far as I know they have been replaced by Aspose, a library for document formats.
Aspose is available in several versions, and as you have a Linux dependency you might want to check out their Java version.
Aspose.Words for Java
The library has its price, but you won't find another library that is not a full office suite with that quality.
If you don't want to use OpenOffice, Google Docs is your best bet. Cross-platform, web-based, and free, it takes about 2 minutes. You would upload the file, and check convert, then redownload as a doc or pdf (depends on what you want).
http://docs.google.com/
You could try this freeware (Docx2Rtf) and run it under WINE.
Checkout unoconv. It relies on OpenOffice.org its core, but it doesn't rely on any GUI packages. I assume this is what you want?
Use http://zamzar.com/ It has great support for all those formats. And is not reliant on any other installed program.
And of course, being a web page, it will work on any OS.

How to use the OpenOffice spell checker in PB Application with OLE Object?

I am using OpenOffice in my system and already I tried about it, also i got the solution from the CodeExchange examples but i couldn't get the spell checker.
You might be able to get something useful from this tutorial on using the OpenOffice spellchecker with C#.

Resources