COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Peter Eberlein
Hi, because aoo cannot open all Word docs without crashing (https://issues.apache.org/ooo/show_bug.cgi?id=125419), I wanted to let do WinWord the job. I need to know the names of all bookmarks. So StarBasic looks like this: wordInstance = CreateObject(Word.Application) wordDoc =

Re: COM OLE Automation bridge; property Name not supported

2014-08-28 Thread Peter Eberlein
Hi Mathias, it's only a typo, meant wordDoc.Bookmarks(i) the error property or method not found occurs in line msgbox bookmark.Name Regards Peter meant Am 28.08.2014 18:03, schrieb Mathias Röllig: Hi Peter! If you using the right syntax (I don't know): For i = 1 To

Database grid control; modifying columns on the fly

2013-11-22 Thread Peter Eberlein
Hi, the grid control belongs to a form, which is controlled dynamically by different sql-commands. Depending on the select-command only those columns should be visible, which are selected. I tried the following: In edit mode the grid contains all columns of the table. After modifying the

Re: API for setting a resultset to masterfields (com.sun.star.text.fieldmaster.Database)

2013-11-07 Thread Peter Eberlein
Hi Ariel, Am 06.11.2013 00:30, schrieb Ariel Constenla-Haile: Hi Peter, On Tue, Nov 05, 2013 at 03:12:45PM +0100, Peter Eberlein wrote: Hi, in the gui there's a command Data into fields for a selected row in Database sources. Any ideas how to get the selected row (bookmark of the resultset

com.sun.star.text.SectionFileLink

2013-10-11 Thread Peter Eberlein
Hi, if I break the link of a TextSection (which is linked to another section in another document) by setting the FileLink property (FileURL is empty), then the content of the section vanishes. If I do the same with GUI, then the content isn't lost. Any ideas how to preserve the content?

Re: Change column property in XTextTable

2013-09-19 Thread Peter Eberlein
Hi, Am 19.09.2013 13:36, schrieb K.Misha: Hello! I have this code: Reference XTextDocument xTextDocument (xWriterComponent,UNO_QUERY); Reference XModel aDrawDoc (xTextDocument, UNO_QUERY); ReferenceXMultiServiceFactory aFact(aDrawDoc,UNO_QUERY); Reference XTextTable xTextTable(

XText Interface of XTextSection

2013-09-18 Thread Peter Eberlein
Hi, the service css.text.TextFrame exports the XTextFrame Interface with the getText() method. The service css.text.TextSection exports the XTextSection Interface, but I'm missing a convenient method to get the XText of the section. The XTextContent's anchor of the section gives me the