Page 1 of 2

How can I save the report as a transparent png image not a white background?

Posted: Mon Oct 09, 2023 4:06 pm
by myms
I am trying to save the report as a PNG image. It is successful, but the problem is that the background is always white. Only the background is transparent when exporting as a PDF file. Is there a way to export it as a transparent image, because I need it as an image and not a PDF file?

Re: How can I save the report as a transparent png image not a white background?

Posted: Wed Oct 11, 2023 6:35 am
by Max Shamanov
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: How can I save the report as a transparent png image not a white background?

Posted: Thu Oct 12, 2023 1:55 pm
by myms
Any news on this issue ?
Thank you.

Re: How can I save the report as a transparent png image not a white background?

Posted: Mon Oct 16, 2023 8:42 pm
by Lech Kulikowski
Hello,

By default when rendering a page transparent background is replaced by white. It is written in the code, there are no options. BUT! if you set the background of the page almost transparent color, for example 1,0,0,0,0, then when exporting will be almost transparent background. (in design time it will appear black, in preview the background will be transparent).

Thank you.

Re: How can I save the report as a transparent png image not a white background?

Posted: Sat Oct 21, 2023 4:09 am
by myms
Thank you for your response. I tried it, but the results were not what I wanted. There are shadows under text boxes and other image frames, so the problem was not solved.
test-background.jpg
test-background.jpg (167.48 KiB) Viewed 12050 times

Re: How can I save the report as a transparent png image not a white background?

Posted: Sat Oct 21, 2023 4:15 am
by myms
For comparison, this image is without a transparent background color
item-using-white-background.jpg
item-using-white-background.jpg (121.84 KiB) Viewed 12049 times

Re: How can I save the report as a transparent png image not a white background?

Posted: Sun Oct 22, 2023 4:41 pm
by myms
So, is there another solution, or at least will it be included in future updates, or should I find another tool!!!

Re: How can I save the report as a transparent png image not a white background?

Posted: Tue Oct 24, 2023 8:16 am
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.

Re: How can I save the report as a transparent png image not a white background?

Posted: Tue Oct 24, 2023 8:28 pm
by myms
Hello ,,

I think the problem is in the .net library because the program on the Windows system does not show shadows, but when I save the report as an image through the library, the shadows appear. You can see the project in the attachments.
ReportAsImage.rar
(2.12 MiB) Downloaded 523 times
Report-(3).jpg
Report-(3).jpg (927.97 KiB) Viewed 11732 times

Re: How can I save the report as a transparent png image not a white background?

Posted: Thu Oct 26, 2023 7:28 am
by Lech Kulikowski
Hello,

We have found some issues in the NET Core engine, we need some time to investigate the issue, we will let you know about the result.

Thank you.
#12864