Images/Logo Error - RTC

krithika
Member Posts: 56
I tried to add database image(company Information -logo) to RTC.
Steps Done:
Added Image picture box with src exp =Companyinfo.Picture.
Wrote Codings in Pre dataitem as Companyinfo.GET; CompanyInfo.CALCFIELDS(Picture);
Then added a text box in the Body of RTC and set the property as:
Value: “=Convert.ToBase64String(Fields!CompanyInfo_Picture.Value)”
Name: “CompanyPicture”
Visibility Hidden: “True”
Color: “Red”
Codings written in Report property as:
Shared PictureData as Object
Public Function GetPicture() as Object
Return PictureData
End Function
Public Function SetPicture(NewData as Object)
if NewData>""
PictureData = NewData
end if
End Function
Later kept image box in the header page of RTC with the following properties:
Value: “=Convert.FromBase64String(Code.GetPicture())”
Source: “Database”
MIMEType: “image/bmp”
Finally added a text box above the image box control with the properties:
Value: “=Code.SetPicture(ReportItems!CompanyPicture.Value)”
Visibility Hidden: “True”
Color: “Red
Apart from that Name property is set as image2 bcoz i have already kept an embedded image.
When I compile the report it throws the error as
"Error while validating ,the value for image 2 should not be constant and should be binary".
How to resolve this issue :?
Steps Done:
Added Image picture box with src exp =Companyinfo.Picture.
Wrote Codings in Pre dataitem as Companyinfo.GET; CompanyInfo.CALCFIELDS(Picture);
Then added a text box in the Body of RTC and set the property as:
Value: “=Convert.ToBase64String(Fields!CompanyInfo_Picture.Value)”
Name: “CompanyPicture”
Visibility Hidden: “True”
Color: “Red”
Codings written in Report property as:
Shared PictureData as Object
Public Function GetPicture() as Object
Return PictureData
End Function
Public Function SetPicture(NewData as Object)
if NewData>""
PictureData = NewData
end if
End Function
Later kept image box in the header page of RTC with the following properties:
Value: “=Convert.FromBase64String(Code.GetPicture())”
Source: “Database”
MIMEType: “image/bmp”
Finally added a text box above the image box control with the properties:
Value: “=Code.SetPicture(ReportItems!CompanyPicture.Value)”
Visibility Hidden: “True”
Color: “Red
Apart from that Name property is set as image2 bcoz i have already kept an embedded image.
When I compile the report it throws the error as
"Error while validating ,the value for image 2 should not be constant and should be binary".
How to resolve this issue :?
0
Comments
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