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

Free Support Forum - aspose.com

Load error when using document pre-processed with SoftArtisans WordWriter

For reasons not to be elaborated here, we currently do the following:

* Load a .doc template with Aspose.Words

* Perform some pre-processing.

* Load the bytes (via a MemoryStream) into SoftArtisans WordWriter

* 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.

Hi Morten,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side with document Full_TemplateAfterWordWriter.doc. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13439. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Any luck with a fix?

Since last time, we’ve upgraded to the latest 16.3.0 version.

Hi Morten,

Thanks for your inquiry. This issue (WORDSNET-13439) has now been resolved and its fix will be available in next version of Aspose.Words v16.4.0. We will inform you via this forum thread once new version of Aspose.Words is published. Hopefully, Aspose.Words v16.4.0 will be available in next week.

Thanks for your patience.

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.