vb.net - How to read data from fields in MS Word? -


using vb.net , word 2010

dim oword msword.application     dim odoc msword.document odoc = oword.documents.add(textbox1.text) msgbox(oword.activedocument.fields(1)) 

opening document not problem. reading value of field causing errors, argument 'prompt' cannot converted type 'string'. i've tried naming field in quotes, doesn't work either. i've tried variable.field(1) - gets me error

help appreciated!


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -