Hi --

I thought this would be simple -- it isn't. I just want to have a macro create a new document from a template (not the default template).

I recorded a macro, assigned it to CTRL+SHIFT+L. It just opens the templates directory.

So I went digging around the archives of this mailing list and found an old message from 2001 with some code:

sub Letterhead
  dim mProps(0) as new com.sun.star.beans.PropertyValue
  mProps(0).Name = "AsTemplate"
  mProps(0).Value = true
  oDesk = createUNOService("com.sun.star.frame.Desktop")

oDesk.loadComponentFromUrl("D:\OOo_Templates\Letterhead.odt","_blank", 0, mProps()

end sub

I admit I don't know what any of this means -- I further admit that I don't *want* to know what any of this means. I just want to hit my keys and write my letter. :-)

After some niggling, the final error message I get is that the URL seems to be an unsupported one. It occurs to me that I'm using OOo-Dev 2.0 -- I guess there might have been some changes since 2001? :-)

Could some kind soul please tell me what's wrong?

TIA

Tam

P.S. I also tried to take a peek at the old messages via gmane. I don't know if Mozilla is barfing on me, or it's SOP, but few of the old messages on this list are actually there -- just the subject lines.


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

Reply via email to