Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

How to read the textinput control value using C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zoom - 23 Mar 2007 01:02 GMT
I tried by using the below statement, but it doesn't work.
object ind = "Name_Text";
Response.Write(WordApp.Selection.FormFields.get_Item(ref
ind).TextInput.tostring());
Jay Freedman - 23 Mar 2007 14:35 GMT
> I tried by using the below statement, but it doesn't work.
> object ind = "Name_Text";
> Response.Write(WordApp.Selection.FormFields.get_Item(ref
> ind).TextInput.tostring());

Instead of .TextInput, use .Result. I'm not sure you need the ToString(),
since the .Result should already be a string.

Signature

Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.