Report change properties in C/AL

creed666
Member Posts: 21
Hi,
After many search on this forum, i don't find what i'm looking for. I want to be able to change the "Visible" properties on a picture that i put in my report. I want to to this by the code.
IF A = TRUE THEN PICTURE VISIBLE
IF A = FALSE THEN PICTURE INVISIBLE
Someone can tell me how to do that
Thanks !!
After many search on this forum, i don't find what i'm looking for. I want to be able to change the "Visible" properties on a picture that i put in my report. I want to to this by the code.
IF A = TRUE THEN PICTURE VISIBLE
IF A = FALSE THEN PICTURE INVISIBLE
Someone can tell me how to do that
Thanks !!
0
Comments
-
since its for a report, why dont you create another section (like a body or something) of a report with just the picture...so if A is true, then only make that section visible...therefore, when its not true, report will ignore that section... 8)0
-
This is for classic report? usually the source expression is a blob and you need to do calcfields, You can add your code to calcfields or not and the picture will not print.0
-
ara3n wrote:This is for classic report? usually the source expression is a blob and you need to do calcfields, You can add your code to calcfields or not and the picture will not print.0
-
Thanks for the answer.
Is it possible to do that with an Image object or a Picture Box ???0 -
Works great with a picturebox - Did you try it? What have you tried?
It's a simple process. If your "condition to show picture" = true then
calcfields("your picture") else Not! then it will either show or not show.
that's what you said you were looking for:IF A = TRUE THEN PICTURE VISIBLE
IF A = FALSE THEN PICTURE INVISIBLE
if A := ture then calcfields("your picture");
We have also used it to import dynamicly a diff pic per record on a report, example belowIF EXISTS ('I:\'+"Sales Header"."External Document No."+'.BMP') THEN BEGIN CLEAR(ShipSetup."Japanese Address Pic"); ShipSetup."Japanese Address Pic".IMPORT('I:\'+"Sales Header"."External Document No."+'.BMP',FALSE); ShipSetup.CALCFIELDS("Japanese Address Pic"); END ELSE BEGIN CLEAR(ShipSetup."Japanese Address Pic"); END;
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