Changing Word Font in Vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hmkaddoura
    New Member
    • Feb 2008
    • 18

    Changing Word Font in Vb.net

    Hi All,

    Am trying to change the MS word font in my vb.net application by using the following code

    Code:
    Dim sizo As Single = 14
    ...
    doc.ActiveWindow.Selection.SetRange(doc.Paragraphs(1).Range.Start, doc.Paragraphs(app.ActiveDocument.Paragraphs.Count()).Range.End)
                               doc.ActiveWindow.Selection.Font.Bold = 1
                                doc.ActiveWindow.Selection.Font.Name = "Traditional Arabic"
                                doc.ActiveWindow.Selection.Font.Size = sizo
    neither font name nor size changes.
    when I open again the doc file the font is set to Tohama and size is 8.5

    any clue??

    Regards,
    HK
  • hmkaddoura
    New Member
    • Feb 2008
    • 18

    #2
    any one that can help?

    Comment

    Working...