Board index » delphi » Problem with master template being modified
Jack
Delphi Developer |
Problem with master template being modified2004-12-16 01:39:31 AM delphi52 I don't understand why my custom mail merge labels template seems to be changed when I run the following code. The code works fine, but when I try to close the Word Document it asks if I want to save the changes to the template. var TemplateName: OleVariant; begin TemplateName := 'MyLabels.Dot'; Word.Connect; Word.Visible := true; Doc.ConnectTo(Word.Documents.Add(TemplateName,EmptyParam,EmptyParam,EmptyParam));end;However, if I substitute the 'Normal.Dot' template it doesn't ask if the'Normal.Dot' should be saved.Any ideas would be appreciated.ThanksJack |