For reasons not to be elaborated here, we currently do the following:
* Load a .doc template with Aspose.Words 15.1.0.0
* Perform some pre-processing.
* Load the bytes (via a MemoryStream) into SoftArtisans WordWriter 9.1.2.161
* Perform some further processing.
All of this works OK.
But now we’d like to perform some final post-processing with Aspose.Words.
Then we get the following error when trying to load the bytes (once more via MemoryStream):
+ e {“An attempt was made to move the position before the beginning of the stream.”} System.Exception {System.IO.IOException}
I suspect that this is the result of SoftArtisans WordWriter doing some fishy things with the internal layout of the document.
I therefore did a simple test by loading a very simple template in SoftArtisans WordWriter, not doing anything in particular, and saving it to a new template.
Then loading this template into Aspose.Words, which was actually successful.
I’ve attached a sample console app that demonstrates both the simple and the full case.
Note: Obviously you’ll need to assign a license file to avoid getting the full template document truncated after load. But as this problem is more fundamental than that, it’s not needed.
Any luck with a fix?
Since last time, we’ve upgraded to the latest 16.3.0 version.
The issues you have found earlier (filed as WORDSNET-13439) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.