Home All Groups Group Topic Archive Search About

MSOffice component : AddTextBox

Author
4 Apr 2005 11:19 AM
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

Author
4 Apr 2005 1:17 PM
Burim Ratkoceri
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.


Show quoteHide quote
"Merighi" wrote:

> 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
>
Are all your drivers up to date? click for free checkup

Author
4 Apr 2005 2:55 PM
Francesca Merighi
Thanks you for interesting in my problem. I 've solved it: i used
falseobject(=false) instead of missingValue(=Type.Missing).

Best Regards

Francesca


*** Sent via Developersdex http://www.developersdex.com ***
Author
6 Apr 2005 9:09 AM
Burim Ratkoceri
I thought so...:-)

Show quoteHide quote
"Francesca Merighi" wrote:

>
> Thanks you for interesting in my problem. I 've solved it: i used
> falseobject(=false) instead of missingValue(=Type.Missing).
>
> Best Regards
>
> Francesca
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
>



Post Thread options