Hi Mr Alexey Noskov,
This is lokesh,
This is regarding the code which u helped me for converting xls into document.
Every things are working fine, i have followed these steps to set the horizontal and vertical merge, i can see in the word document.
When i convert this document to pdf using openOffice, this merged cells are not getting recognised, meaning the output is only a single cell (not merged)
Since Aspose has some limitation in converting word to pdf, we are using open office. Is there any thing which i have missed out in setting. Kindly confirm.
Lokesh K
This message was posted using Aspose.Live 2 Forum
Hi Lokesh,
Thanks for your inquiry. Could you please attach your documents here for testing? I will check the issue and provide you more information.
Best regards.
Hi,
Please find the attached document, When i convert this document to pdf using openoffice, the merged cell gets removed and only to first cell the content is coming.
Note. This word is generated using asposeword.
When we do some modification to this word using windows msoffice, then its working fine.
So some prob with this merged cell, which openoffice is not able to recognise.
Thanks
lokesh k
Hi
Thank you for additional information. I cannot reproduce the problem on my side. Can successfully convert the attached document to PDF using OpenOffice. I attached the output PDF file produced on my side.
Also, maybe you can try saving your output document in ODT format (which is native for OpenOffice) and then convert this document to PDF.
Best regards.
Sorry i attached the wrong document.
Please find attached the new document in which u can simulate the problem.
Lokesh K
Hi Lokesh,
Thank you for additional information. By Microsoft Word design rows in a table in a Microsoft Word document are completely independent. It means each row can have any number of cells of any width. So if you imagine first row with one wide cell and second row with two narrow cells, then looking at this document the cell in the first row will appear horizontally merged. But it is not a merged cell; it is just a single wide cell. Another perfectly valid scenario is when the first row has two cells. First cell has CellMerge.First and second cell has CellMerge.Previous, in this case, it is a merged cell. In both cases, the visual appearance in MS Word is exactly the same. Both cases are valid.
But for some reason OpenOffice does not like the second scenario. That is why the problem occurs. As a workaround, you can just save your output document in ODT format. In this case merged cells looks perfectly in OpenOffice.
Best regards.
Now when i convert this word document and save it as .ODT extension using aspose, the number of pages are getting reduced. means, word i have 6 pages, odt is coming only 3 pages dont know what’s the reason.
Or Else is there any way to convert a word document into .odt file.
Kindly suggest…
Please find this document and convert it to .odt file.
The code used is
FileInputStream inputStream = new FileInputStream(getMyDir() + "6cb2e961128dec855687ff8_1026.doc");
Document document = new Document(inputStream);
DocumentBuilder builder = new DocumentBuilder(document);
document.save(getMyDir() + "6cb2e961128dec855687ff8_1026.odt");
Hi Lokesh,
Thank you for additional information. I managed to reproduce the problem on my side your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
One more workaround, you can try is using simply wide cells instead of merged cells, as I mentioned in my previous answer. But to achieve this you need to modify converted class. You need just increase width of the current cell instead of inserting merged cell.
Best regards.
Hi Alexey,
could u please help me with some sample code on what u said above.
…
i have one more problem, some time suddenly i get this error (see the attachment) when i try to convert an excel into word document. Could u please tell me why this can happen.
This problem is not simulatable always, some time while converting it suddenly occurs. Hence am not attaching any document for your testing.
Please find the attachment for the stacktrace and let me know what could be the reason for this error.
Thanks
Lokesh K
Hi Lokesh,
Thank you for additional information. But it is difficult to tell what causes these problems. If it is possible, could you please create a simple code and provide me sample documents, which will allow me to reproduce the problem on my side? I will check the issue and provide you more information.
Best regards.
Hi,
Code is the same, which u sent for Excel2Doc converter, i have not done any changes, excel can be any thing.
Thus as i said, its not happening always, some times suddenly it occurs.
Can this happen when there is a multiple thread request. For every thread we are creating a new instance of this converter class, but inside aspose api can it support multi threading ?.
I suspect this one. But not sure just an hint.
Thanks
Lokesh K
Hi
Thanks for your inquiry. You can use Aspose.Words in multiple threads. But you should create a separate instance of Document class for each thread.
It is difficult to tell you why the problem might occur because I cannot reproduce the same problem on my side. So you are standing on better position than I am in order to analyze the problem.
Best regards.
The issues you have found earlier (filed as 17311) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.