Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Consider the next method upon PDF generation:
private PdfGridCellStyle GetWellCellStyle(string hexcolorcode,PdfTrueTypeFont fromfont)
{var wellstringformat = new PdfStringFormat(PdfTextAlignment.Center,PdfVerticalAlignment.Middle);
Color wellcolor = ColorTranslator.FromHtml(hexcolorcode);
return new PdfGridCellStyle() { TextBrush = PdfBrushes.Black, Font = fromfont, BackgroundBrush = new PdfSolidBrush (wellcolor),StringFormat=wellstringformat};}
Problem: on html page the cell is colored perfectly when choosing with the Syncfusion colorpicker of color:
#ce93d8ff (purple like)
However when inputting this hex color to the above FromHtml() method, it cannot do anything with it. Earlier it worked!