Hi
I am new to this api and see that in order to load an Excel document you
could use the code:
PropertyValue[] lArgs = new PropertyValue[1];
lArgs[0] = new PropertyValue();
lArgs[0].Name = "DocumentService";
lArgs[0].Value = "com.sun.star.sheet.SpreadsheetDocument";
xDoc = xDesktop.loadComponentFromURL(url, "_default", 0, lArgs);
But I'm at a loss as to how you load a MS Word document, as I need to do a
batch print job of Word docs. I already have the word documents in memory so
don't need to load then from a URL also..but if this is the only mechanism
available then I can write them to a temp file and then reload them..
Any help greatly appreciated.
Ollie.
--
--------------------------------------------------------------------------------------------------------------------------------------
FEED THE WORLD WITH A CLICK OF THE MOUSE.
http://www.thehungersite.com - click once day to donate a cup of food to a
starving person.
--------------------------------------------------------------------------------------------------------------------------------------