Capturing default Font

R

Reuven

Hi,
Where in the Infopath Object Model can I find/access the
default font, either for the application or a view? When
rich text is saved, the font is applied only if it's not
the default. So to be able to reuse the text (in VS
Office toolkit) as it appears in the control, I'd like to
add the default font.

Any ideas where this can be found?

Many thanks,

Reuven
 
B

Brian Teutsch [MSFT]

Sorry to say that there isn't a specific way to get that information, The
easiest way is to hard code the font that you'd like as the default. If you
want a true programmatic way, you can open the XSL that is part of the XSN
file, and parse the XSL to find the rich text field and the styles that
affect it.

Brian
 
R

Reuven T

Thanks Brian - I'll assume it's the Verdana that's the
app default for now.
Reuven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top