increase font size

mrigya
Member Posts: 124
Hi All,
Please tell me how can i increase the font size of the text type variable
after condition sets to true.
like IF (condition) then
......code to increase the font size.
Thanks
Mrigya
Please tell me how can i increase the font size of the text type variable
after condition sets to true.
like IF (condition) then
......code to increase the font size.
Thanks
Mrigya
0
Comments
-
Increasing the textsize by runtime is not possible.
You can only change the colour, make it bold or "Blue" (select).
Also possible u put a other textbox over yours (change visibility). But this is ](*,) in "Table Boxes" and with normal textboxes.
Take a look behind the AfterFormat Funktions of your Textbox. To see these functions, use the C/AL Symbol Menu (F5) in Design mode.
RegardsDo you make it right, it works too!0 -
don't forgett. NAV is not a full development tool like Vusial Studio. NAV is "only" an ERP wich you can customize ......Do you make it right, it works too!0
-
Could you be more precise on the need? If it is for a report, you could play with currreport.showoutput?0
-
yes, it is a report..how is it possible with CurrReport.Showoutput(false)
Can u plz give a example,its urgent plz.
Thanks
Mrigya0 -
he mean that you have different sections for the different font size.
But why do you need to increase the size of the text :?:Do you make it right, it works too!0 -
indeed.
You have 2 similar sections but one with fontsize 10 and the other 12.
On the on-presection-trigger of both sections you add code like :
currreport.showoutput (condition);
you can combine some conditions if needed, check it out with the standard order confirmation or invoice report with the Line sections. If you go and see the code behind you'll see how it is managed.0 -
Hi Mrigya,
Just have a look on this test report.... this is what you are being suggested. I hope the example helps you... O:)OBJECT Report 99887 Font size { OBJECT-PROPERTIES { Date=01/26/08; Time=[ 4:39:24 PM]; Modified=Yes; Version List=; } PROPERTIES { } DATAITEMS { { PROPERTIES { DataItemTable=Table32; DataItemTableView=SORTING(Entry No.); } SECTIONS { { PROPERTIES { SectionType=Header; PrintOnEveryPage=Yes; SectionWidth=18150; SectionHeight=1692; } CONTROLS { { 1102753001;Label ;0 ;0 ;7500 ;423 ;FontSize=8; FontBold=Yes; CaptionML=ENU=Item Ledger Entry } { 1102753002;TextBox;15000;0 ;3150 ;423 ;HorzAlign=Right; SourceExpr=FORMAT(TODAY,0,4) } { 1102753003;TextBox;0 ;423 ;7500 ;423 ;SourceExpr=COMPANYNAME } { 1102753004;TextBox;17700;423 ;450 ;423 ;CaptionML=ENU=Page; SourceExpr=CurrReport.PAGENO } { 1102753005;Label ;16950;423 ;750 ;423 ;ParentControl=1102753004 } { 1102753006;TextBox;15900;846 ;2250 ;423 ;HorzAlign=Right; SourceExpr=USERID } } } { PROPERTIES { SectionType=Header; PrintOnEveryPage=Yes; SectionWidth=18150; SectionHeight=1269; } CONTROLS { { 1102753009;Label ;0 ;0 ;300 ;846 ;ParentControl=1102753008; VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } { 1102753012;Label ;450 ;0 ;1500 ;846 ;ParentControl=1102753011; VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } { 1102753015;Label ;2100 ;0 ;4500 ;846 ;ParentControl=1102753014; VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } { 1102753018;Label ;6750 ;0 ;1500 ;846 ;ParentControl=1102753017; VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } { 1102753021;Label ;8400 ;0 ;1800 ;846 ;ParentControl=1102753020; VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } } } { PROPERTIES { SectionType=Body; SectionWidth=18150; SectionHeight=423; OnPreSection=BEGIN CurrReport.SHOWOUTPUT(NOT(Quantity > 0)); END; } CONTROLS { { 1102753000;TextBox;0 ;0 ;300 ;423 ;HorzAlign=Left; SourceExpr="Entry Type" } { 1102753007;TextBox;450 ;0 ;1500 ;423 ;HorzAlign=Left; SourceExpr="Item No." } { 1102753010;TextBox;2100 ;0 ;4500 ;423 ;HorzAlign=Left; SourceExpr=Description } { 1102753013;TextBox;6750 ;0 ;1500 ;423 ;HorzAlign=Left; SourceExpr="Document No." } { 1102753016;TextBox;8400 ;0 ;1800 ;423 ;HorzAlign=Right; SourceExpr=Quantity } } } { PROPERTIES { SectionType=Body; SectionWidth=18150; SectionHeight=423; OnPreSection=BEGIN CurrReport.SHOWOUTPUT(Quantity > 0); END; } CONTROLS { { 1102753008;TextBox;0 ;0 ;300 ;423 ;HorzAlign=Left; FontSize=9; SourceExpr="Entry Type" } { 1102753011;TextBox;450 ;0 ;1500 ;423 ;HorzAlign=Left; FontSize=9; SourceExpr="Item No." } { 1102753014;TextBox;2100 ;0 ;4500 ;423 ;HorzAlign=Left; FontSize=9; SourceExpr=Description } { 1102753017;TextBox;6750 ;0 ;1500 ;423 ;HorzAlign=Left; FontSize=9; SourceExpr="Document No." } { 1102753020;TextBox;8400 ;0 ;1800 ;423 ;HorzAlign=Right; FontSize=9; SourceExpr=Quantity } } } } } } REQUESTFORM { PROPERTIES { Width=9020; Height=3410; } CONTROLS { } } CODE { BEGIN END. } }
Sandeep Prajapati
Technical Consultant, MS Dynamics NAV0 -
This is another way of doing the same thing..... O:)
look for the size of QuantityOBJECT Report 99889 Font size1 { OBJECT-PROPERTIES { Date=03/26/08; Time=[ 5:01:03 PM]; Modified=Yes; Version List=; } PROPERTIES { } DATAITEMS { { PROPERTIES { DataItemTable=Table32; DataItemTableView=SORTING(Entry No.); OnAfterGetRecord=BEGIN Qty_7 := FORMAT(Quantity); Qty_10 := FORMAT(Quantity); END; } SECTIONS { { PROPERTIES { SectionType=Header; PrintOnEveryPage=Yes; SectionWidth=18150; SectionHeight=1692; } CONTROLS { { 1102753001;Label ;0 ;0 ;7500 ;423 ;FontSize=8; FontBold=Yes; CaptionML=ENU=Item Ledger Entry } { 1102753002;TextBox;15000;0 ;3150 ;423 ;HorzAlign=Right; SourceExpr=FORMAT(TODAY,0,4) } { 1102753003;TextBox;0 ;423 ;7500 ;423 ;SourceExpr=COMPANYNAME } { 1102753004;TextBox;17700;423 ;450 ;423 ;CaptionML=ENU=Page; SourceExpr=CurrReport.PAGENO } { 1102753005;Label ;16950;423 ;750 ;423 ;ParentControl=1102753004 } { 1102753006;TextBox;15900;846 ;2250 ;423 ;HorzAlign=Right; SourceExpr=USERID } } } { PROPERTIES { SectionType=Header; PrintOnEveryPage=Yes; SectionWidth=18150; SectionHeight=1269; } CONTROLS { { 1102753009;Label ;0 ;0 ;1200 ;846 ;VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } { 1102753012;Label ;2400 ;0 ;1500 ;846 ;VertAlign=Bottom; FontBold=Yes; MultiLine=Yes; CaptionML=ENU=Item No. } { 1102753015;Label ;4050 ;0 ;4500 ;846 ;VertAlign=Bottom; FontBold=Yes; MultiLine=Yes; CaptionML=ENU=Description } { 1102753018;Label ;8700 ;0 ;1500 ;846 ;VertAlign=Bottom; FontBold=Yes; MultiLine=Yes } { 1102753021;Label ;10350;0 ;1800 ;846 ;ParentControl=1102753020; VertAlign=Bottom; FontBold=Yes; MultiLine=Yes; CaptionML=ENU=Quantity } } } { PROPERTIES { SectionType=Body; SectionWidth=18150; SectionHeight=473; OnPreSection=BEGIN IF (Quantity > 0) THEN Qty_7 := '' ELSE Qty_10 := ''; END; } CONTROLS { { 1102753000;TextBox;0 ;0 ;1800 ;423 ;HorzAlign=Left; SourceExpr="Entry Type" } { 1102753007;TextBox;2400 ;0 ;1500 ;423 ;HorzAlign=Left; SourceExpr="Item No." } { 1102753010;TextBox;4050 ;0 ;4500 ;423 ;HorzAlign=Left; SourceExpr=Description } { 1102753013;TextBox;8700 ;0 ;1500 ;423 ;HorzAlign=Left; SourceExpr="Document No." } { 1102753016;TextBox;10350;0 ;1800 ;423 ;Name=Qty_size7; HorzAlign=Right; SourceExpr=Qty_7 } { 1102753020;TextBox;10350;0 ;1800 ;423 ;Name=Qty_size10; HorzAlign=Right; FontSize=10; SourceExpr=Qty_10 } { 1102753008;Shape ;0 ;423 ;18150;50 ;ShapeStyle=HorzLine } } } } } } REQUESTFORM { PROPERTIES { Width=9020; Height=3410; } CONTROLS { } } CODE { VAR Qty_10@1102753000 : Text[30]; Qty_7@1102753001 : Text[30]; BEGIN END. } }
Sandeep Prajapati
Technical Consultant, MS Dynamics NAV0
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