Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jun 26, 2014 3:44 pm

Hi,

Im using vb.net. In word interop we had a setting to Show Field Codes. What is the equivalent in spire.docs?

the code i currently have and need to convert is the following:

WordObject.WordActiveDocument.Windows.Item(1).View.ShowFieldCodes = True

if there isnt an option to do this what would the way around getting this option in word set to true?

This link gives more info about show field codes in case it is needed:
http://office.microsoft.com/en-gb/word- ... 38798.aspx

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Fri Jun 27, 2014 6:34 am

Hello,

Thanks for your inquiry.
Sorry that our components don't support to show directly field code in document.
But we can get the field code by the line string code =field.Code;.

Best wishes,
Amy
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron