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


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

Re: Open Office automation causes crash after bBrowser invokes

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From E®!k \\/!$$E® <nospam@nospam.url>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Open Office automation causes crash after bBrowser invokes
Date Mon, 19 Dec 2011 12:17:39 +0100
Lines 54
Message-ID <9l8kqlFp0tU1@mid.individual.net> (permalink)
References <1icie71qrvl4tnvtnedmh2reahdgc9cpuh@4ax.com>
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
X-Trace individual.net 56LSvVC0ruvIDqPB96/GGQgQaidVn8g1XVB27/UshkexgFdtTU
Cancel-Lock sha1:aeHKqUjfN5MZabJfBf6k1J3h3IY=
In-Reply-To <1icie71qrvl4tnvtnedmh2reahdgc9cpuh@4ax.com>
X-Priority 3
X-MSMail-Priority Normal
Importance Normal
X-Newsreader Microsoft Windows Live Mail 15.4.3538.513
X-MimeOLE Produced By Microsoft MimeOLE V15.4.3538.513
Xref x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:2721

Show key headers only | View raw


Dick,

Just an idea:  why not use the ODF format?
This is a format that can be used with both Open Office and MS Office 2007 
SP1 and higher. So it does not limit you to a specific texteditor, you just 
generate (or modify) a XML file.

Erik




"D.J.W. van Kooten"  schreef in bericht 
news:1icie71qrvl4tnvtnedmh2reahdgc9cpuh@4ax.com...

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 

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