[api-dev] How to make changes to a Dialog persistent

2011-12-14 Thread Fernand Vanrie
When have made some changes to a Dialog (stored in a Librarie) I trye to make this changes persitent for future use. The secrets are in the methods off the dialog.model odialog.model.read( ???) odialog.model.write(???) found a confusing explaination in the DSK but nullware any examples how to

[api-dev] Re: Getting information from some site via Basic IDE – possible? How?

2011-07-19 Thread Fernand Vanrie
Andor, Yes you can do it , using the connection provideror using the UCB. Go to the OpenOffice unofficial forum and try http or https and you will find some code you can use to acces a website adress. Gave also look a some Translater extentions, they use Google Translate and send and get back

[api-dev] Re: Adding Items to a Sub-Menu

2011-06-16 Thread Fernand Vanrie
Ariel, The stuff you did with a dialog's an menu's inside, could be a alternative in basic ? the examples made by Ariel i found here http://hermione.s41.xrea.com/pukiwiki/pukiwiki.php?OOoBasic%2FDialog%2FExample15 Hope it helps Fernand Hello Hal, On Wednesday 15 June 2011, 02:05,

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
Hal , Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep it visible i use 2 sub's for open and closing Sub Opendialog bEnd = false oDialogcontrol.setvisible(true) Do Wait 100 ' keep computer running (should use wait for key event if existed) Loop while not bEnd

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
a cancelbuton who call a sub who close the dialog and do someting more... Thanks! Hal On Jun 16, 2011, at 3:30 AM, Fernand Vanrie wrote: Hal , Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep it visible i use 2 sub's for open and closing Sub Opendialog bEnd = false

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
On 16/06/2011 09:52, Hal Vaughan wrote: On Jun 16, 2011, at 3:30 AM, Fernand Vanrie wrote: Hal , Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep it visible Am I right, then, in assuming that the time loop is there because once that particular instance

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
Hal , when using a Listner the Listener subroutine is called with a EventObject the EventObject.source is the ButtonControl the EventObject.source.context is the DialogControl oDialogControl = oEvent.source.context On Jun 16, 2011, at 4:59 AM, Fernand Vanrie wrote: On 16/06/2011 10:20

[api-dev] Can a RichTextControl filled with formated text from a WriterDoc

2011-06-14 Thread Fernand Vanrie
Can i fill a Dialog RichTextControl with (formated) text from a Writer Doc. ? Ariel learned us to format a text in aRichTextcontrol , but how can i copy some text from a writerDoc to a RichTextControl without losing the text formating ? Thanks for any hint Fernand --

[api-dev] Re: using connection and https

2011-06-09 Thread Fernand Vanrie
Stephan, it can: using the UCB, but i am still confused about the posting part of it have a look at the forum http://www.oooforum.org/forum/viewtopic.phtml?t=88980 Greetz Fernand On Wed, May 25, 2011 at 5:46 PM, Fernand Vanrie s...@pmgroup.be mailto:s...@pmgroup.be wrote: Thanks

[api-dev] using connection and https

