How to read the textinput control value using C#?

Z

Zoom

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());
 
J

Jay Freedman

Zoom said:
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.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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

Top