Hey. At my company want to do a report on the fly. I have already connected the COM, but I do not like it, can someone tell me something better. thank you
Hey. At my company want to do a report on the fly. I have already connected the COM, but I do not like it, can someone tell me something better. thank you
you need to provide a lot more information about your problem, if you expect us to help. we don't know your systems. we have no idea what you're trying to accomplish, or what you've tried so far.
1. show a basic example of your code.
2. explain what input you're giving it, the output you're expecting, and the output you're getting (if different).
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
Am I the only one that thought, doing a report on the common house fly in trying to decipher the OP post?
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
I hear it's all the buzz these days.Am I the only one that thought, doing a report on the common house fly in trying to decipher the OP post?
I'm using OpenOffice 3.4.1. I need to create *.ods reports on fly from our corporative software. I tried COM for OpenOffice automation but it is very slow and not safety.
Also I tried to automate OpenOffice using original OO SDK. But there not much examples, that's why it's too difficult for me =(
Maybe you know some components(lib, dll) to automate OpenOffice Calc?
Regards!
Windows 7 x64, VS2008 C++
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
While I don't know anything about the OpenOffice API, I'm sure there is information out there that can help you along. If the biggest problem is not being able to find enough examples, maybe you should just try to learn it from the ground up. This includes thorough research, intensive reading, and doing some practice exercises.
Have you been able to configure the SDK for your OS? If not, maybe this will help:
How To: Configure OpenOffice SDK in Windows for C++ | The Thoughts and Ponderings of A B Lärfors
Have you read through the developer's guide (which seems to contain examples, albeit in Java)?
https://wiki.openoffice.org/wiki/Doc...velopers_Guide
And ... oh, look! Some C++ examples!
https://wiki.openoffice.org/wiki/Calc/API/Programming
https://wiki.openoffice.org/wiki/Cal...eet_Operations
I suppose the other thing to realise is that .ods files are really just .zip files containing a bunch of XML files (some of them boilerplate).
Depending on your requirements, you can just output your XML and throw it into a zip file and rename it.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I did similar job not long ago. For me it was the easiest way is to use ready and tested component. Such as LibOpenOffice. Link: LibOpenOffice | 4k.com.ua I also tried OO example, they didn't work.
Thank you all for your answers. I'll try