Re: [api-dev] Java storeAsURL PDF Problem

2006-01-02 Thread Laurent Godard
Hi Mathias, i try to export a writer document (odt) to PDF. Here is the code: try { xStorable.storeAsURL(pdfUrl, propertyValues); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } you have to use

Re: [api-dev] Is there any way to catch when a Base document is being opened.

2006-01-02 Thread Andrew Jensen
hmm...looking at this section again, maybe I am wrong. This time I read the API doc page for GlobalEventBroadcaster also. I will try it using Java and see if I get something to check against. Thanks agaiin Andrew Jensen wrote: Matthias, Thanks for the suggestion. However, I had read that

Re: [api-dev] Java storeAsURL PDF Problem

2006-01-02 Thread Matthias Scholz
Laurent Godard schrieb: Hi Mathias, i try to export a writer document (odt) to PDF. Here is the code: try { xStorable.storeAsURL(pdfUrl, propertyValues); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace();

Re: [api-dev] Upgrading from 1.x.x to 2.x.x -- Without Re-Learning An API?

2006-01-02 Thread Christian Junker
Hi Hal, I have some good news for you... 2005/12/31, Hal Vaughan [EMAIL PROTECTED]: I was looking for a page or summary about what has changed from OOo 1.x.x to 2.x.x and can't find one. There is none, because nothing has really *changed* (backwards compatibility). The API has been extended

Re: [api-dev] Java storeAsURL PDF Problem

2006-01-02 Thread Christian Junker
This makes me think if we should add a note to the storeAsURL method description. http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XStorable.html#storeAsURL Like so: NOTE - saving of document formats that cannot be edited but only exported like PDF should be done with storeToURL only.

Re: [api-dev] Optional Parameters in Starbasic function call

2006-01-02 Thread Andrew Douglas Pitonyak
Andrew Jensen wrote: Question, I attempted to write a function with the following declaration: function findCodeVal( RegDSName as String, _ TableName as String, _ SrchColName as String, _ SrchFor as variant, _

Re: [api-dev] Is there any way to catch when a Base document is being opened.

2006-01-02 Thread Andrew Jensen
Jörg , Well, down and dirty works, maybe.. I am left with one puzzle and a concern, however. I changed my little routine to this. const title_must_be = OpenOffice.org Base sub onOpenDocumentMain dim df as variant df = Stardesktop.Frames If RIGHT((df(df.count-1).title), len(title_must_be))

Re: [api-dev] Optional Parameters in Starbasic function call

2006-01-02 Thread Bernard Marcelly
Bonjour Andrew Douglas Pitonyak Message du 2006-01-02 16:30: Andrew Jensen wrote: I attempted to write a function with the following declaration: function findCodeVal( RegDSName as String, _ TableName as String, _ SrchColName as String, _

Re: [api-dev] Java storeAsURL PDF Problem

2006-01-02 Thread Laurent Godard
Hi christian, Like so: NOTE - saving of document formats that cannot be edited but only exported like PDF should be done with storeToURL only. What do others think? it is explicit and will save a FAQ i would say yes Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org

Re: [api-dev] Optional Parameters in Starbasic function call

2006-01-02 Thread Laurent Godard
Hi Bernard, The bug was reported in IZ 30500. In versions 1.1.x and 2.0.1 it is still not corrected and not even documented, so it should not have status RESOLVED and FIXED. perhraps reopen the bug and mark it as regression in keywords where are optional parameters located in the source

Re: [api-dev] Optional Parameters in Starbasic function call

2006-01-02 Thread Andrew Jensen
Well, I have done a quick test with the information about order of testing,.that does cause the problem. But it still appears that the type of parameter plays a role. It seems that as long as the order, relative to type is maintained it works. I will take time this evening and try to pin this

Re: [api-dev] Is there any way to catch when a Base document is being opened.

2006-01-02 Thread Matthias Benkmann
On 1/2/06, Andrew Jensen [EMAIL PROTECTED] wrote: Matthias, Thanks for the suggestion. However, I had read that section. The way I took this was that it is equivilant to assigning a procedure to a given event using ToolsConfigureEvents and selecting OpenOffice.org. Am I wrong on this?

Re: [api-dev] Is there any way to catch when a Base document is being opened.

2006-01-02 Thread Andrew Jensen
First - thanks again. So forgive me for being a little dense on this. Matthias Benkmann wrote: On 1/2/06, Andrew Jensen [EMAIL PROTECTED] wrote: Matthias, Thanks for the suggestion. However, I had read that section. The way I took this was that it is equivilant to assigning a