increase font size

mrigyamrigya 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

Comments

  • BeliasBelias Member Posts: 2,998
    you can put one textbox above another and manage the visibility (one txt with fontheight 12 and one with fontheight 10 for example)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • garakgarak Member Posts: 3,263
    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.

    Regards
    Do you make it right, it works too!
  • garakgarak Member Posts: 3,263
    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!
  • vanrofivanrofi Member Posts: 272
    Could you be more precise on the need? If it is for a report, you could play with currreport.showoutput?
  • mrigyamrigya Member Posts: 124
    yes, it is a report..how is it possible with CurrReport.Showoutput(false)

    Can u plz give a example,its urgent plz.

    Thanks
    Mrigya
  • garakgarak Member Posts: 3,263
    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!
  • vanrofivanrofi Member Posts: 272
    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.
  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    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 NAV
  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    This is another way of doing the same thing..... O:)

    look for the size of Quantity
    OBJECT 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 NAV
Sign In or Register to comment.