c# - different format into one single line Interop.word -


i've been trying figure out how insert 2 different formats same paragraph using interop.word in c# this:

hello planet earth here's want do

assuming have document defined odoc, following code should desired result:

word.paragraph opara = odoc.content.paragraphs.add(ref omissing); opara.range.text = "hello planet earth here's want do"; object ostart = opara.range.start + 13; object oend = opara.range.start + 18;  word.range rbold = odoc.range(ref ostart, ref oend); rbold.bold = 1; 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -