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

Free Support Forum - aspose.com

When updating ref field in long document- the "/t" option is ignored

This is kind of a weird issue, and it may be related to the length of the document - every time we shorten the document, the issue goes away. The attached, rather long, document is the shortest one we could get it to occur on - sorry about the size.



The issue is that a Ref field that should be suppressing any text because it has the “/t” option applied is showing text after an update. On page 75, in section 7.6d, there is some highlighted text “Section 4 and 5” which has two Ref fields in it that should suppress the text - they refer to the “4” and the “5” in that text, specifically. After updating the fields using Aspose, the highlighted text reads “Sections Section 4 and Section 5” - the text is not being suppressed, so the word “Section” gets included in both of the ref fields. Can this be fixed?



To demonstrate this problem, you can run the following code on the attached document:



Dim Document = New Aspose.Words.Document(Source File)

For Each Field as Aspose.Words.Fields.Field in Document.Rage.Fields

If Field.Type = Aspose.Words.Fields.FieldType.FieldRef AndAlso Field.GetFieldCode.Contains("\t") Then Field.Update()

Next

Document.Save(DestFile)



Thanks,

Michael Whalen

Hi Michael,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.7.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-12303. Your thread has been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-12303) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as WORDSNET-12303) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)