MSOffice component : AddTextBox

  • Thread starter Thread starter Merighi
  • Start date Start date
M

Merighi

Im' trying to add a textbox to a word document with this code:

appWord.ActiveDocument.Shapes.AddTextbox(myOrientation,10,567,50,156,ref
falseObject).Select(ref falseObject);
appWord.Selection.ShapeRange.TextFrame.TextRange.Select();

.....

but the debugging tool reports a "type mismatch" error..

anyone could help me?

Thanks

Francesca Merighi
 
Hi Franceska

Can you please tell me what are you using as Orientation and falseObject
variable , I got the right result with no compiler errors.
 
Thanks you for interesting in my problem. I 've solved it: i used
falseobject(=false) instead of missingValue(=Type.Missing).

Best Regards

Francesca
 
Back
Top