I'd like to have a header and footer background with a gradient fill behind the page title and such. (C#)
I can't seem to find how to do that.
In another project, using something other than DevExpress, I can do very simply like this:
dgvPrinter.HeaderFormat = BlockFormat.Header();
dgvPrinter.HeaderFormat.BackgroundBrush = new LinearGradientBrush(new Point(0, 0), new Point(200, 0), Color.DarkBlue, Color.White);
dgvPrinter.FooterFormat = BlockFormat.Footer();
dgvPrinter.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Point(0, 0), new Point(200, 0), Color.White, Color.Blue);
How hard is it to do that with XtraReports?
Thank you for contacting us. I am afraid the XtraReports Suite does provide built-in functionality to accomplish this task. To set the Band background color, you can use the approach shown in the How to change the background color of the entire band knowledge base article. However, it is impossible to implement gradient filling using this method. We have plans to implement this functionality in the context of the XRControl - Support gradient filling suggestion. Please track it to be notified when its status is changed.
Thank you for your feedback. You can try to use the XRPictureBox control to show the background image in a band. However, please note that reports with overlapping controls are not correctly exported to some formats (RTF, XLS, XLSX). Thus, if this functionality is not important for you, use this approach.