Dear supports,
I am using the Jasper Report version 4.6.0 and Aspose Word for Jasper latest version.
Jasper reports will generate a page break for second page to split out the page content, however, the exporter seems overlapped the page contents and page footer, thus, the last paragraphs in 1st page will move to NEW PAGE (2nd page) with a lots of blank space, and the original 2nd page now turned to 3rd page.
The following is the parameter setup of the AWDocExporter.
// Define the Jasper Exporter
AWDocExporter _rtfExporter = new AWDocExporter();
_rtfExporter.setParameter(AWExporterParameter.JASPER_PRINT, jasperPrint);
_rtfExporter.setParameter(AWExporterParameter.USE_EXACT_ROW_HEIGHTS, Boolean.FALSE);
_rtfExporter.setParameter(AWExporterParameter.RECOGNIZE_FIELDS, Boolean.TRUE);
_rtfExporter.setParameter(AWExporterParameter.LICENSE, getAsposeWordsLic());
_rtfExporter.setParameter(AWExporterParameter.POSITIONED_STYLE, "EmptyStyle");
_rtfExporter.setParameter(AWExporterParameter.USE_EXACT_SPACINGS, Boolean.TRUE);
_rtfExporter.setParameter(AWExporterParameter.OVERLAP_RESOLUTION_METHOD,AWExporterParameter. OVERLAP_RESOLUTION_METHOD_PUSH_ITEMS);
// generate on the online side
_rtfExporter.setParameter(AWExporterParameter.OUTPUT_STREAM, out);
_rtfExporter.exportReport();
Anyone have same experience on “new unexpected page” generated?
And Do you have any solution to resolve the issue?
Thanks!
Hi Jason,
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.
- jrxml files along with xml/csv data source
- .jrprint file
Hi Tahir,
Thanks for your reply.
Sample as attached.
Highly appreciate that if we can have your advise / solutions this week.
Since our customer on hold the PO to Aspose becoz this issue.
Hi Jason,
Thanks for sharing the jrxml file. To reproduce this issue at our end, please share the data-source e.g CSV for jrxml. You may share the .jrprint file to reproduce this issue at our end. As soon as you get these pieces of information to us we’ll start our investigation into your issue.
Hi Tahir,
I prepare the jrprint and xml data source sample as attachment.
Thanks a lot
Hi Jason,
Thanks for sharing the detail.
jason_tung:
Jasper reports will generate a page break for second page to split out the page content, however, the exporter seems overlapped the page contents and page footer, thus, the last paragraphs in 1st page will move to NEW PAGE (2nd page) with a lots of blank space, and the original 2nd page now turned to 3rd page.
I have tested the scenario and have not found any issue with output Doc file.If you export your jrxml to Pdf by using iReports, the position of contents are same. I have attached the output Doc file with this post for your kind reference. Moreover, please use AWExporterParameter.USE_EXACT_ROW_HEIGHTS with value True.
exporter.setParameter(AWExporterParameter.USE_EXACT_ROW_HEIGHTS, Boolean.TRUE);
Please check the attached output and let us know if you found any issue.
Hi Tahir,
Thanks for your reply.
I have tested the parameter AWExporterParameter.USE_EXACT_ROW_HEIGHTS, it can be generate the document with correct position of contents with value Boolean.TRUE.
Unfortunately, the document cannot be user friendly for editable. When i type some words in the table, some words is missing. I find out that the table do not increase the height automatically, I need to scroll down the bottom line of table to visible the missing words.
For Example:
You can press ENTER in the table of your output doc file, then you will find out that the words is missing.
I set back the AWExporterParameter.USE_EXACT_ROW_HEIGHTS to FALSE, the table can scroll the height automatically when type any words or ENTER as my doc.
Do you have any solution to resolve this issue?
Hi Jason,
Thanks for your inquiry. While using USE_EXACT_ROW_HEIGHTS with False value, I have noticed the content rendering issue. The text © moves to page number 4 with empty space at same page. I have logged this issue as WORDSJSP-118 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Hi Tahir,
Thank you for the update. May I know the expected release time of issue WORDSJSP-118 (as you advised)? This is a show-stopper to us for deciding whether to proceed with the software purchase.
Much appreciate if the issue fix can be provided as soon as possible. Look forward to your update on this. Thanks in advance.
Best regards,
Yvonne
Hi Yvonne,
Thanks for your inquiry. I would like to share with you that issues are addressed and resolved based on first come first serve basis. Currently, your issue is pending for analysis and is in the queue. I am afraid, I cannot provide you any reliable estimate at the moment. Once your issue is analyzed, we will then be able to provide you an estimate.
Thank you for your patience and understanding.
Hi Tahir,
Can I have your update on the status of this issue? Is it possible to provide an estimate at this moment?
Your prompt response is highly appreciated.
Thanks.
Regards,
Yvonne
Hi Yvonne,
Thanks for your inquiry. I have verified the status of your issue from our issue tracking system and like to share with you that your issue is under analysis phase. I have requested the development team to share the ETA of this issue. As soon as any information is shared by them, I will be more than happy to share that with you.
We appreciate your patience.
Hi Tahir,
We try to find another way which may be provide a quick fix to resolve the issue.
First, we set the page break parameter to none.
jrExporter.setParameter(AWExporterParameter.PAGE_BREAKS, AWExporterParameter.PAGE_BREAKS_NONE);
Then, we need to design the first page of header and footer which is different to other page, therefore, we try to use the Field Code of MS word to handle it.
{IF{PAGE}>"1" "{PAGE}" "Page 1"}
But, the Aspose cannot support the multiple {}, it display as follow.
{IF{PAGE>"1" "{PAGE}" "Page 1"}
Does this issue fix quickly than the past?
Thanks,
Hi Jason,
Thanks for your inquiry.
It would be great if you please share your jrxml and jrpint files here for testing. I will investigate the issue on my side and provide you more information.
Hi Tahir,
Thank you for your support on this issue so far. Just want to know if there is any update on the ETA. Once it is ready, please kindly share with us.
Look forward to hearing from you. Thanks!
Regards,
Yvonne
Hi Yvonne,
Thanks for your inquiry.
yvonneyip:
Thank you for your support on this issue so far. Just want to know if there is any update on the ETA. Once it is ready, please kindly share with us.
Currently, your issue is under analysis phase. I am afraid, I cannot provide you any reliable estimate at the moment. Once your issue is analyzed, we will then be able to provide you an estimate.
Thank you for your patience and understanding.
Hi Tahir,
Attached the jrxml file.
For the generation, please setup the following parameter.
jrExporter.setParameter(AWExporterParameter.RECOGNIZE_FIELDS, Boolean.TRUE);
On the other hand, Does aspose word for jasper support { QUOTE 12 }?
Thanks,
Hi Tahir,
Can you share with us any status update of this issue fixing? Thanks.
Regards,
Yvonne
Hi Yvonne,
Thanks for your inquiry.
jason_tung:
Can you share with us any status update of this issue fixing?
Currently, your issue is under analysis phase. I am afraid, I cannot provide you any reliable estimate at the moment. Once your issue is analyzed, we will then be able to provide you an estimate.Thank you for your patience and understanding.
Thanks for your inquiry.
jason_tung:
On the other hand, Does aspose word for jasper support { QUOTE 12 }?
Could you please share some more detail about your query along with jrxml file?
*jason_tung:
{IF{PAGE}>“1” “{PAGE}” “Page 1”}
But, the Aspose cannot support the multiple {}, it display as follow.
IF{PAGE>“1” “{PAGE}” “Page 1”}*
I have managed to reproduce the same issue at my side. I have logged this issue as WORDSJSP-124 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Hi All,
I am developer who is working on this issue (WORDSJSP-118). The issue is still under development, but I have found workaround which allows to avoid the issue - to use following config option
exporter.setParameter(AWExporterParameter.SPACING_FACTOR, Double.valueOf(0.8));
Actually this option just makes all spacings between paragraphs/tables a little bit smaller using SPACING_FACTOR as multiplier. For example, if there are 5pt space between some paragraphs - it becomes 4pt etc.
I’ve tried this with your sample document and all seems to be fine (no extra space).
Could you please try this on your side and let us know about results?
Thanks and regards,
Vadim