static MainWindow() { PrintingSystemXmlSerializer.UnregisterConverter(typeof(Font)); PrintingSystemXmlSerializer.RegisterConverter(new CustomFontConverter()); }
protected void Application_Start(object sender, EventArgs e) { PrintingSystemXmlSerializer.UnregisterConverter(typeof(Font)); PrintingSystemXmlSerializer.RegisterConverter(new CustomFontConverter()); DevExpress.XtraReports.Web.ASPxWebDocumentViewer.StaticInitialize(); }