2011-05-25 Thread Fernand Vanrie
Hallo, I trie to connect to Googleapis using OO and https ? Code: oConnector = createUnoService(com.sun.star.connection.Connector) oConnection = oConnector.connect(socket,host=www.googleapis.com,port=80) oConnection.write( StringToByteArray( GET

[api-dev] Re: using connection and https

2011-05-25 Thread Fernand Vanrie
Christian , Thanks for your valuable help. After i succeeded to use the OO connection stuff to use Google Translations i was tempted to use the newest Google Tasks API too. Using port 443 i get no respons at all ? I left my API_Key out for security reasons. But In my working code for

[api-dev] Re: using connection and https

2011-05-25 Thread Fernand Vanrie
Christian , Thanks again, BTW do you know who can give me more info about OO - SSL connections ? Greetz Fernand On Wed, May 25, 2011 at 4:01 PM, Fernand Vanries...@pmgroup.be wrote: Christian , Thanks for your valuable help. After i succeeded to use the OO connection stuff to use Google

[api-dev] Re: MailMerge settings

2011-05-12 Thread Fernand Vanrie
hope it works Fernand Hi Fernand, Il 11/05/2011 19:52, Fernand Vanrie ha scritto: Paolo , I think you need refresh your textfields, when needed i can send you some code tomorrow Thank you for the suggestion. Actually I forgot to mention that I did already experimented the refresh method

[api-dev] Re: MailMerge settings

2011-05-11 Thread Fernand Vanrie
Paolo , I think you need refresh your textfields, when needed i can send you some code tomorrow Greetz Fernand Hallo, I need to change (via API) the database bound to a given document. In practice I need to perform via API the same operation that you normally do via the menu Modify-Change

[api-dev] Re: Where to plaid for PDF as graphic format

2011-04-15 Thread Fernand Vanrie
us to show a EPS without ratserized preview and the tranformation to a PDF go's well also. The problem with a OBJECT is that it have some properties like a graphic but not all ( a object can not been cropped ). Greetz Fernand Hi Fernand, Am 14.04.2011 14:14, schrieb Fernand Vanrie: Where

[api-dev] Where to plaid for PDF as graphic format

2011-04-14 Thread Fernand Vanrie
Where an how can i plaid to have PDF as graphic format, like Jpg, Tif etc So we can place a PDF as a picture in our OO documents Thanks for any consideration Fernand -- - To unsubscribe send email to

[api-dev] Re: PDF/A validation problem

2011-04-11 Thread Fernand Vanrie
Seva, Most probably this validation message is comming due to Pictures in your document who has not the right meta data greetz Fernand Hi all, when I convert a text document in PDF/A-1a using OOo (3.x) and open it with Reader I see the info message File is compatible with PDF/A standard.

[api-dev] Re: Severe PrinterSettings Problems, need confirmation

2011-03-16 Thread Fernand Vanrie
Mathias, Any idea, who is working on or in what version we can do some testing ? thanks Fernand Hi Fernand, On 09.03.2011 14:24, Fernand Vanrie wrote: Hallo Sinds 3.3 (windows) all PrinterSettings except the Printer Name are no longer persistent and not stored anywhere not in the profile

[api-dev] Re: UNO AWT TabPageContainer issue 113362

2011-03-10 Thread Fernand Vanrie
Peter, can confirm: OOO330m20 -Windows model.Createinstance(com.sun.star.awt.tab.UnoControlTabPageContainerModel) gives a null object Greetz Fernand Hi, the Basic code in http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Ftabcontrol doesn't work for me in m101 (General

[api-dev] Re: UNO AWT TabPageContainer issue 113362

2011-03-10 Thread Fernand Vanrie
Stupid me :-) have overlooked DEV300 have not downloaded this version yet sorry sory Peter, can confirm: OOO330m20 -Windows model.Createinstance(com.sun.star.awt.tab.UnoControlTabPageContainerModel) gives a null object Greetz Fernand Hi, the Basic code in

[api-dev] Severe PrinterSettings Problems, need confirmation

2011-03-09 Thread Fernand Vanrie
Hallo Sinds 3.3 (windows) all PrinterSettings except the Printer Name are no longer persistent and not stored anywhere not in the profile, not in the document. Within the settings we have the options who are not Printer specific and we have Settings who are bound to a specific printer.

Re: [api-dev] about macros and database

2011-02-18 Thread Fernand Vanrie
Joe, Andrew Pitonyack has a excelent Book and Base Document with lot of macro's Google also for Roberto Benitez , he wrote a Base book and have also lots of macro's an information on the web (www.lulu.com) Andrew Pitonyack has also a excelent Book and Base Document with lot of macro's Hope

Re: [api-dev] Opening the file in MS Word, linked images wrong size

2011-02-07 Thread Fernand Vanrie
cdfleischmann , in OO or LO the Keep Ratio must been active before you start the export to MS word. When nothing is set i supose the Converting go's back to the original ratio's who are this we find back in MS word. I supose this can been done with the API to ? Hope it Helps Fernand Hello

Re: [api-dev] Error setPropertyValue(Unknown Source) in Calc

2011-02-07 Thread Fernand Vanrie
Dietmar, I found that the API using the Borderline Structure is broken in LO, but so far everyting is still working in OO LO trie to make Borderline more compatible with MSword. Greetz Fernand Current investigations indicate, that it is an issue of this particular Openoffice.org

Re: [api-dev] Grid control on OOo 3.3.0

2011-02-04 Thread Fernand Vanrie
Bernard , Frank, Oliver, Folowed this thread with great interest, because i believe that Dialogs are the way to make a controllable Frontend to our databases. One remark: We can also implement a DatasourceBrowser in a dialog, less coding with more functionality (for the moment). My hope

Re: [api-dev] problem of determining the location in the document

2011-01-26 Thread Fernand Vanrie
Zbigniew , a Viewcursor tell's you if you are in a TextTable, cell , TextFrame, Textsection the Viewcursor.position is the position in the document. Witht this ellements you always know where you are in the document, no ? Say you have a Table2 in a cell of Table1 If you know the start

Re: [api-dev] ConfigurationProvider getByHierarchicalName regression

2011-01-10 Thread Fernand Vanrie
Bernard , could that also been the reason why oCfgManager = oDoc.getUIConfigurationManager() oToolbarSettings = oCfgManager.getSettings( xResourceURL, True) no longer works ? Greetz Fernand Hi, Running a code that works in previous versions (up to 1.1.5 !) I found that it throws an

[api-dev] Re: how to change a Graphic ContourPolyPolygon

2011-01-06 Thread Fernand Vanrie
OK found it myself: a ContourPolyPolygon is a bouble Array, with a Array of plygons and Arrays of Point structures based on the size of the original graphic oGraphicobject.graphic) who are needed to build the controur Polygon. oPoly(Polypoints()) now it's easy to change the Polygon points

