Hi,
I’m looking at replacing system.drawing and system.drawing.common in an ASP.NET webforms app. The problem I’ve run into when we need to pass a type from the ASPOSE Drawing to .NET
tablecellDashboardLow.BackColor = System.Drawing.ColorTranslator.FromHtml("#" + datasetFullDetails.Tables[14].Rows[0][@"DashboardDialLow"].ToString());
tablecellDashboardMedium.BackColor = System.Drawing.ColorTranslator.FromHtml("#" + datasetFullDetails.Tables[14].Rows[0][@"DashboardDialMedium"].ToString());
tablecellDashboardHigh.BackColor = System.Drawing.ColorTranslator.FromHtml("#" + datasetFullDetails.Tables[14].Rows[0][@"DashboardDialHigh"].ToString());
Which gives the following errors,
4>C:\SC2\CiticusONE\Source\Main\Web applications\WebSite\c1_determinationofacceptablerisk_edit.aspx.cs(595,35,595,44): error CS0012: The type ‘Color’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
4>C:\SC2\CiticusONE\Source\Main\Web applications\WebSite\c1_determinationofacceptablerisk_edit.aspx.cs(596,38,596,47): error CS0012: The type ‘Color’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
4>C:\SC2\CiticusONE\Source\Main\Web applications\WebSite\c1_determinationofacceptablerisk_edit.aspx.cs(597,36,597,45): error CS0012: The type ‘Color’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
tablecellDashboard* are of System.Web.UI.WebControls.TableCell and BackColor is of System.Drawing.Color.
Is it possible to convert the types in ASPOSE Drawing to the .NET version?
Can you see another solution if this is not possible.