Hello,
I finally had an opportunity to upgrade all of our controls to the latest version, and am still experiencing this issue. When the control first loads, the font is Verdana. I change it to Arial and then type out all of the text inserting required merged fields as I go along. I am then exporting the document as HTML and sending in an email.
When I receive the email all of my added text is in Arial, however the merged fields are still in Verdana. Below is the html I receive. In here you can see the embedded styles for both Verdana and for Arial. I do not know why the Verdana one is there at all.
And here is the code we use to export the document to html:
private void UploadDocument()
{
int count = 0;
string imageFileName = initiativeRunId.ToString() + "_{0}.{1}";
string newFileName = string.Empty;
exportFileName = initiativeRunId.ToString() + ".html";
HtmlFormatProvider exporter = new HtmlFormatProvider();
HtmlExportSettings settings = new HtmlExportSettings()
{
ImageExportMode = ImageExportMode.ImageExportingEvent
};
settings.ImageExporting += (s, e) =>
{
count++;
newFileName = string.Format(imageFileName, count.ToString(), e.Image.Extension);
newFileNames.Add(newFileName, e.Image.RawData);
e.Src = newFileName;
e.Alt = "image";
};
settings.StylesExportMode = StylesExportMode.Classes;
settings.ExportFontStylesAsTags = true;
settings.DocumentExportLevel = DocumentExportLevel.Document;
settings.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;
exporter.ExportSettings = settings;
using (MemoryStream stream = new MemoryStream())
{
string exported = exporter.Export(radDocument);
content = AddCustomPropertyToHyperlink(exported);
}
UploadImages();
}
Please let me know if you require any more information.
Thanks.