NAV2013 Report - Picture value not being displayed - red x
rsaritzky
Member Posts: 469
Hi,
I know this topic has been discussed before, and I have been successful before in NAV2009 in getting pictures onto reports. I'm trying to add a picture box to the A/P check (stub/check/stub) containing a signature. A new BLOB field in GL Setup has been created and has the bitmap of the signature.
In the OnPreReport Trigger, I'm
I added this field to the Report dataset and named it "GLSetupCheckSig".
Then, as documented in other "how-to's" on this topic, I created an image box in the report layout with a value of
=Convert.ToBase64String(Fields!GLSetupCheckSig.Value)
I've named this control "CheckSignatureHeaderBox".
Then I added text box using the "SetPicture" function:
=Code.SetPicture(ReportItems!CheckSignatureHeaderBox.Value)
Finally, another image control with the value in the report footer where I want the signature:
=Convert.FromBase64String(Code.GetPicture())
During testing, I have made all boxes visible.
The first image control ("CheckSignatureHeaderBox") shows with the "infamous" red X. And of course the signature doesn't display either.
I enabled report preview and looked at the dataset. The signature field shows up as "<>" (which I believe is blank/null) instead of "*" (which I believe means "some value")

Has anyone seen this problem? Any ideas?
Thanks
I know this topic has been discussed before, and I have been successful before in NAV2009 in getting pictures onto reports. I'm trying to add a picture box to the A/P check (stub/check/stub) containing a signature. A new BLOB field in GL Setup has been created and has the bitmap of the signature.
In the OnPreReport Trigger, I'm
GLSetup.GET;
GLSetup.CALCFIELDS("Check Signature");
I added this field to the Report dataset and named it "GLSetupCheckSig".
Then, as documented in other "how-to's" on this topic, I created an image box in the report layout with a value of
=Convert.ToBase64String(Fields!GLSetupCheckSig.Value)
I've named this control "CheckSignatureHeaderBox".
Then I added text box using the "SetPicture" function:
=Code.SetPicture(ReportItems!CheckSignatureHeaderBox.Value)
Finally, another image control with the value in the report footer where I want the signature:
=Convert.FromBase64String(Code.GetPicture())
During testing, I have made all boxes visible.
The first image control ("CheckSignatureHeaderBox") shows with the "infamous" red X. And of course the signature doesn't display either.
I enabled report preview and looked at the dataset. The signature field shows up as "<>" (which I believe is blank/null) instead of "*" (which I believe means "some value")

Has anyone seen this problem? Any ideas?
Thanks
Ron
0
Comments
-
In this case I would not focus on report layout, since from the dataset it's clear, as you said, that the field always comes empty.
1) Is there effectively a bitmap loaded in the General Ledger Setup table?
2) Is there is any CLEAR of GLSetup variable somewhere?
3) Can you ensure that the field in the dataset has been added in the same data item of, for instance, "DocNo" field?* Daniele Rebussi * | * Rebu NAV Diary *0 -
Thanks for the reply. I came to the same conclusion that the problem was in the report code, not in the report design. As I mentioned, the CALCFIELDS on the signature BLOB field wasn't returning any value to the dataset. I checked the code and it wasn't being cleared or re-read or anything - at least not where I could find it. But I created a second record variable anyway and read the same setup record a second (separate) time and this time, it worked. So problem solved. Once the dataset sent data to the report, the actual manipulation of the image controls worked fine. Can't really understand why, but it is working at least. Thx again.Ron0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
