RTC Report, add Picture to Header

Rom
Member Posts: 64
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
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.
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.
0
Comments
-
if I do not hidden the convert - Textbox, it prints #error, other errormessage i did not get.0
-
already in the cc or only in the rtc0
-
this one i change to bmp, it doesn't work!0
-
Normaly if i do not hide it, I could see the String in the preview!?!?
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 bettter0 -
i'd seen it in other report, i develop.0
-
i tried to repuild the picture box again, with this http://blogs.msdn.com/b/nav/archive/200 ... eport.aspx documention. It doesn't work0
-
Rom wrote:i'd seen it in other report, i develop.0
-
I'm having the same problem with one of my reports at the moment. I've attached some screen shots. Screenshot1 shows my code, screenshot2 shows the error it produces. Very helpful as you can see.
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.0 -
dave c wrote:I'm having the same problem with one of my reports at the moment. I've attached some screen shots. Screenshot1 shows my code, screenshot2 shows the error it produces. Very helpful as you can see.
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 '*'~Rik~
It works as expected... More or Less...0 -
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions