InsertSymbol in Word using C# -
i'm creating custom microsoft word mailmerge console application using c#. problem trying use insertsymbol command (from microsoft.office.interop.word). purpose drop in checked box symbol if field value true, , empty box if field value false.
microsoft has definition of command here no concrete examples.
the way have command set this:
object ofont = "wingdings"; object ounicode = "true"; object obias = word.wdfontbias.wdfontbiasdontcare; oword.selection.insertsymbol(254, ref ofont, ref ounicode,ref obias);
when try run command, error "this not valid number." there not lot of examples of command online , hoping ideas. thanks.
thank robert sharing solution:
object ofont = "wingdings"; object ounicode = true; object obias = word.wdfontbias.wdfontbiasdontcare; oword.selection.insertsymbol(254, ref ofont, ref ounicode,ref obias);
it works well!
Comments
Post a Comment