We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect Print date field value for word document

Hello Aspose Team,

We are using “Aspose.Words" .Net Core version 22.10.0 in our application and found some issue related to wrong value of PageRef field is loaded in footer of word document while converting it to the Html. Looks like it is stamping todays date while converting to the html and some formats are showing as 00/00/00… Can you please help to fix this issues.

The OS Edition is Windows 10 Enterprise, Version: 22H2, Build: 19045.2364

PrintDateFormatIssues.zip (1.2 MB)

@rajesh.domadia,

Can you please be more specific so I can help you out properly?

For example, which file is your input?
What is your output?
Are you applying some code? if yes, what is it?
I tried to replicate the issue using 2 of your documents and HTML output was the same.
All I used was this:

var saveOptions = new HtmlSaveOptions();
saveOptions.SaveFormat = SaveFormat.Html;
saveOptions.PrettyFormat = true;
saveOptions.ExportImagesAsBase64 = true;
saveOptions.ResourceFolder = "DateFormatLostHtml";

I am using the latest version(23.1).