[api-dev] how to change a Graphic ContourPolyPolygon

2011-01-05 Thread Fernand Vanrie
Hallo, I Trie to preserve the Graphicobject ContourPolyPolygon after i changed the Graphic behind this object. The original Contour is still there but with the size , position off the old Graphic. How can i using BASIC, change this ContourPolyPolygon also named

Re: [api-dev] How to insert the text/bookmark to position where I found another text

2010-12-27 Thread Fernand Vanrie
gintare, Alot off questions, i think you must trie to understand the use off a viewcursor and textcusors to place content in a document. Every where on the net you can find code to work with viewcursor etc.. Hope it helps Fernand * Q – uno.RuntimeException * 1) Phylosophuc question: Is

Re: [api-dev] Are there changes to the resourceURL 's ?

2010-12-22 Thread Fernand Vanrie
to use ascii characters for type and name. here $type = toolbar and $name = standardbar smiles like a bug (i run OOO330m17 on Windows) Fernand Hello Fernand, On Tuesday 21 December 2010, 16:42, Fernand Vanrie wrote: Ariel , Stupit me :-) not a typo, just the wrong copy of one of my

Re: [api-dev] SOLVEDAre there changes to the resourceURL 's ?

2010-12-22 Thread Fernand Vanrie
must meet the following syntax: private:resource/$type/$name. It is only allowed to use ascii characters for type and name. here $type = toolbar and $name = standardbar smiles like a bug (i run OOO330m17 on Windows) Fernand Hello Fernand, On Tuesday 21 December 2010, 16:42, Fernand Vanrie

[api-dev] Are there changes to the resourceURL 's ?

2010-12-21 Thread Fernand Vanrie
I trie to remove some buttons on the standard Toolbar I found some BASIC code made by Andrew Pitonyack, but i run in a error, saying that private:resource/toolbar/standardbar is no valid element for settings in the UIConfigurationManager Please try this simple code from in a writerdoc

Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers through the API

2010-12-20 Thread Fernand Vanrie
Herter, don't sea your exact problem but please find the correct way to print in Basic oDocument.setModified(false) Dim mPrinter(1) As New com.sun.star.beans.PropertyValue mPrinter(0).Name=wait mPrinter(0).value=true mPrinter(1).Name = IsBusy dim bIsBusy as boolean bIsBusy = True

Re: [api-dev] Open a file with standard application from dialog

2010-12-04 Thread Fernand Vanrie
, schrieb Fernand Vanrie: please find the code here: '-FILEPICKER START-- ... '--FILEPICKER END-- Hi Fernand, I got it working. There are some questions left. After I

Re: [api-dev] Open a file with standard application from dialog

2010-12-02 Thread Fernand Vanrie
Volker, I uses for years a handmade picker dialog who shows in the left preview the content off all grahic files , PDF, txt and al Opendocument types. I can send you the code in Basic, just says where to drop Fernand I have a file picker as a dialog control. The file name is to be used as

Re: [api-dev] Open a file with standard application from dialog

2010-12-02 Thread Fernand Vanrie
Volker please find the code here: '-FILEPICKER START-- sub runPicker UseSystemFileDialogs(false) 'sPath = FileNameoutofPath(ThisComponent.Url , /) If (Not GlobalScope.BasicLibraries.isLibraryLoaded(Tools)) Then

[api-dev] Copy textstring to Clipboard SOLVED

