Hello Team,
I facing issue while inserting a document template (word doc) into my base document when the document template has a table inside it. The resultant generated document has table that is miss-alinged.
For inserting i am using followng code
builder.insertDocument(doc, ImportFormatMode.USE_DESTINATION_STYLES);
where builder is from my base document and doc is the document template with table.
There are some restrictions that we are working with
- we can not change the word Documents.
- The Styles of the Base docs (it, alignments, font and font sizes, language etc) is to be used, and hence USE_DESTINATION_STYLES.
Addition info
Aspose.Word Version : 19.11
Document Version : MS Word 97-2003 doc
Please do let me know if what more information i can provide to give more clarity on the topic. Any help is much appreciated.
@sharma.vikash.mca
To ensure a timely and accurate response, please attach the following resources here for testing:
- Your input Word documents.
- Please attach the output Word file that shows the undesired behavior.
- Please attach the expected output Word file that shows the desired behavior.
- 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.
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.
Hello Tahir,
Thank you for the quick response. I am attaching two programs. Program1 and Program 2.
Even though I am more interested in issue present in Program 2. But i believe issue in Program1 is related.
In program 1: I am just converting Doc to Docx but the generated output is aligned improperly.
Program2 : i am trying to insert two document in Third document and you will see the the output is not as per the inputs.
The input and out put documents are present in the /resources folder.
Note : I had to remove aspose-words-19.11-jdk17.jar from my Programs as it was making the Project too big to upload. I am sure you can add them in “/resources/lib” directory to run the projects
Please have a lookProgram1.zip (105.4 KB)
Program2.zip (151.4 KB)
regards
@sharma.vikash.mca
We have tested the scenario and have managed to reproduce the same issues at our side. For the sake of correction, we have logged these problems in our issue tracking system as WORDSNET-21613 and WORDSNET-21614. You will be notified via this forum thread once these issues are resolved.
We apologize for your inconvenience.
Thank you Tahir,
It will be great help if you can also share the expected date of resolution (if possible) as this will help plan our project deliveries.
thank you in advance.
regards
@sharma.vikash.mca
We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. We work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.
Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.
You reported this issue in free support forum and it will be treated with normal priority. To speed up the progress of issue’s resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies
Hi Tahir,
I’m working with Vikash in the same Organization.
Could you please share an update regarding the 2 bugs ?
Regards,
Aymen
@benticha
Your issue are still pending for analysis and are in the queue. We will inform you via this forum thread once there is any update available on your issues.
Hi Tahir,
Any update on this issue?
Regards,
Aymen
@benticha
We have completed the analysis of this issue and noticed that the table row in document has WidthBefore specified in percent. This feature is not supported yet in Aspose.Words.
Unfortunately, there is no ETA available on this feature at the moment. We will inform you as soon as there is any news available on it.
The issues you have found earlier (filed as WORDSNET-21613) have been fixed in this Aspose.Words for Java 24.3 update.