Adding .Oft Template

H

hamit

Hello,

I want to add a template to the OutLook Appointment Window it will popup b
this template Default. I tryed to insert it by AddOLEObject from the file lik
below

object classType = missing;
object fileName = @"C:\Users\test\Documents\test.oft";
object linkToFile = true;
object displayAsIcon = missing;
object iconFileName = missing;
object iconIndex = missing;
object iconLabel = missing;
object range = (inspectors[1].WordEditor a
Microsoft.Office.Interop.Word.DocumentClass).Application.Selection.Range;
((inspectors[1].WordEditor a
Microsoft.Office.Interop.Word.DocumentClass)).InlineShapes.
AddOLEObject(ref classType,
ref fileName,
ref linkToFile,
ref displayAsIcon,
ref iconFileName,
ref iconIndex,
ref iconLabel,
ref range);
((inspectors[1].WordEditor a
Microsoft.Office.Interop.Word.DocumentClass)).Activate();

it is working perfectly but coming just an icon into the document object but
want to add its item which containing a table and pictures.

pls regards
thanks for all helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top