Hi,
i have a problem with my report, which i create from the scratch.
I'd like to add the company picture. But i do not like to use the embedded version. I did it, like it is done in the Standard report 206.
In Classic Client I already see the company picture, so i guess the calcfields for the picture should work. The set and get method i copied from the report 206. The Datasetfieldname is also correct, because i'd used the Dataset Result to add it the value expression.
In list of the body I added on the top the textbox/table for the conversion of the field with this value
=Convert.ToBase64String(Fields!CompanyInfo_Picture.Value)
. On the top of the header I added the set method as a textbox with the following value
=Code.SetPicture(ReportItems!CompanyInfo_Picture.Value,1)
. The picturebox itself has this value
=Convert.FromBase64String(Code.GetPicture(1))
My problem now is, that "=Convert.ToBase64String(Fields!CompanyInfo_Picture.Value)" returns an error, but have no idea why? Normaly if i do not hide it, I could see the String in the preview!?!?
Does anybody have an idea, what I did wrong?
Thanks in advance!
Martin
PM: I added I screenshot from the VS.
Comments
You must hide it, otherwise the report gets crazy!
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I tried it hidden and not hidden.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
did you check the "about this report" in order to see if the picture field is evaluated when you're printing it?
edit: Yes mohana, your suggestion is the bettter
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Screenshot3 shows the output of the same code on another report. I'm trying to show the company logo in both reports using the same code in the classic client and the image show fine in the classic client in both reports. Without a better error I'm not really sure how to continue.
What is the value of the Picture Field in the About This Report?
the right value is '*'
It works as expected... More or Less...