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
 

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

Back
Top