2010-12-02 Thread Fernand Vanrie
Somewhere on the web (http://hermione.s41.xrea.com/pukiwiki/) i found finaly the correct Basic code to copy a text to the clipboard without opening ghidden docs etc... I hope its usefull for others as well Fernand |Global sTxtCString AsString Sub clipboard_1 sText =123456

Re: [api-dev] Copy textstring to Clipboard SOLVED

2010-12-02 Thread Fernand Vanrie
, Steffen Am 02.12.2010 12:15, schrieb Fernand Vanrie: Somewhere on the web (http://hermione.s41.xrea.com/pukiwiki/) i found finaly the correct Basic code to copy a text to the clipboard without opening ghidden docs etc... I hope its usefull for others as well Fernand |Global sTxtCString

Re: [api-dev] Examining a directory with OpenOffice.org Basic

2010-12-01 Thread Fernand Vanrie
Johnny , have a look in the Gimicks library of the OO-basic-macro's, maybe a bit complicated but you will find what you are looking for. Hope it helps Fernand If I know the name of a directory, let's say ~/MyImages, how can I easily read the names of all the files in that directory? Let's

Re: [api-dev] Re: Examining a directory with OpenOffice.org Basic

2010-12-01 Thread Fernand Vanrie
Johnny , ConvertToURL all path's ? Den 2010-12-01 14:53:01 skrev Clayton ccorn...@openoffice.org: On 12/01/2010 02:38 PM, Johnny Rosenberg wrote: 2010/12/1 Johnny Rosenberg: If I know the name of a directory, let's say ~/MyImages, how can I easily read the names of all the files in that

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
to use the latest 3.2 or 3.3 ? For the record, the ImageControls are no longer leaking sinds 3.2 :-) Fernand Chris On 11/02/2010 11:12 AM, Fernand Vanrie wrote: Chris , I have no experience with server applications but in the past, i found some leaks when using ImageControls, its

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
Chris , gives 3.3 a trie ? FYI, we are using 3.2.1 Chris On 11/02/2010 12:02 PM, Fernand Vanrie wrote: Chris , Thanks for the comment/insight... I'll try to investigate, but not hopeful. It happens once a document is closed, seemingly (could be on open, too)... and each subsequent

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
and then trie to uses Cor's idea, open and closing 2 OO-services On 2/11/2010 17:39, Fernand Vanrie wrote: Chris , gives 3.3 a trie ? FYI, we are using 3.2.1 Chris On 11/02/2010 12:02 PM, Fernand Vanrie wrote: Chris , Thanks for the comment/insight... I'll try to investigate

[api-dev] Eventlistener not working on Code-Created-Dialogs

2010-10-27 Thread Fernand Vanrie
Hallo all, I tried to implement a com.sun.star.lang.XEventListener on a code-created Dialog, the Listener is not working. I used the same Listener on loading a manuel created Dialog from a library, here the listener works a expected. Please test my code if we have a iussue or a fault in

Re: [api-dev] Missing Macro Toolbar

2010-10-11 Thread Fernand Vanrie
11:44, schrieb Fernand Vanrie: When opening the Basic IDE the Macro Toolbar is no longer present and can no langer been choosen from the viewtoolbar menu ? Checked on other forum's , same problem is signaled but no answers ? Where can i alter some settings to have again a Macro Toolbar in de

[api-dev] Missing Macro Toolbar

2010-10-07 Thread Fernand Vanrie
When opening the Basic IDE the Macro Toolbar is no longer present and can no langer been choosen from the viewtoolbar menu ? Checked on other forum's , same problem is signaled but no answers ? Where can i alter some settings to have again a Macro Toolbar in de basic IDE ? Thanks for any

Re: [api-dev] Restricting Open and Save File to One Directory...

2010-09-28 Thread Fernand Vanrie
Hal , You can always trye to use the custumation events by opening or saving a document where you can put a macro who checks where or from where a document is openend or saved. Maybe you can save' this custumation under the default template who is used to open an new document ? Greetz

Re: [api-dev] change toolbar name

2010-09-24 Thread Fernand Vanrie
Martin , You must have a look at the exellent BasicAddonBuilder extention made by Paolo Mantovani. In the code you can compare with your work Hope it helps Fernand hi and don't forget to change oor:name=WriterWindowState to oor:name=CalcWindowState Thanks i haven't seen that But i'm

Re: [api-dev] How can I check, if a macro (basic) is still running?

2010-08-20 Thread Fernand Vanrie
Thomas, Do not look for a frame your dialog is opened in a window oWin = GetWindowOpen(Dialog1) this gives you yes or no a a window object containing Dialog1 hope it helps Fernand Hey, I do have some macros, which will start on events (for example document close) or with user-action

Re: [api-dev] How can I check, if a macro (basic) is still running?

2010-08-20 Thread Fernand Vanrie
(oWin, com.sun.star.awt.XDialog) then if left(oWin.Title, len(sTitle)) = sTitle then ' GetWindowOpen = oWin exit function endif endif next k end function Fernand Vanrie schrieb: Thomas, Do not look for a frame your dialog is opened in a window oWin = GetWindowOpen

Re: [api-dev] Re: ERRCODE_IO_CANTWRITE writing a PDF file

2010-07-30 Thread Fernand Vanrie
Joaquin , have you also tryed StoreToStream ? Greetz Fernand Hi Bernard, in Python when you do: def foo(**args): for k, v in args.items(): print %s: %s % (k, v) foo(arg1='val1', arg2='val2') arg1: val1 arg2: val2 The **args part means collect all the

Re: [api-dev] Re: ERRCODE_IO_CANTWRITE writing a PDF file

2010-07-29 Thread Fernand Vanrie
Joaquin , Have you tryed storeAsURL ? greetz Fernand I forgot to include a link to the code I'm using: http://pastebin.com/Xusn0XR2 On Tue, Jul 27, 2010 at 9:11 PM, Joaquin Cuenca Abela e98cu...@gmail.com wrote: Hi, I'm trying to convert some files from .odt to .pdf using a modified

Re: [api-dev] How to set Writer Multiple page view with the API

2010-07-14 Thread Fernand Vanrie
depending on the actual ViewLayout ? I comback with the hard figures. Thanks for the routines Fernand Message de Fernand Vanrie date 2010-07-13 12:15 : Hello, I tried to change the multiple pageview (2 page side by side) and the according zoom factor with the apI. I tried

[api-dev] How to set Writer Multiple page view with the API

2010-07-13 Thread Fernand Vanrie
Hello, I tried to change the multiple pageview (2 page side by side) and the according zoom factor with the apI. I tried Thiscomponent.currentController.ViewSettings, I Found a property to change the zoom factor , but nothing to show 2 page side by side on the screen Thanks for any hint

Re: [api-dev] Maybe a stupid question w.r.t. XPrintable

2010-07-13 Thread Fernand Vanrie
Rony , i use for years a routine for printing maybe it can help ? Fernand If (Not GlobalScope.BasicLibraries.isLibraryLoaded(Tools)) Then GlobalScope.BasicLibraries.LoadLibrary(Tools) End If oDocument.setModified(false) 'Printen naar Default printer Dim PrinterProps(1) As New

Re: [api-dev] Some remarks about cursors

2010-07-07 Thread Fernand Vanrie
Patrick, you need here a Tablecursor or use viewcursor.cell.string ' Get The view cursor oViewCursor = thisComponent.getCurrentController().getViewCursor() ' Get Table and the Cell where the View cursor is oTable = oViewCursor.TextTable oCurrentCell = oViewCursor.Cell ' create a

Re: [api-dev] Regarding max value of UnoControlNumericField

2010-06-15 Thread Fernand Vanrie
Madhur , trie to set Max and Min in the control Fernand Hi, I am using OOO 3.2. I do not know the max value of the numeric field inputs I get from user. So, in other words I wan to leave it to the highest value supported by the precision of the field (double I believe). While creating the

Re: [api-dev] Regarding max value of UnoControlNumericField

2010-06-15 Thread Fernand Vanrie
Madhur , Forget mi stupid remark your are working with the control, do wath Bernard saied: use the model :-) ;-) trie to set Max and Min in the control Fernand Hi, I am using OOO 3.2. I do not know the max value of the numeric field inputs I get from user. So, in other words I wan to

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Fernand Vanrie
Johannes , I was troubled with same problems, we finaly decided NOT to uses the OO buttons for Editing only for Viewing, and keeping the Gui-users as far as posible from or Tables We avoid to open OO-DBase-DOC (infact the Gui-user do not know of the exitens of this DbaseDoc) we only open

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Fernand Vanrie
Johannes Öberg wrote: Thanks! What is the call I make to perform the same action as when pushing the Save Record button? Starts making a save macro (record the save action with the macro recorder or write your own basic code) and place a button who calls this macro /J 2010/5/20 Fernand

