How to export a report to PNG with transparency ?

1 Answer 99 Views
Report Book Report Viewer - WinForms
Pinou
Top achievements
Rank 2
Pinou asked on 10 Nov 2022, 05:02 PM

Hi, 

I need to make a report with several PNG images and generate a PNG file with transparency in a Winforms application.
So I made a report with the background 'Transparent' and some PictureBox.
this.Style.BackgroundColor = System.Drawing.Color.Transparent;

this.detail.Style.BackgroundColor = System.Drawing.Color.Transparent;

Then I export to PNG with Telerik ReportProcessor and RenderingResult.
But the background is white. :-(

How can I export this report with transparent background ?

Thanks

Frederic

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 15 Nov 2022, 01:44 PM

Hi Pinou,

I tested exporting a Report as a PNG image with transparent background and can confirm that the background of the rendered PNG report was white. I set the Style > Background of the PictureBox in the detail section, of the Page and Detail sections, of the Report itself, and of Report > PageSettings to Transparent. The rendered PNG image was still with white background.

We consider this a bug and I have logged it and voted on your behalf - The Image export to PNG format does not respect the transparent background color of the Report items and PageSettings. As a token of gratitude, we have updated your Telerik points.

Unfortunately, I cannot suggest a suitable workaround.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Book Report Viewer - WinForms
Asked by
Pinou
Top achievements
Rank 2
Answers by
Todor
Telerik team
Share this question
or