[Solved] Set default template
Posted: Tue Oct 30, 2012 11:35 pm
Hello,
I have my delphi application which communicates with OpenOffice (application serves like a document manager). I did my template with macros which servers an event like a new document, document is closed etc. I use to call LoadComponentFromUrl with AsTemplate parameter from my application to open a new document with my template. It works fine. But I need to set my template as default template for OpenOffice Writer. I know how to do manually (File > Template > Organize), but don't know how to do from my application. I looked for some solution, but i didn't find anything. Could anybody give me any advice? Thanks
I have my delphi application which communicates with OpenOffice (application serves like a document manager). I did my template with macros which servers an event like a new document, document is closed etc. I use to call LoadComponentFromUrl with AsTemplate parameter from my application to open a new document with my template. It works fine. But I need to set my template as default template for OpenOffice Writer. I know how to do manually (File > Template > Organize), but don't know how to do from my application. I looked for some solution, but i didn't find anything. Could anybody give me any advice? Thanks