We are required to render the table in MS Word as it is in MS Excel.
However, from Aspose Cells we are getting only indent level (as it is in MS Excel).
There is a duplicate topic for this:
However, this topic does not have a proper conclusion (~1.3 point to inches is ~0.01) and is pretty old (5 years old).
There is another duplicate for this:
I think he asked the same question, but response was more about customizing the indentation rather than knowing exact value of single IndenLevel in inches.
What is interesting is that copying from Excel to Word the table indent converts to first line 1 ch.
But there is no explanation what formula to use to get from 1 ch to inches (at certain websites ch = (px-5)/7 is suggested, other websites plainly converts 1 ch to 0.08(3) inches).
How to convert Indent Level (from Aspose Cells) to Left Indent (in Aspose Words) properly?
Is this number of spaces * 3 formula (in normal font) still applicable?
How do you transform MS Excel contents to Word document? I guess you might have written your own code or some sort of utility (code) to convert/copy Excel spreadsheet formatted data/range to Word document via Aspose.Cells APIs and Aspose.Words APIs. I am afraid results might not be always reliable. Please note, both Aspose.Cells and Aspose.Words are different and diverse APIs (even MS Word and MS Excel are diverse applications) having different architectures, so you cannot always parse objects’ data accurately b/w the APIs. A general and better approach might be that you may try is:
Convert your Excel range/data or spreadsheet into PDF using Aspose.Cells
Yes, separate code is written for conversion. I am fully aware of diverse applications, but, in my opinion, it could be transferred pretty identically.
Your provided method for converting excel data to docx format is great, but it does not suit right now.
I would like to get just answers to my asked questions, nothing more. Thank you!
I guess these things are complex to be sorted out accurately. Anyways, we will check if we could come up with our findings.
By the way, Aspose.Words team have written a utility to convert XLS file to MS Word document. I would recommend you to try it if it suits your needs. TestApp.zip (68.0 KB)
Yes, in MS Excel, the indent is spaces * 3 formula (in normal font) still there. We have evaluated your issue in details. If you want, we can provide the size in unit of Pixels for indent. Let us know if it suits your needs, so we could log a ticket for it upon your confirmation.
In the mean time, we have logged a ticket for into our database to support your needs. Once, we will have some news for you, we will update you in this topic.
This issue has been logged as
CELLSNET-46967 – Provide indent size in unit of pixels
You should have mentioned explicitly that you are using Aspose.Cells for Java. Anyways, no worries, all the enhancements and features included in .NET version are also included in Java and vice versa. Aspose APIs for Java have same codebase as they are ported from .NET version of the API.
Please wait as we will also implement this feature in Java version as well.
The issues you have found earlier (filed as CELLSNET-46967) have been fixed in Aspose.Cells for .NET v19.11. This message was posted using Bugs notification tool by Amjad_Sahi
I want to be 100% clear: I have a text Hello World! with indentLevel = 4. How to know exactly the indentation size? If I will use this getTextWidth, I will get the whole cell text width, but I still would not know what is the exact size of the indentation.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.