On Dec 10, 2007 1:11 AM, Bob Long <[EMAIL PROTECTED]> wrote:
>
> I know this is not answering the question, but have you considered using an
> on-line database to do this?
Bob,
You are 100% on multiple accounts. A: It does NOT answer my question
<GRIN> B: a on-line database would make a lot of sense, but...
The Boy Scouts meet every Thursday and the scouts do bring in order.
And on some Thursdays, the orders need to be entered for that nights
competition. Example: The first week, every scout that sells more
then $100 gets to be part of a pizza party THAT NIGHT. Also, the
final Thursday of the sale, the top three winners get their prizes.
In both cases the number need to totaled where there is no Internet
connectivity. On-line was my first thought too, so I asked if there
was Internet connectivity at where the troop meets but there isn't
that the troop has access to.
After posting, I ran across the OO Developers Guide and starting to
thing that maybe I could simple use the database and have both the
spreadsheet connect into that and my external program via ODBC. Or,
considering the external program is going to be C#.Net 3.5, simply use
the CLI libraries to connect into the OO.
I got this far in connection to OO from C#.Net 3.5:
unoidl.com.sun.star.uno.XComponentContext xLocalContext =
uno.util.Bootstrap.defaultBootstrap_InitialComponentContext();
unoidl.com.sun.star.bridge.XUnoUrlResolver xURLResolver =
xLocalContext.getServiceManager().createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",
xLocalContext) as unoidl.com.sun.star.bridge.XUnoUrlResolver;
unoidl.com.sun.star.uno.XComponentContext xRemoteContext =
xURLResolver.resolve("uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext")
as unoidl.com.sun.star.uno.XComponentContext;
The problem I ran into is that I don't know what to pass to
xURLResolver.resolve() when letting
Bootstrap.defaultBootstrap_InitialComponentContext() start up OO.
Sam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]