473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MSOffice component : AddTextBox

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

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

.....

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

anyone could help me?

Thanks

Francesca Merighi
Nov 17 '05 #1
2 2382
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.
"Merighi" wrote:
Im' trying to add a textbox to a word document with this code:

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

.....

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

anyone could help me?

Thanks

Francesca Merighi

Nov 17 '05 #2

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 ***
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: R Reyes | last post by:
Hi, no one answered so I thought reposting would get this some attention... What is the best way to manipulate MSOffice programs? I understand that regular web pages do not have certain...
5
by: R Reyes | last post by:
Hi, no one answered so I thought reposting would get this some attention... What is the best way to manipulate MSOffice programs? I understand that regular web pages do not have certain...
3
by: Rsmastermind | last post by:
Dear all I am having the setup file of Msoffice-2007 but when I installed it had given an error that was shown in flash so I cant describe the error.Now when I am opening the Msoffice application it...
1
by: =?Utf-8?B?a2F3aXNo?= | last post by:
hi i have some problam in msoffice documents, problam is.... i m open ms word or ms excel file but it asking file conversion n i dont see my save document... my documents save in english language...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.