|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MSOffice component : AddTextBoxIm' 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. 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 > 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 *** 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 *** >
Throwing exceptions
Regex Pattern Matching algorithm in mono/c# tree node from xml volatile - small question How to show/hide an MS Office MDI application ? file inuse Question: Aspect Oriented Programming Insert row in DataGrid, Web App How to control the scroolbar.location of ListView? Do console apps have a load event? |
|||||||||||||||||||||||