We need some help with this matter. I am using this code to try to enforce Arial font in my subdocument HTML.
public static Byte[] ToHtml(String text)
{
Byte[] bytes = null;
String html = String.Format("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html><head><title></title></head><body style="\"font-family:" arial;="" font-size:="" 10pt;\"="">{0}</body></html>", !String.IsNullOrEmpty(text) ? text : String.Empty);
bytes = Encoding.ASCII.GetBytes(html);
return bytes;
}
So far, when the report is finished, the HTML parts are using the default Calbri font. Could you provide some insight into what we're doing wrong here?