If I print an document with aspose, I get an exception after a long time "Infinite loop detected". This behaviour only occurs with hyphenation in tables.
Sometimes (probably many rows with many hyphenations) the print methode runs over 7 minutes, but without an realy print. Nothings was sent to printer.
Ok, I have found some problems with Hyphenations an Aspose Words. This ist very explosive, because so you can not works with Hyphenations and Aspose. That is a really big Problem.
Under PrintTablesWithHyphenations you can find the fist issue:
case 1: Table with content and hyphenations: An exception occurs “Infinite loop detected.”
case 2: Same doc, with more rows content and hyphenations: The program hangs on call print.
Under PrintPreview you can find, that aspose dont work corrently with hyphenations:
case 1: Hyphenations works fine
case 2: Same doc, but content and hyphenations at first on 3th page --> hyphenations dont works on first paragraph
case 3: Same doc, but content and hyphenations at first on 3th page, but only on paragraph --> an exception occurs
Under PrintTablesWithHyphenations you can find the fist issue:
case 1: Table with content and hyphenations: An exception occurs “Infinite loop detected.”
case 2: Same doc, with more rows content and hyphenations: The program hangs on call print.
While using the latest version of Aspose.Words i.e. 14.4.0, I managed to reproduce these issues on my side. I have logged the following issues in our bug tracking system.
WORDSNET-10194: Infinite loop detected during saving to PDF after applying Hyphenation
WORDSNET-10195: Process hangs during rendering/printing when Hyphenation is applied
Stephan:
Under PrintPreview you can find, that aspose dont work corrently with hyphenations:
case 1: Hyphenations works fine
case 2: Same doc, but content and hyphenations at first on 3th page → hyphenations dont works on first paragraph
case 3: Same doc, but content and hyphenations at first on 3th page, but only on paragraph → an exception occurs
I managed to reproduce the issue described in Case 2 on my side. I have logged the following issue in our bug tracking system.
WORDSNET-10196: A paragraph is not Hyphenated during rendering
Your thread has been linked to these issues and you will be notified as soon as they are resolved. Sorry for the inconvenience.
Regarding the problem you described in case 3, could you please give Aspose.Words for .NET 14.4.0 a try and see how it goes on your end? I hope, this helps.
I was very tense after I noticed that 14.5 was released. But I have found the new release works not better. To detect the problems, I removed part for part from document. So I can narrow the causes. It’s realy very difficult and expensive to find all the bug and causes with hyphenation.
Oft it seems, that main problems are page break (hyphenation on 2nd page) and hyphenation in tables. The problems are not solved.