> PropertyValue[] loadProps = new PropertyValue[2];
> 
> loadProps[0] = new PropertyValue();
> loadProps[0].Name = "AsTemplate";
> loadProps[0].Value = new Boolean(false);
> loadProps[1] = new PropertyValue();
> loadProps[1].Name = "MacroExecutionMode";
> loadProps[1].Value = "ALWAYS_EXECUTE_NO_WARN";
>        
> // load
> return xComponentLoader.loadComponentFromURL(loadUrl, "_blank", 0,
> loadProps);


loadProps[1].Value muss als nummerischer Wert besetzt werden:

/sdk/docs/common/ref/com/sun/star/document/MacroExecMode.html
const short ALWAYS_EXECUTE_NO_WARN = 4;

so:
loadProps[1].Value=com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE_NO_WARN

Übergebe loadProps als Array:
return xComponentLoader.loadComponentFromURL(loadUrl, "_blank", 0, _
loadProps() );

Cheers
Winfried
-- 

re-Solutions.de Software Test Engineering  Mainz Germany Europe
some OOo macros: http://www.winnirohr.de/ooo/makros 


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

Antwort per Email an