Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #2689

Re: Open Office automation causes crash after bBrowser invokes

From Carlos Rocha <carlos.rocha@doossier.com.removethis>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Open Office automation causes crash after bBrowser invokes
Date 2011-12-15 01:35 +0000
Organization Aioe.org NNTP Server
Message-ID <jcbiv3$e9r$1@speranza.aioe.org> (permalink)
References <1icie71qrvl4tnvtnedmh2reahdgc9cpuh@4ax.com>

Show all headers | View raw


Hi Dick,

Seems correct at first sight, thought I don't work with OO for a long time.

Check this link if you didn't already:

http://www.kalitech.fr/clients/doc/VB_APIOOo_en.html


On 14-12-2011 23:39, D.J.W. van Kooten wrote:
> We are experimenting with OpenOffice. It is possible to fill cells of
> the spreadsheet, but after this the some next steps in the program
> like building a bBrowser yeild a fatal error referring to
> Normaliz.dll.
>
> With the code below we've found out that the loadcomponentFromUrl is
> where it goes wrong.
>
> Does anyone know how to prevent this?
>
> 	objServiceManager:=
> OLEAutoObject{"com.sun.star.ServiceManager"}
> 	if objServiceManager:Finit
> 		
> 		aArgStore:={}
> 		AAdd(aArgStore, OOProperty(objServiceManager,
> "Overwrite",.t.))
> 		aArg := {}
> 		AAdd(aArg, OOProperty(objServiceManager,
> "DocumentTitle","ooTest"))
> 		AAdd(aArg, OOProperty(objServiceManager, "AsTemplate"
> , .f.))
> 		AAdd(aArg, OOProperty(objServiceManager, "Preview" ,
> .f.))
> 		AAdd(aArg, OOProperty(objServiceManager, "Hidden" ,
> .f.))
> 		AAdd(aArg, OOProperty(objServiceManager, "ReadOnly" ,
> .f.))
>
> 		oStardesktop:=
> objServiceManager:CreateInstance("com.sun.star.frame.Desktop")
> 		
> 		oDoc :=
> oStardesktop:loadComponentFromURL("private:factory/scalc", "_blank",
> 0, aArg)
>
>
> Dick

-- 
Carlos Rocha


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 111214-1, 14-12-2011
Tested on: 15-12-2011 01:35:48
avast! - copyright (c) 1988-2011 AVAST Software.
http://www.avast.com


Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Open Office automation causes crash after bBrowser invokes D.J.W. van Kooten <public@ic2remove.this.com> - 2011-12-15 00:39 +0100
  Re: Open Office automation causes crash after bBrowser invokes Carlos Rocha <carlos.rocha@doossier.com.removethis> - 2011-12-15 01:35 +0000
  Re: Open Office automation causes crash after bBrowser invokes John Martens <adsl672100@tiscali.nl> - 2011-12-15 07:16 +0100
    Re: Open Office automation causes crash after bBrowser invokes D.J.W. van Kooten <public@ic2remove.this.com> - 2011-12-15 20:00 +0100
      Re: Open Office automation causes crash after bBrowser invokes Carlos Rocha <carlos.rocha@doossier.com.removethis> - 2011-12-17 00:07 +0000
        Re: Open Office automation causes crash after bBrowser invokes D.J.W. van Kooten <public@ic2remove.this.com> - 2011-12-18 20:56 +0100
          Re: Open Office automation causes crash after bBrowser invokes Carlos Rocha <carlos.rocha@doossier.com.removethis> - 2011-12-18 20:31 +0000
          Re: Open Office automation causes crash after bBrowser invokes "Willie Moore" <williem@wmconsulting.com> - 2011-12-18 18:14 -0600
            Re: Open Office automation causes crash after bBrowser invokes D.J.W. van Kooten <public@ic2remove.this.com> - 2011-12-19 09:57 +0100
  Re: Open Office automation causes crash after bBrowser invokes E®!k \\/!$$E® <nospam@nospam.url> - 2011-12-19 12:17 +0100
  Re: Open Office automation causes crash after bBrowser invokes Oskar Atkinson <Oskar@atk-it.com> - 2012-01-10 16:03 -0700

csiph-web