HtmlSaveOptions.ExportDropDownFormFieldAsText
HtmlSaveOptions ExportDropDownFormFieldAsText property. Controls how dropdown form fields are saved to HTML or MHTML. Default value is false.
HtmlSaveOptions.ExportDropDownFormFieldAsText property
Controls how drop-down form fields are saved to HTML or MHTML. Default value is false
.
public bool ExportDropDownFormFieldAsText { get; set; }
Remarks
When set to true
, exports drop-down form fields as normal text. When false
, exports drop-down form fields as SELECT element in HTML.
When exporting to EPUB, text drop-down form fields are always saved as text due to requirements of this format.
Examples
Shows how to export dropdown list and text input as text to HTML.
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.ExportDropDownFormFieldAsText = true;
htmlSaveOptions.ExportTextInputFormFieldAsText = true;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "HtmlSaveOptions.ExportDropDownFormFieldAsText.html", htmlSaveOptions)
.Execute();
See Also
- class HtmlSaveOptions
- namespace Wordize.Saving
- assembly Wordize