Thread: Report on the fly

  1. #1
    Registered User
    Join Date
    May 2014
    Posts
    3

    Report on the fly

    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

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    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?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    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

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Am I the only one that thought, doing a report on the common house fly in trying to decipher the OP post?
    I hear it's all the buzz these days.

  5. #5
    Registered User
    Join Date
    May 2014
    Posts
    3
    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++

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by castle18 View 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++
    The type of data source will likely be needed, also.
    I can NOT help no matter what you say because I have no info on ods reports.
    I am guessing its another document format for formatted text or spreadsheet style documents.

    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

  7. #7
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    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

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.

  9. #9
    Registered User
    Join Date
    May 2014
    Posts
    1
    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.

  10. #10
    Registered User
    Join Date
    May 2014
    Posts
    3
    Thank you all for your answers. I'll try

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. report messages
    By steve1_rm in forum C Programming
    Replies: 6
    Last Post: 11-05-2009, 11:04 PM
  2. Creating a Report
    By JustMax in forum C Programming
    Replies: 0
    Last Post: 03-30-2009, 08:52 AM
  3. Keep getting an error report
    By FingerPrint in forum Game Programming
    Replies: 5
    Last Post: 07-24-2006, 02:41 PM
  4. Need help on payroll report
    By cgurl05 in forum C Programming
    Replies: 5
    Last Post: 04-08-2006, 07:58 PM
  5. Crash Report
    By no_Crash in forum C# Programming
    Replies: 0
    Last Post: 01-16-2003, 01:01 PM

Tags for this Thread