Andrew Price
5 years ago
I have an iGrid using dark theme colours.

I use printmanager to print the grid, but whilst the grid has dark colours the printmanager outputs the dark background.

I need printmanager to output the grid in light theme, not dark, so I change the colours of the grid prior to calling the printmanager then change them back afterwards. This is fine except that the grid on screen reflects the colour changes and goes from dark to light during the print process and then back to dark again.
I hoped I could call BeginUpdate and End Update either side of the colour changes so that the on screen grid did not go light then dark.

However, it appears that the colours of the grid get changed even if BeginUpdate has been called.

How can I prevent colour changes (which I need in place when calling printmanager) from affecting the grid?

Or, how can I print the grid using printmanager using different line and background colours to those displayed.

Or can a whole grid be easily cloned and I then could change the colours of the clone prior to printing. The clone would not be visible of course.

Thanks
Igor/10Tec
5 years ago
A very interesting question. First of all, have you tried to use the PrintingStyle, PrintingOptions and GridLineColor properties of the PrintManager to print iGrid as a plain, almost white, table on the paper?
Andrew Price
5 years ago
I will take another look at those again, but I could not find a way to change the cells back colour to white when printing without it affecting the grid on the form.

Igor/10Tec
5 years ago
Try those color properties of PrintManager. If these settings are not enough, send us a sample with your grid in dark mode for the further consideration.