LINQ reporting engine: Insert documents dynamically: Provide ImportFormatOptions

Hello Aspose support team,

we are facing the problem, that when we insert documents (that itself contain list-styles) dynamically into a template file (using the -sourceStyles flag), the different lists from the source documents are mixed up in the template file.

More specifically:

  • The lists and list styles from the first source document are inserted correctly
  • The lists from the second and following source documents wrongly use the numbering of the first source document
  • The above behavior could be reproduced when programmatically inserting the source documents (without the LINQ reporting engine) - as long as ImportFormatOptions.KeepSourceNumbering is false
  • Once ImportFormatOptions.KeepSourceNumbering is set to true when inserting, the problem is resolved and both lists had the correct numbering in the destination document

However, at the moment, there is no possibility to provide any ImportFormatOptions in the template syntax. There is only one for ImportFormatMode (the -sourceStyles flag)

I would suggest to also provide flags for the ImportFormatOptions, e.g.

<<doc [sourceDocument] -sourceStyles -keepSourceNumbering>>

Thank you and best regards,
Stefanie

@stefanie.huber
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26482

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi Alexey,

in order to fully understand your answer, does that mean that WORDSNET-26482 will add such a -keepSourceNumbering flag for the <<doc>> tag and once it is implemented, it will be available in a new release of Aspose.Words? That would be really good news for us.

Best regards,
Stefanie

@stefanie.huber Yes, we will consider adding such option in one of future versions of Aspose.Words We will keep you updated and let you know once it is implemented or we have more information.

Hi Alexey,

thank you so much. I am really looking forward to this new feature.
All the best,
Stefanie

1 Like

Hi Alexey,

do you have already any update on this topic?

Thank you and best regards,
Stephanie

@stefanie.huber Unfortunately, there are no news regarding the issue yet. We will keep you updated and let you know once the feature is implemented.

@stefanie.huber

It is to let you know that we have completed working on the requested feature. Once Aspose.Words 24.5 is released, you will be able to keep source numbering while inserting a document using LINQ Reporting Engine by applying a sourceNumbering switch as follows:

<<doc [document_expression] -sourceNumbering>>

The issues you have found earlier (filed as WORDSNET-26482) have been fixed in this Aspose.Words for .NET 24.5 update also available on NuGet.