Hi Dominique,
I got things working quite some time ago, but I have a different question now. When I hit the print button, and printing with a legend, the legend shown in the preview does not match the legend in its current state of the application. I was looking at your original solution, and it does the same thing in yours. Looking at your code, you set a "Flat" legend mode and the legend always looks the same no matter what you do to in the application legend. Is there a way to reflect you you do in the application legend in the print preview legend? That is, if a service is open or closed in the legend it would be open or closed also in the print preview.
Thanks,
Paul