We are trying to align the following text to right as shown in the above code snippet but it is not getting aligned as expected. It is taking left by default. We did some investigation and found that it could be a problem with the Aspose. Please help us out in resolving the same.
Karthik K V
Thanks for your inquiry. I have tested the scenario with following code snippet and have not found the shared issue. I have attached the output Docx file with this post for your kind reference.
Document doc = new Document();
DocumentBuilder docBuilder = new DocumentBuilder(doc);
doc.Save(MyDir + "Out.docx");
In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v13.6.0) from here and let us know how it goes on your side. If the problem still remains, please attach your input documents here along with code for testing. I will investigate the issue on my side and provide you more information.