Cell width become wider with multibyte text

Dear Sir

I am using Aspose.Words .net (VB.net). I have created a table and cell, put a multbyte text such as
“1. 人文關懷: 閱讀-《目送》、《我交給你們一個孩子》、《橋》, 寫作-重溫記敘、描寫、抒情文體。寫作「人與事」「記敘抒情」題型, 說話-掌握考核方向及評分細項,訓練首輪一分鐘發言技巧。聆聽及綜合-掌握考核方向及評分細項、包括四大支柱:語境意識、整合拓展、見解論證、表達組織、掌握書信格式2. 文言導賞: 閱讀-《勸學》、《逍遙遊》、《廉頗藺相如列傳》、《岳陽樓記》及2012-2014文言文試題。寫作-分析歷屆議論文,掌握此題型的寫作技巧,包括「傳統往往是創新的包袱」、「談憤怒」題目。說話-訓練首輪一分鐘發言及自由討論之技巧。聆聽及綜合-掌握演講辭的格式,加強語境意識、整合拓展、見解論證、表達組織四大支柱。3. 文化專題-選修單元(SBA):學生從以下五方面認識中國傳統文化,並反思文化的意義:人禽之辨、五倫之教、孝道古今、夫婦之道、朋友有信,閱讀《論仁論孝論君子》、《孟子-魚我所欲也》。期間完成兩次進展性評估,及一次總結性評估──專題研習。學生除了以上單元外,還完成閱讀紀錄、一次書面閱讀報告及一次口頭報告。”

However, the table will be stretched to fit the text without warping. English is no problem at all. Here is my code:

Dim subject_page As Tables.Table = builder.StartTable()

                'builder.CellFormat.Width = 700

                'Topic

                Dim topic As String = reportclass_gen.get_topic(cor_id)

                Dim comment As String = reportclass_gen.get_comment_subject(cor_id)

                builder.InsertCell()

                'builder.CellFormat.WrapText = True

                builder.CellFormat.Width = 700

               
                Dim topic_box_height As Integer = 200
                Dim comment_box_height As Integer = 310 '350
                builder.RowFormat.Height = topic_box_height
                builder.RowFormat.HeightRule = HeightRule.Exactly
                builder.ParagraphFormat.Alignment = ParagraphAlignment.Left
                builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Top
                builder.Font.Bold = True
                builder.Writeln("Topics")
                builder.Font.Bold = False
                builder.Font.Name = useFont
               
                builder.Writeln(topic.Replace(vbCr, "").Replace(vbLf, ""))
                builder.Writeln("")
                builder.EndRow()

                builder.InsertCell()

                builder.CellFormat.Width = 700

                builder.ParagraphFormat.Alignment = ParagraphAlignment.Left
                builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Top

                builder.RowFormat.Height = comment_box_height
                builder.RowFormat.HeightRule = HeightRule.Exactly

                builder.Font.Bold = True
                builder.Writeln("Comments and Recommendation")
                builder.Font.Bold = False
                builder.Writeln(comment.Replace(vbCr, "").Replace(vbLf, ""))
               
                builder.EndRow()

                builder.EndTable()

                subject_page.ClearBorders()

Please check.

Thanks for your support

@churchilllee,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • 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 standalone console 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’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.