Word
A family of Microsoft word processing software products for creating web, email, and print documents.
657 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
bold text Arabic only in Word using vb.net
objDoc.Tables(1).Cell(7, 1).Select()
objWordApp.Selection.Font.Bold = 1
objDoc.Tables(1).Range.LanguageID = WdLanguageID.wdArabic
objWordApp.Selection.TypeText("تركي")
objWordApp.Selection.TypeParagraph()
objWordApp.Selection.Font.Bold = False
objWordApp.Selection.TypeText("alhalawani")
Hi Turki,
Can you try with this snippet?
Imports Microsoft.Office.Interop.Word
Public Class WordArabic
Private Sub CreateWordWithArabic()
Dim wordApp As New Application()
Dim wordDoc As Document = wordApp.Documents.Add()
Dim arabicText As String = "تركي"
Dim arabicRange As Range = wordDoc.Range()
arabicRange.Text = arabicText
arabicRange.Font.Name = "Arial"
arabicRange.Font.Size = 12
arabicRange.Font.Bold = True
' Save and close the Word document
wordDoc.SaveAs("C:\wordarabic.docx")
wordDoc.Close()
wordApp.Quit()
End Sub
End Class
Regards,