Page 1 of 1

Default font not observed in processed document?

PostPosted: Fri Oct 08, 2010 2:01 am
by dawns
I have a template with content controls set to Arial font type. However, after my code processes the document to insert the data and I open that processed document, all the data within the content controls is Times New Roman, not Arial as expected.

I would have thought it would take the font style of the content control, but it doesn't appear to be doing that. Do I have to manually set the font type? If so, is there a way to set it to the default font type in the content control (as opposed to setting it in code to "Arial") so that I don't have to assume all my users would want Arial?

Thanks,
Dawn

Re: Default font not observed in processed document?

PostPosted: Fri Oct 08, 2010 7:14 am
by jason
I suspect Word isn't honouring your font, because you aren't supposed to be able to bind a rich text control.

See further http://dbe.codeplex.com/Thread/View.aspx?ThreadId=54250

If this is right, your options include:

- placing your content control in a run with appropriate run properties (no good if it needs to be multi-para)

- redefining the document default font to what you want