[api-dev] Mailmerge + SQL query ?

2008-02-19 Thread Aladdin
Hi there, I'm trying to do a mailmerge with SQL query, I have all my record (32 records equals 32 pages) but my datafield are empty ? Is there anything else to do than : myMailMerge.CommandType = com.sun.star.sdb.CommandType.COMMAND myMailMerge.Command = "SELECT * FROM biblio" Here is the sour

[api-dev] [solved!] working with objects: syntax error

2008-02-19 Thread Jonathan Kaye
Christoph Jopp wrote: First, a big thank you to Fernand and Christoph for all your help. Xray is happily running (in English). I found what the problem was and it's actually quite funny. Maybe there is a warning about it somewhere but if not, perhaps there should be. I read this NG using Knode KD

Re: [api-dev] Menu refreshes often and deadlocks OOo

2008-02-19 Thread Philipp Lohmann
Sorry, no immediate idea. However as far as I remember Ubuntu Gutsy used an intermediate developer version for its release that was known to cause a plethora of SNAFUs that were fixed in the correspoding actual 2.3 release. This may or may not have anything to do with the described problem. K

[api-dev] [C++] Set size on an embedded XSpreadsheet in TextEmbeddedObject...

2008-02-19 Thread Andre Heine
Hello all, does anyone know how I could set the size of an embedded XSpreadsheet? For example: I write a calc table with hand, select the columns/rows and copy the selected area into an swriter document. When I do so, the OLE Object is automatically fit like a glove to the size from the sheet

Re: [api-dev] Menu refreshes often and deadlocks OOo

2008-02-19 Thread Carsten Driesner
Tobias Krais schrieb: Hi Carsten, I think this is a special thing for you... I have an application adding a transient menu to the menubar. This works very like a charm on all systems, out of one: its an Ubuntu Gutsy 32bit (OOo 2.3): the menu refreshes several times and produces often a deadlock

[api-dev] Menu refreshes often and deadlocks OOo

2008-02-19 Thread Tobias Krais
Hi Carsten, I think this is a special thing for you... I have an application adding a transient menu to the menubar. This works very like a charm on all systems, out of one: its an Ubuntu Gutsy 32bit (OOo 2.3): the menu refreshes several times and produces often a deadlock! The menu refresh is ex

Re: [api-dev] [NOT SOLVED] [C++] TextEmbeddedObject for inserting spreadsheet into swriter

2008-02-19 Thread Andre Heine
Hello all, I've found the "strange behavior" :-) My linux box is too fast... I must sleep for a second between "Reference< XEmbeddedObjectSupplier >" and "rEmbeddedObjectSupplier->getEmbeddedObject()" That was it... Best regards... Andre Am Dienstag, 12. Februar 2008 18:07 schrieb A

Re: [api-dev] OO 2.4rc1 disposing(EventObject) on XTerminationListener

2008-02-19 Thread Andreas Schlüns
Hello Cornelis, Hello Andreas, We need to restart the office from our code, but the process will deadlock when we bootstrap while another office process is terminating. So we need a reliable way to determine wether the office is terminated. By the disposing call, we could know that. Is there

Re: [api-dev] Re: Re: working with objects: syntax error

2008-02-19 Thread Christoph Jopp
Hi Jonathan, I now copied the Code you sent in my OOo-Basic-Editor and it works with "abc.def" in Cell A1. It may depend on the Version of OOo and maybe the platform. Nevertheless the method createTextCursor() is one of XSimpleText and oCell.createTextCursor() is just a shortcut for: oCell.getText

[api-dev] xStorable.getLocation() return old MS-DOS style path - How to solve?

2008-02-19 Thread Tobias Krais
Hi together, I have a litte application and need to know the full path of the current document. Thus I use the XStorable interface. Using the xStorable.getLocation() method returns on a Windows XP system (using OOo 2.3): file:/F:/DOKUME1/Tobias/EIGENE1/... Correct would be: file:/F:/Dokumente und

[api-dev] Re: Re: working with objects: syntax error

