Jurgen van Doorn wrote:
> Hi,
>
> I'm trying to open openoffice writer from an asp page.
> I red some forums with different possibilities but didn't find the right
> solution.
>
> This is what i tried:
> 1.
> Response.ContentType = "application/vnd.oasis.opendocument.text"
> An messagebox from openoffice appears white a general error.
Sorry, I don't know what this "Response" is.
> 2.
> Set objServiceManager= CreateObject("com.sun.star.ServiceManager")
> Set objDesktop=
> objServiceManager.createInstance("com.sun.star.frame.Desktop")
> Set objDocument= objDesktop.loadComponentFromURL("File:c:\mydir\myfile",_
> "_blank", 0, args)
> An asp error with Object required end the script on the first line.
The URL is wrong. Try "file:///c:/mydir/myfile".
Ciao,
Mathias
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]