Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

Text input fields in Word with vba c #

 

This code example shows how to insert FormTextInput form fields in word.

The insertion takes place in the example at runtime, programmatically.

 

 

A new form field is created via Word.Range.FormFields.Add (..) added

FormField field = act_Image_Range.FormFields.Add(act_Image_Range, WdFieldType.wdFieldFormTextInput);

 

Example code in C #

Insert via Word.Range.FormFields.Add (new ..)

//< add textinput field >

act_Image_Range.InsertAfter("\n\r");

FormField field = act_Image_Range.FormFields.Add(act_Image_Range, WdFieldType.wdFieldFormTextInput);

field.TextInput.EditType(WdTextFormFieldType.wdRegularText);

field.OwnStatus = true;

field.HelpText = "Bildtext";

field.TextInput.Default = "enter Image-Text";

//</ add textinput field >

 

 

subject:

Programming in vba, C #

Word ContentControl

 

Example application

Text input as FormFields type: wdFieldFormTextinput

 

Subject:

C #, Visual Studio Vsto interop com

FormField, form fields, form input, ContentControls

 

Mobile
vba
»
Insert a line break at the end of a line and then insert text or a table
»
Word: insert characters at the end of a line
»
Text input fields in Word with vba c #
»
Create input fields in Word. C# ContentControls
»
Protect Word programmatically
»
Word vba: find current sentence
»
Word vba: Change document property title dynamically with Textbox Control
»
Word Code: Edit photos and controls in vba
»
Word: Find vba Code Example
»
Word vba macro: Changing WordArt with glow effect and shadow

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de