H
Henry Stock
I was just looking that the Word Document Model and at code for creating a
Word Document. The C# code appears to have several more parameters for
creating a Word Document than does Visual Basic. I am curious why...
As you can see from the code below they list 3 ref variables after the
template. What can you do with those variables?
Visual Basic
ThisApplication.Documents.Add(Template:="C:\Test\MyTemplate.Dot")
// C#
object missingValue = Type.Missing;
object template = "c:\\temp\\MyTemplate.dot";
ThisApplication.Documents.Add(ref template, ref missingValue, ref
missingValue, ref missingValue);
Word Document. The C# code appears to have several more parameters for
creating a Word Document than does Visual Basic. I am curious why...
As you can see from the code below they list 3 ref variables after the
template. What can you do with those variables?
Visual Basic
ThisApplication.Documents.Add(Template:="C:\Test\MyTemplate.Dot")
// C#
object missingValue = Type.Missing;
object template = "c:\\temp\\MyTemplate.dot";
ThisApplication.Documents.Add(ref template, ref missingValue, ref
missingValue, ref missingValue);