This is a migrated thread and some comments may be shown as answers.

transparency on image export ?

6 Answers 297 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 26 Oct 2010, 01:57 PM
Hi,

we're still evaluating Telerik Reporting, especially the Silverlight components.

One problem we've found so far is, that it seems the image export does not obviously support transparent background colors.
Currently we tried the TIFF-Export using the Silverlight Report Viewer and the API of the rendering engine itself, both without luck.

What did we miss to get transparent background images (preferrably in PNG format) using the server side API ? Examples would be very appreciated ;)

Thank you so far and kind regards

Sebastian

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 29 Oct 2010, 01:32 PM
Hi Sebastian,

Unfortunately we're not entirely clear on your request. Can you specify on what element you're trying to set transparent background color and what are you trying to achieve? If for example you want to set transparent background for a TextBox item so that the color of the parent element can be seen, this works - simply set Transparent background color to the item.

Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mlzoll
Top achievements
Rank 1
answered on 03 Nov 2010, 02:28 PM
Hello,

I am a colleague of Sebastian.

We are trying to set the background color from the report to transparent
(look in the attached screenshot)
In all used controls in the report is the background color is set to transparent, too.

If we export the report in with the save button in the silverlight viewer the background of the image is white.

We also try to export the picture without the silverlight viewer.
Look in the following code:

Report2 report2 = new Report2();
ReportProcessor reportProcessor = new ReportProcessor();
 
Hashtable deviceInfo = new Hashtable();
deviceInfo["OutputFormat"] = "PNG";
 
RenderingResult renderingResult = reportProcessor.RenderReport("IMAGE", report2, deviceInfo);
             
using (FileStream fileStream = new FileStream(@"d:\sandbox\123.png", FileMode.Create))
{
   fileStream.Write(renderingResult.DocumentBytes, 0, renderingResult.DocumentBytes.Length);  
   fileStream.Close();
}

But the result is the same.

How do we get a transparent backgound?
We need a transparent background, because our users want to use the graphic in PowerPoint without
covering the background image or background color (usually a gradient) from PowerPoint.

Thank you so far and kind regards
Marcel
0
Steve
Telerik team
answered on 05 Nov 2010, 02:36 PM
Hi Marcel,

Thank you for the clarification. We've verified this on our end and unfortunately you're correct - the generated image is not transparent. I've logged this in our bug tracking system and it would be investigated for subsequent versions of the product.

Unfortunately we cannot offer a workaround for the time being for which we apologize.

Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sebastian
Top achievements
Rank 1
answered on 08 Nov 2010, 01:57 PM
Hello Support,

thank you very much Steve for your fast support on this issue.

From your customers pov this really is a so called 'showstopper'. Therefore we need at least a general statement until when we can envisage a solution on this.

To become more straight: Is there a chance to get this fixed with the upcoming Q3 Release and is there a vague time schedule already available ?

Kind regards
Sebastian
0
Steve
Telerik team
answered on 09 Nov 2010, 07:09 PM
Hi Sebastian,

We're currently polishing the Q3 release (expected by the end of the week) and cannot risk making last minute fixes for it. But we would address this problem for subsequent releases (either internal build or service pack), which usually come in about a month after a major release.

Thank you for the patience and understanding.

Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sebastian
Top achievements
Rank 1
answered on 10 Nov 2010, 08:06 AM
Hi Steve,

thank you very much. We appreciate this statement and believe me, as software developers we do also 'understand' ;)

Kind regards
Sebastian
Tags
General Discussions
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Steve
Telerik team
mlzoll
Top achievements
Rank 1
Sebastian
Top achievements
Rank 1
Share this question
or