J
jiatiejun
I want insert a Formula in word document,
try follow code:
wordDoc.Tables.Item(10).Cell(i+n, 2).Range.Select();
Object o1 = "=SUM(ABOVE)";
o2 = Type.Missing;
wordApp.Selection.InsertFormula(ref o1,ref o1);
but Word output the code is "{=SUM(ABOVE) \# "=SUM(ABOVE)"}"
so the Formula can't compute ,
why, the code is ok in VB.NET or VB 6
thanks
try follow code:
wordDoc.Tables.Item(10).Cell(i+n, 2).Range.Select();
Object o1 = "=SUM(ABOVE)";
o2 = Type.Missing;
wordApp.Selection.InsertFormula(ref o1,ref o1);
but Word output the code is "{=SUM(ABOVE) \# "=SUM(ABOVE)"}"
so the Formula can't compute ,
why, the code is ok in VB.NET or VB 6
thanks