Re: [api-dev] Limiting the selection base of a combobox based on another

2010-05-18 Thread Fernand Vanrie
Johannes , I think you need to use a event who fire some macro's to change the SQL statement behind the comboboxes depending on the content of the others hope it helps Fernand I'm trying to make a selection form for selecting a single customer from a database that contains quite a lot of

[api-dev] Saving time SRB

2010-05-12 Thread Fernand Vanrie
I filed a issue 111542 http://www.openoffice.org/issues/show_bug.cgi?id=111542about the fact that saving a SRB report takes as long as running the same report with a possible memory leakage . In the mean time i found also a workaround: installing a tempory filter who makes the data-gathering

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Fernand Vanrie
Johannes, I am not sure 0 = white -1 = tranparent Fernand How can I set the BackgroundColor of a label to transparent from a macro? When I Xray BackgroundColor after setting it to Default from the Form designer, it says it is of type Empty. Should i remove the property? How do I do that?

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Fernand Vanrie
Johannes Öberg wrote: Ah, the beauty of Basic! :-) Thanks! /J 2010/4/29 Bernard Marcelly marce...@club-internet.fr Hi Johannes, Message de Johannes Öberg date 2010-04-29 15:11 : How can I set the BackgroundColor of a label to transparent from a macro? When I Xray BackgroundColor

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Fernand Vanrie
Fernand Vanrie wrote: Johannes Öberg wrote: Ah, the beauty of Basic! :-) Thanks! /J 2010/4/29 Bernard Marcelly marce...@club-internet.fr Hi Johannes, Message de Johannes Öberg date 2010-04-29 15:11 : How can I set the BackgroundColor of a label to transparent from a macro? When I

