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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

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!