add logo to a report

Stimulsoft Reports.Silverlight discussion
Jalal
Posts: 66
Joined: Sat Oct 09, 2010 4:10 am
Location: Palestine

add logo to a report

Post by Jalal »

Hello,

Using version 2011.2.1004.0, and this code in client side :

//add logo
if (logodata != null)
{
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(new MemoryStream(logodata));
StiVariable logo = new StiVariable("My variables", "Logo", "Logo", "", typeof(System.Drawing.Bitmap), "", false, false, false);
logo.ValueObject = bitmap;
report.Dictionary.Variables.Clear();
report.Dictionary.Variables.Add(logo);
report.Dictionary.Synchronize();
}

and this code in server side :

if (logodata != null)
{
System.Drawing.Image image = System.Drawing.Image.FromStream(new MemoryStream(logodata));
StiVariable logo = new StiVariable("My variables", "Logo", "Logo", "", typeof(System.Drawing.Bitmap), "", false, false, false);//new StiVariable("My Variables", "Logo", "Logo", image);// // ***********
logo.ValueObject = image;
_report.Dictionary.Variables.Clear();
_report.Dictionary.Variables.Add(logo);
_report.Dictionary.Synchronize();
}

The result : it works fine in client , but doesn't work in server!

==================================================
After upgrading to the new version : 2011.3.1200.0 with same code ,

The result : it works fine in server , but doesn't work in client !!

any suggestions about that ?

Thanks in advance

Regards,
Jalal Khalil
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

add logo to a report

Post by HighAley »

Hello.

We couldn't reproduce your issue.
What does this code load?

Code: Select all

new MemoryStream(logodata)
Please, send us a sample project to reproduce your issue.

Thank you.
Jalal
Posts: 66
Joined: Sat Oct 09, 2010 4:10 am
Location: Palestine

add logo to a report

Post by Jalal »

Logodata is byte[]

it contains correct data for an image

regards,
jalal
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

add logo to a report

Post by HighAley »

Hello.

We still couldn't reproduce your issue.
Please, send us a sample project to reproduce your issue.

Thank you.
Jalal
Posts: 66
Joined: Sat Oct 09, 2010 4:10 am
Location: Palestine

add logo to a report

Post by Jalal »

Hello,

preview image seems doesn't work in the new version ( it was working fine in the old version ) :

please try the following simple steps :

1) open silverlight designer ( native silverlight )
2) add a variable, type of image : then add any logo from your computer
3) add an image , where image data equal the new variable
4) press preview

----> no image appears !

Regards,
Jalal
Posts: 66
Joined: Sat Oct 09, 2010 4:10 am
Location: Palestine

add logo to a report

Post by Jalal »

Ok , I just prepare a sample.
But can you send me the url where i can submit a new ticket.

Regards,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

add logo to a report

Post by Alex K. »

Hello,

Unfortunately, on the current moment, the parser does not support it. We added this feature in our to-do list. We will try to implement it in the nearest future as fast as possible.

Thank you.
Jalal
Posts: 66
Joined: Sat Oct 09, 2010 4:10 am
Location: Palestine

add logo to a report

Post by Jalal »

Hello,

But was it work fine in the previous version ?
Jalal
Posts: 66
Joined: Sat Oct 09, 2010 4:10 am
Location: Palestine

add logo to a report

Post by Jalal »

It works fine now!

I used dll files version 2011.2 in client and version 2011.3 in server and it works like a magic!!

I hope i can get clear answer about how it works !

Regards,
Jalal
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

add logo to a report

Post by Alex K. »

Hello,

The issue is fixed.
Please check the latest build when it will be available on this week.

Thank you.
Locked