2008-02-19 Thread Jonathan Kaye
Christoph Jopp wrote: > Hi Jonathan > > Jonathan Kaye schrieb: >> Hi Christoph, >> I tried this: >> Sub SetBold >> Dim oDoc As Object, oSheet As Object, oCell As Object >> Dim oTextCursor as Object >> Dim Position as Integer >> oDoc=ThisComponent >> oSheet=oDoc.Sheets.getByName("Sheet1"

Re: [api-dev] Re: working with objects: syntax error

2008-02-19 Thread Christoph Jopp
Hi Jonathan Jonathan Kaye schrieb: > Hi Christoph, > I tried this: > Sub SetBold > Dim oDoc As Object, oSheet As Object, oCell As Object > Dim oTextCursor as Object > Dim Position as Integer > oDoc=ThisComponent > oSheet=oDoc.Sheets.getByName("Sheet1") > oCell=oSheet.getCellByposition(

Re: [api-dev] OO 2.4rc1 disposing(EventObject) on XTerminationListener

2008-02-19 Thread Cornelis Hoeflake
Hello Andreas, Andreas Schlüns wrote: Hello Cornelis, Hi, When I connect to OpenOffice.org 2.4 RC1, with the Java UNO bridge (Bootstrap.bootstrap()), I can get the XDesktop and store it in a variable. Now, I add a XTerminateListener to the desktop. After that, I call XDesktop.terminate().

Re: [api-dev] Re: Re: working with objects

2008-02-19 Thread Christoph Jopp
Hi Jonathan, the Xray-Tool is written in OOo-Basic and platform-independent. If you follow the given link, you can download a zip-file. De-zip it and you have an OOo-Document (.sxw) with further instructions and an install button. (make sure your security settings allow execution of the embedded m

[api-dev] Re: working with objects: syntax error

2008-02-19 Thread Jonathan Kaye
Christoph Jopp wrote: > Jonathan Kaye schrieb: >> Jonathan Kaye wrote: >> >> >> >>> Hi Fernand, >>> Thanks for the reference. I had a look but there's a huge amount of >>> material and I didn't really see anything relevant to the situation I >>> described. Can you give me a hint as to how to d

[api-dev] Re: Re: working with objects

2008-02-19 Thread Jonathan Kaye
Christoph Jopp wrote: > Jonathan Kaye schrieb: >> Jonathan Kaye wrote: >> >> >> >>> Hi Fernand, >>> Thanks for the reference. I had a look but there's a huge amount of >>> material and I didn't really see anything relevant to the situation I >>> described. Can you give me a hint as to how to d

Re: [api-dev] Removing Extension crashed OOo

2008-02-19 Thread Tobias Krais
Hi Stephan. >> Against which project should I file the issue? > > The Extension Manager is in the desktop module, part of the Framework > project. (You can assign the issue directly to jl, he will happily look > into it...) Done: http://www.openoffice.org/issues/show_bug.cgi?id=86220 Greetings

[api-dev] Re: Re: working with objects

2008-02-19 Thread Jonathan Kaye
Fernand Vanrie wrote: >>> >> As a follow-up to my previous message, I can see that >> oCell=oSheet.getCellByposition(0,0) 'A1 >> and then >> oCell.CharWeight = com.sun.star.awt.FontWeight.BOLD >> should make the contents of oCell bold. What I don't understand is how to >> make a substring of

Re: [api-dev] Re: working with objects

2008-02-19 Thread Christoph Jopp
Sorry, Fernand was quicker Christoph Jopp schrieb: > Jonathan Kaye schrieb: > >> Jonathan Kaye wrote: >> >> >> >> >>> Hi Fernand, >>> Thanks for the reference. I had a look but there's a huge amount of >>> material and I didn't really see anything relevant to the situation I >>> descr

Re: [api-dev] Re: working with objects

2008-02-19 Thread Christoph Jopp
Jonathan Kaye schrieb: > Jonathan Kaye wrote: > > > >> Hi Fernand, >> Thanks for the reference. I had a look but there's a huge amount of >> material and I didn't really see anything relevant to the situation I >> described. Can you give me a hint as to how to define a substring of an >> object

Re: [api-dev] Re: working with objects

2008-02-19 Thread Fernand Vanrie
Jonathan Kaye wrote: Jonathan Kaye wrote: Hi Fernand, Thanks for the reference. I had a look but there's a huge amount of material and I didn't really see anything relevant to the situation I described. Can you give me a hint as to how to define a substring of an object that is itself an ob