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

Free Support Forum - aspose.com

Problems with margins in a doc


I am facing an issue when I try to create a word document through Aspose for JasperReport.
In particular, all the elements collapse towards the left and the upper margin (i.e. the margins become 0 in those directions as you’ll find in the attached file).
I don’t have any problem when I export the same document in pdf format.

Do you know what can create this disruption?

The version I’m using is: aspose.words.jasperreports-5.5.0.jar.

Thank you in advance.

Hi Fabrizio,

Thanks for your inquiry. Could you please attach following files for testing? I will investigate the issue on my side and provide you more information.

  • Please supply us with the Jrxml files along with xml/csv data source
  • Please supply us with the .jrprint file of your jrxml.
  • Please supply us with the Aspose.Words code from your application.
  • Please share the output document which shows the undesired behavior
  • Please supply us with the expected document showing the desired behavior (You can create this document using Microsoft Word).

As soon as you get these pieces of information to us we’ll start our investigation into your issue.