Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jan 20, 2022 3:04 pm

Spire Doc not working with Thai Distributed :x :x

kitaponjit
 
Posts: 1
Joined: Thu Jan 20, 2022 3:00 pm

Fri Jan 21, 2022 1:29 am

Hello,

Thanks for your inquiry!

Please refer to the following code to add Thai to the document. If you have any question, just feel free to contact us.

Code: Select all
            Document document = new Document();
            string text = "Spire.Doc ออกแบบมาเป็นพิเศษสำหรับนักพัฒนา/โปรแกรมเมอร์ในการจัดการงานคำ ตั้งแต่ Word เวอร์ชัน 97-2003 ถึง 2010 และ 2013 ใน .NET, Silverlight และ WPF Platform ยินดีรับการประเมินหรือการทดสอบใดๆ จากองค์กรหรือบุคคลที่ไม่มี ค่าใช้จ่าย";
            Paragraph para = document.AddSection().AddParagraph();
            TextRange range = para.AppendText(text);
            range.CharacterFormat.FontName = "Angsana New"; //here must set a font which support Thai.
            document.SaveToFile("Thai.docx",FileFormat.Docx2013);


Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Thu Jan 27, 2022 5:55 am

Hello,

Hope you are doing well!

Has the issue been solved now? Could you please give us some feedback at your convenience?

Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.Doc