add logo to a report
add logo to a report
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
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
add logo to a report
Hello.
We couldn't reproduce your issue.
What does this code load?
Please, send us a sample project to reproduce your issue.
Thank you.
We couldn't reproduce your issue.
What does this code load?
Code: Select all
new MemoryStream(logodata)
Thank you.
add logo to a report
Logodata is byte[]
it contains correct data for an image
regards,
jalal
it contains correct data for an image
regards,
jalal
add logo to a report
Hello.
We still couldn't reproduce your issue.
Please, send us a sample project to reproduce your issue.
Thank you.
We still couldn't reproduce your issue.
Please, send us a sample project to reproduce your issue.
Thank you.
add logo to a report
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,
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,
add logo to a report
Ok , I just prepare a sample.
But can you send me the url where i can submit a new ticket.
Regards,
But can you send me the url where i can submit a new ticket.
Regards,
add logo to a report
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.
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.
add logo to a report
Hello,
But was it work fine in the previous version ?
But was it work fine in the previous version ?
add logo to a report
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
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
add logo to a report
Hello,
The issue is fixed.
Please check the latest build when it will be available on this week.
Thank you.
The issue is fixed.
Please check the latest build when it will be available on this week.
Thank you.