Spire.Doc 5.8.33 adds an event to handle the ASK field

We are pleased to announce the latest hotfix version of Spire.Doc 5.8.33 is available today. In this version, Spire Doc adds an event to handle the ASK Field. We also focus on improving the performance of conversion from word to PDF and the operation of word bookmarks. View more details as below:
New Feature:
- Add an event to handle the ASK field.
class Program
{
static void Main(string[] args)
{
Document doc = new Document();
doc.LoadFromFile("test.doc");
doc.UpdateFields += new UpdateFieldsHandler(doc_UpdateFields);
doc.IsUpdateFields = true;
doc.SaveToFile("output.docx", FileFormat.Docx);
}
private static void doc_UpdateFields(object sender, IFieldsEventArgs args)
{
if (args is AskFieldEventArgs)
{
AskFieldEventArgs askArgs = args as AskFieldEventArgs;
Console.WriteLine(askArgs.PromptText);
string s = Console.ReadLine();
askArgs.ResponseText = s;
}
}
}
Bug Solutions:
- Fixes the issue where the paragraph format lost when replacing bookmark content.
- Improve the function of converting Word document to PDF.
Welcome to experience Spire.Doc 5.8.33 with downloading here:
http://www.e-iceblue.com/Download/download-word-for-net-now.html