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.

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.

3.
I'm now trying the following:
Set objShell = Wscript.CreateObject("WScript.Shell")    
strCommand = "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe 
-invisible macro:///Standard.Module1.ConvertWordToPDF(" & f & ")" 

        Set results = objShell.Exec(strCommand)

But I'm hoping someone can help me solving this problem.

Thanx! Jurgen (A new be in openoffice)  

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to