while updating custom variable/values font changes RRS feed

  • Question

  • My word document has font "Times New Roman" with size 10 but when i update custom values it changes font to "Arial, 11"

    it change font for only custom variable which i update, not for whole document.

    what should i do ?

    is there any code snippet to solve this problem

    Thanks in advnace

    Tuesday, January 10, 2012 10:29 AM


  • Hi Prasad

    You don't say so explicitly, but I assume this is a DocVariable field, or perhaps some other kind of field; and that the "update custom values" means you're using Fields.Update or something similar?

    While looking at this document in the Word window (as an end-user), please locate and click near one of these instances. Press Alt+F9, which will toggle on the field code display. Could you please copy and paste the text inside the field brackets { }. (Don't include the brackets in your selection!)

    I have a couple of suspicions, but it will be easiest if we can see the field code...

    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Bruce Song Wednesday, January 18, 2012 6:54 AM
    Tuesday, January 10, 2012 2:11 PM