Re: [api-dev] Form in Base, trigger macro on changing record?

2010-04-28 Thread Fernand Vanrie
Johannes , On very FormControl or on the Form itself, you can put events who call a macro. Thre are a lot of available events who can are covering all your needs as Prior to reset, After reset, Before updating, After Updating .. Hope it helps Fernand Hi! (Sorry if this doesn't fit

Re: [api-dev] Updating extensions

2010-04-26 Thread Fernand Vanrie
Patrick , Why not using com.sun.star.configuration.ConfigurationProvider to store your global variables ? I learned from Danny B. and uses it mostyl to store some Pathsettings who must een remembered by opening and closing some Dialogs. Your new exention can check if the data writen by the

Re: [api-dev] Sending email to multiple recipients

2010-04-22 Thread Fernand Vanrie
Oliver, Have you any idea if in the future we could have acces to the body using the published API stuff. Is it true that STAROFFICE can do the job ? Fernand On 22.04.2010 15:03, Peter Eberlein wrote: The API has not only the XSimpleMailMessage interface, but a complete module

Re: [api-dev] Sending email to multiple recipients

2010-04-21 Thread Fernand Vanrie
with the OO-API where no further responses are needed from the receiver. Fernand Hi, Fernand Vanrie wrote: Paolo , Andrew, all Can i have hope to set also the body of a email message ? This is not possible by intent, as (at least to my knowledge) the mailto:; protocol we are using

Re: [api-dev] Sending email to multiple recipients

2010-04-21 Thread Fernand Vanrie
ignore the second part of the script. Also if you want to On Wed, Apr 21, 2010 at 1:58 AM, Mathias Bauer nospamfor...@gmx.de wrote: Hi, Fernand Vanrie wrote: Paolo , Andrew, all Can i have hope to set also the body of a email message ? This is not possible by intent

Re: [api-dev] Sending email to multiple recipients

2010-04-21 Thread Fernand Vanrie
Laurent , I know but a attachment for a simple message is - a bit rediculous and time consuming when send to our own workflow organisation - and always -spam- suspicious for outsiders fernand Hi just a thought if OOo Api can attach a file, create a plain-text file and write your body in

Re: [api-dev] Sending email to multiple recipients

2010-04-20 Thread Fernand Vanrie
Paolo , Andrew, all Can i have hope to set also the body of a email message ? Fernand Andrew Douglas Pitonyak ha scritto: When I looked at the service definitions, I thought that I should be able to send an email message to multiple people at one time. The setCCRecipient, for example,

Re: [api-dev] soffice.bin crashed while executing storeToUrl.

2010-03-31 Thread Fernand Vanrie
Jeremy , We have sam problems with Writerdocs, after placing some pictures StoreToURL gives somtimes a IO exception. I supose due to the fact that the embeded picture houshold is not totaly in order. There for we check if the URL is existent if not we use StoreToURL else we do Doc.store who

Re: [api-dev] Problems with MySQL Connection Sun native Driver

2010-03-30 Thread Fernand Vanrie
Thomas , To avoid problems like you desribed we nowadays uses the com.sun.star.sdb.DatabaseContext as a binding point to our MySQL server. So we place a OO-DB-document where all OO- users can acces the document with the lowest posible rights ( to avoid unwanted acces to the MySQL Tables) The

Re: [api-dev] Problems with MySQL Connection Sun native Driver

2010-03-30 Thread Fernand Vanrie
peaces of data (what most OO-aplications do...) all goes at a low cost and very speedy. When writing data to the MySQL server we always uses Dialogs and Statements instead off using formsso we have a better control over the data-integrity How are you doing this job? best regards Thomas Fernand

Re: [api-dev] Paths options page customization

2010-03-29 Thread Fernand Vanrie
Paolo, Ading a submenu to Tools and made your proper Dialog and doing all the stuff with the API ? Hi all, I'm trying to add a new named path into the options dialog (Openoffice.org - paths) Of course I'm able to add a new nodes in the org.openoffice.Office.Paths registry component but

Re: [api-dev] Inserting GraphicObjects into XTextFrame

2010-03-18 Thread Fernand Vanrie
Steffen , thats pretty simple: I use some basic code to find out if the Cursor in a Table, Frame or Document oViewCursor = oDocument.getCurrentController().getViewCursor() If Not isEmpty(oViewCursor.TextTable) then ' Cursor is in een Tabel sFrameofTabel = TABEL ' rather complex

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
rf, I think it depends on the complexity off the content, I use a technic, where we store some simple formated text as html in a datbase and then import this thml coded text in a exiting OO writerdoc. The OO html import filterrebuild the text with his formating. If wanted then is can post

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
( , oProps()) opipe.flush opipe.closeinput ostorage.dispose ostream = nothing end sub Hi, Am 10.03.2010 11:16, schrieb Fernand Vanrie: rf, I think it depends on the complexity off the content, I use a technic, where we store some simple formated text as html in a datbase and then import

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
wat = Doc then oInsertCursor = oVC.text.createTextCursorByRange(oVC,false) endif oInsertCursor.InsertDocumentFromURL( , oProps()) opipe.flush opipe.closeinputostorage.dispose ostream = nothing end sub Hi, Am 10.03.2010 11:16, schrieb Fernand Vanrie: rf, I think it depends

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
ostorage.dispose ostream = nothing end sub Hi, Am 10.03.2010 11:16, schrieb Fernand Vanrie: rf, I think it depends on the complexity off the content, I use a technic, where we store some simple formated text as html in a datbase and then import this thml coded text in a exiting OO writerdoc

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Fernand Vanrie
Rony , For doing things when opening Formdocs i use 2 BASIC subs, maybe they can help you ? Sub setDocPosSize(Doc As Object , X As long, Y as long , Width as long, Height as long ) Dim Window As Object ' CONTAINER WINDOW If IsNull(Doc) Or IsEmpty(Doc) Then Exit Sub

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Fernand Vanrie
Rony , maybe ContainerWindow.Toolkit can do the job Fernand, thank you! Unfortunately, this does not help solve the problem. On 3/3/2010 9:19 AM, Fernand Vanrie wrote: For doing things when opening Formdocs i use 2 BASIC subs, maybe they can help you ? Sub setDocPosSize(Doc

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-22 Thread Fernand Vanrie
Hallo Frank , oReport.OpenDesign craches OO (3.2 with windows XP) Do i fill a issue or is it related with the Hidden opening issue ? further i found that aArguments(i).Value = _ com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE must be aArguments(i).Value =

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-22 Thread Fernand Vanrie
Frank , I doesn't crash indeed ! as long the DBdoc is open on the desktop :-) I Fill a issue Greetz Hi Fernand, oReport.OpenDesign craches OO (3.2 with windows XP) Do i fill a issue or is it related with the Hidden opening issue ? Hmm, doesn't crash here with 3.2 on WinXP, so

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-19 Thread Fernand Vanrie
Frank , I was a bit to hasty yesterday, there is still a problem: oreport = oreports.getbyname(Jobbons1) oReport has no component ! then i do oReport.load wath result in trow Exception but with using on local error resume Next the system ask if its ok with the macro's in the DB doc and i endup

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-19 Thread Fernand Vanrie
Hallo Frank, Thanks again for your extendet explenation, as a says before there is to match knowledge who's only in your brain and not somewhere else to find :-) My goal is indeed to run (open) forms and reports with additional change in the source and the filters and have no toolbars etc...

Re: [api-dev] How to insert the Note/Comment to openoffice document using jave api

2010-02-19 Thread Fernand Vanrie
Just load a extention name Visible Bookmarks it will give you a Basic Library with the same name who has all the code to place Notes in a doc Hope it helps Fernand Hi all, I need to insert Note/Comment to an Openoffice document(swriter) using java api. I could find the api from class

[api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-18 Thread Fernand Vanrie
Hi Frank, Do this means that we now can load a Form starting from the connection and not obligatory from a open DBDocument ? so yes, ten then please a hint to do it with the API and Basic Greetz Fernand css.sdb.application.XDatabaseDocumentUI, the interface providing programmatic access to

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-18 Thread Fernand Vanrie
Frank Schoenheit, Sun Microsystems Germany wrote If you have a connection, and *know* that it comes from a DataSource, then getParent of this connection will give you the data source. A data source, then, can be asked for its associated database document

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-18 Thread Fernand Vanrie
Frank, Sorry i had the solution right before my nose :-) its not load , but loadcomponentfromURL Sub Main dim Arguments(2) as New com.sun.star.beans.PropertyValue context = createUnoService(com.sun.star.sdb.DatabaseContext) oDataBase = context.getByName(mysql_native) oDBDoc =

Re: [api-dev] TextTableCell Alignment [Visual Basic]

2010-02-17 Thread Fernand Vanrie
Tiago Lourenco, the secret is in the vieuwcursor ! trye this code to find out the aligments of tablecells oText = oDocument.text If Not isEmpty(oViewCursor.TextTable) then ' Cursor is in een Tabel if CurRow.IsAutoHeight = True then print Cell is autohight endif if

[api-dev] New Document Property : PrintIntention

2010-02-17 Thread Fernand Vanrie
Hallo all, All users who wish to create documents who has to been printed by a professional Printer (high resoltuion) struggles with the same problem: the size/resolution off the graphics inside a OOdocument. In general OO uses a kind of strange way to define the size and/off resolution

Re: [api-dev] convert text paragraph into png graphic

2010-02-01 Thread Fernand Vanrie
Franz , Very easly: copy your text into a drawpage, then export the drawpage( and here shapes) as png hope it helps Fernand Hi all, I am working on an application which allows the user to generate syntax-diagrams from different BNF-versions in/with OpenOffice. the diagrams are made

Re: [api-dev] New ooo code snippet: export all graphics in 300dpi

2010-02-01 Thread Fernand Vanrie
Joseph, Fine Job, but you can avoid the copy with Dispatcher using the Picture properties found in the writer doc, to avoid flickering you also can open the drwadoc in hiden mode please find my code i use to to this jobs feel free to use the parts you are interseted; SUB

Re: [api - dev] How to change Macro Security Level in program?

2010-01-29 Thread Fernand Vanrie
Marc , You sayed: dangerous security hole ? Every user can do exactly the same with the GUI no ? greetz Fernand Am Donnerstag, den 28.01.2010, 10:29 +0100 schrieb Fernand Vanrie: Lee , Security is part of the Document settings so i use in basic by openiong the document: Dim

Re: [api - dev] How to change Macro Security Level in program?

2010-01-28 Thread Fernand Vanrie
Lee , Security is part of the Document settings so i use in basic by openiong the document: Dim mFileProperties(0) As New com.sun.star.beans.PropertyValue mFileProperties(0).Name=MacroExecutionMode mFileProperties(0).Value=4 ' see documentations for more value's oDocument =

Re: [api-dev] Copy/Paste a TextTable row using cpp api works only first time

2010-01-28 Thread Fernand Vanrie
Philippe , have a look at this http://www.oooforum.org/forum/viewtopic.phtml?t=52661 forum discusion hope it helps Fernand Hi all, So the bell didn't ring :-) I'll try to rephrase my question. I copy/paste a row in a TextTable using XDispatchHelper. It works multiple times in several

Re: [api-dev] FTP using IP address instead of ServerName

2010-01-14 Thread Fernand Vanrie
a connection, but then repeatedly asks for a password. Seems like a bug there. What Office version did you use on which platform? I tried 3.1.1 on Solaris x86. Perhaps the reason are the proxy settings on your system. Does it work if you use no proxy at all? Regards, Steffen Fernand Vanrie wrote

  1   2   3   4   >