I would like fixed rows to display with a clear background when I print. This would look better when borders are set to none for printing. How can I set a clear background when printing fixed rows? I tried setting Brush := bsclear in OnGetCellPrintColor but that had no effect.
Ifyou want this to deviate from how it looks on the screen, I'd suggest:
var
clrf,clrt: TColor;
begin
clrf := advstringgrid1.ControlLook.FixedGradientFrom;
clrt := advstringgrid1.ControlLook.FixedGradientTo;
advstringgrid1.ControlLook.FixedGradientFrom := clWhite;
advstringgrid1.ControlLook.FixedGradientTo := clWhite;
advpreviewdialog1.Execute;
advstringgrid1.ControlLook.FixedGradientFrom := clrf;
advstringgrid1.ControlLook.FixedGradientTo := clrt;
end;
Thank you!