Word documents cannot render text elements layer on an Image


#1

Hi,

We are a Canadian software solution company evaluating aspose total and considering purchase and licensing.

However I have 2 questions.

In our cover page we have a one full page image and there are texts layer such as client name, company, addresses on top of the image. While generating word document using aspose, It cannot render the texts. Is there any work around

This happens also in our donut chart. We have text elements inside the ring and those are also not visible. I found this text under the image after delete that.

Look forward to hearing you soon.

Thanking you.

Asif


#2

@asif.iqbal.planplus.com

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.


#3

Hi Tahir,

Thanks for your response.

By the way, this happens when we embed aspose code in java file to generate jasper report. Sorry not to mention that.

aspose code to generate word file from jasper print.

  AWDocExporter exporter = new AWDocExporter();
 exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
 exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
 exporter.exportReport();

image-text.pdf (1.8 MB)
image-text-inword.png (129.5 KB)
donut.pdf (178.5 KB)
donut-in-word.png (24.3 KB)

Thanks.
Asif


#4

In addition, I would like to add that We have tried to use the image as a background image, but, in the generation time, aspose water mark background takes over that image. If it works we are ready to modify our jrxml file.

Thanks.


#5

@asif.iqbal.planplus.com

Thanks for sharing the detail. Could you please share your .jrprint file to reproduce this issue at our end? Please also share your expected output document. We will investigate the issue and provide you more information on it.


#6

Hi,

I don’t have .jprint file. But I have attached .jrxml and .jasper file. Since, .jasper and .jrxml are no allowed to upload, I have added .pdf extension. After you download just remove the extension .pdf.

Also out.pdf file is attached as well.
In fact .pdf files previously attached are the expected output.

Hope this helps.ProFilerReport_cover.jasper.pdf (27.2 KB)
ProFilerReport_cover.jrxml.pdf (5.8 KB)
cover1.jpg (360.1 KB)
image-text.pdf (1.8 MB)

Thanks.


#7

@asif.iqbal.planplus.com

We are checking your .jrxml and will get back to you soon.


#8

@asif.iqbal.planplus.com

We need the data source of JRXML to export it to DOCX/PDF. Please create a simple Java application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

You may export your .jrxml to .jrprint file and attach it here for testing. We will then use your .jrprint file for testing.

Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.


#9

Hi,
There you go. I have attached the .jprint file. If you import you can see
texts in the middle of the image.

Investor Profile
prepared For
SyedMultigoal Iqbal

On the right hand side
Date:
PreparedBy
Address

All these texts are not rendered when generated in document word format.

CoverpageReport.jrprint.pdf (1.4 MB)

text inside donut chart are also not rendered.
textinsidedonut.jrprint.pdf (98.8 KB)

Hope this will help.

Thanks.


#10

@asif.iqbal.planplus.com

Unfortunately, we are facing the following exception while exporting .jrprint to DOCX.

Exception in thread “main” java.lang.ExceptionInInitializerError
_ at net.sf.jasperreports.engine.util.JRStyledTextParser.(JRStyledTextParser.java:86)_

Could you please share the JasperReport version and operating system that you are using for further testing?

It would be great if you please create a simple Java application ( source code without compilation errors ) that helps us to reproduce your problem on our end.

Thanks for your cooperation.


#11

Interesting I can generate document using aspose code from the same jprint.
Quick update of version.
Jasper report - 6.8
aspose total - 19.1
OS- macOS

Soon, I will provide source code.
Thanks.


#12

@asif.iqbal.planplus.com

Please try the latest version of Aspose.Words for JasperReports 19.7. If you still face problem, please ZIP and attach your problematic output documents. Thanks for your cooperation.


#13

Thanks. I will try. However, we want aspose total.