Problem In Print

Discussion in 'Free Source Codes' started by Tarun Kaushik, Jan 20, 2020.

    
  1. Tarun Kaushik

    Tarun Kaushik New Member


    Please check attached image and code.
    [#Line: EI ColumnOne]

    Option : sms EI ColumnOne : @@IsSales

    [!Line : sms EI ColumnOne]

    Add : Right Fields : Before: VCH QtyTitle :E Chassis, E Motor, E BatteryDetail, E BatteryNO, E BatteryCap, E MotoColor
    Local : Field : E Chassis : Info : "Chassis No"
    Local : Field : E Motor : Info : "Motor No"
    Local : Field : E BatteryDetail : Info : "Battery Details"
    Local : Field : E BatteryNO : Info : "Battery No"
    Local : Field : E BatteryCap : Info : "Battery Capacity"
    Local : Field : E MotoColor : Info : "Color"

    [#Line : EI InvInfo]

    Option : sms EI InvInfo : @@IsSales

    [!Line : sms EI InvInfo]

    Add : Right Fields : After : VCH ActualQty : E Chassis, E Motor, E BatteryDetail, E BatteryNO, E BatteryCap, E MotoColor

    [Field : E Chassis]
    Use : Name Field
    Storage : STOChassis
    ;Set as : ""
    Width : 13
    Align : Center

    [Field : E Motor]
    Use : Name Field
    Storage : STOMotor
    ;Set as : ""
    Width : 13
    Align : Center

    [Field : E BatteryDetail]
    Use : Name Field
    Storage : STOBatteryDetail
    ;Set as : ""
    Width : 13
    Align : Center

    [Field : E BatteryNO]
    Use : Name Field
    Storage : STOBatteryNO
    ;Set as : ""
    Width : 13
    Align : Center

    [Field : E BatteryCap]
    Use : Name Field
    Storage : STOBatteryCap
    ;Set as : ""
    Width : 13
    Align : Center

    [Field : E MotoColor]
    Use : Name Field
    Storage : STOMotoColor
    ;Set as : ""
    Width : 13
    Align : Center


    [System : UDF]
    STOChassis : String : 20001
    STOMotor : String : 20002
    STOBatteryDetail : String : 20003
    STOBatteryNO : String : 20004
    STOBatteryCap : String : 20005
    STOMotoColor : String : 20006

    ;========================================================
    ;Style
    ;========================================================
    [Style:BLStyle1]
    Font:"Calibri"
    Height:10
    Bold: Normal


    ;========================================================
    ;Print Section: Title
    ;========================================================
    [#Field: EXPINV AmountTitle];Amount Title
    Width : 10% Page
    ;Align : Right

    [#Field: EXPINV RatePerTitle];Rate Title
    Width : 10% Page
    ;Align : Right

    [#Field : EXPINV HSNSACTitle]

    Info : $$LocaleString:"HSN"
    Width : 5% Page
    [#Field : EXPINV AltQtyTitle]
    Info : $$LocaleString:"Weight"
    Align :Left
    Width : 5% Page

    /*[#Field : EXPINV QtyTitle]
    Use : QtyTitleField
    Info : $$LocaleString:"Pieces"
    Border : Thin Left
    Align : Centre
    Style : Small
    Width : 5% Page*/

    [#Line : EXPINV Column1]
    Local : Field : EXPINV RatePerTitle : Invisible : Yes
    Local : Field : EXPINV QtyTitle : Invisible : Yes
    ;Local : Field : EXPINV QtyTitle : Width : 10% Page

    [#Field : EXPINV RatePer]
    Local : Field : EXPINV RatePer : Invisible : Yes

    [#Line : EXPINV Column1]
    Option : BI EXPINV Column1 : @@IsSales

    [!Line : BI EXPINV Column1]
    ;Add : Left Fields : After : EXPINV DescTitle :E Chassis, E Motor, E BatteryDetail, E BatteryNO, E BatteryCap, E MotoColor
    Add : Right Field : Before: EXPINV HSNSACTitle : E Chassis, E Motor, E BatteryDetail, E BatteryNO, E BatteryCap, E MotoColor

    Local : Field : EXPINV DescTitle: Info : "Model No"
    Local : Field : EXPINV DescTitle: Width : 5% Page
    Local : Field : EXPINV DescTitle: FullWidth : No
    Local : Field : EXPINV DescTitle: Style :"BLStyle1"

    Local : Field : E Chassis : Info : "Chassis No"
    Local : Field : E Chassis : Border : Thin left
    Local : Field : E Chassis : Width : 7% Page
    Local : Field : E Chassis : Delete : Storage
    Local : Field : E Chassis : Type : Number
    Local : Field : E Chassis : Style : Small
    Local : Field : E Chassis : Style :"BLStyle1"

    Local : Field : E Motor : Info : "Motor No"
    Local : Field : E Motor : Border : Thin left
    Local : Field : E Motor : Width : 7% Page
    Local : Field : E Motor : Delete : Storage
    Local : Field : E Motor : Type : Number
    Local : Field : E Motor : Style : "BLStyle1"


    Local : Field : E BatteryDetail : Info : "Battery Details"
    Local : Field : E BatteryDetail : Border : Thin left
    Local : Field : E BatteryDetail : Width : 7% Page
    Local : Field : E BatteryDetail : Delete : Storage
    Local : Field : E BatteryDetail : Type : Number
    Local : Field : E BatteryDetail : Style : "BLStyle1"

    Local : Field : E BatteryNO : Info : "Battery No"
    Local : Field : E BatteryNO : Border : Thin left
    Local : Field : E BatteryNO : Width : 7% Page
    Local : Field : E BatteryNO : Delete : Storage
    Local : Field : E BatteryNO : Type : Number
    Local : Field : E BatteryNO : Style : "BLStyle1"

    Local : Field : E BatteryCap : Info : "Battery Capacity"
    Local : Field : E BatteryCap : Border : Thin left
    Local : Field : E BatteryCap : Width : 7% Page
    Local : Field : E BatteryCap : Delete : Storage
    Local : Field : E BatteryCap : Type : Number
    Local : Field : E BatteryCap : Style : "BLStyle1"

    Local : Field : E MotoColor : Info : "Color"
    Local : Field : E MotoColor : Border : Thin left
    Local : Field : E MotoColor : Width : 7% Page
    Local : Field : E MotoColor : Delete : Storage
    Local : Field : E MotoColor : Type : Number
    Local : Field : E MotoColor : Style : "BLStyle1"

    ;========================================================
    ;Print Section: Detail
    ;========================================================
    [#Line: EXPINV InvDetails]
    Local : Field : EXPINV RatePer : Invisible : Yes
    Local : Field : EXPINV ActualQty : Invisible : Yes
    Local : Field : EXPINV Qty : Invisible : Yes

    [#Field: EXPINV HSNSACDetails]
    Width : 7% Page

    [#Line: EXPINV InvDetails]
    Option : BI EXPINV InvDetails : @@IsSales

    [!Line : BI EXPINV InvDetails]
    ;Add : Left Fields : After : EXPINV Desc :p Chassis, P Motor, P BatteryDetail, P BatteryNO, P BatteryCap, P MotoColor
    Add : Right Field : Before : EXPINV HSNSACDetails : P Chassis, P Motor, P BatteryDetail, P BatteryNO, P BatteryCap, P MotoColor

    [#Field: EXPINV Amount];Amount Section
    Width : 10% Page
    ;Align : Right

    [#Field: EXPINV Rate];Rate Section
    Width : 10% Page
    ;Align : Right


    [#Field: EXPINV Desc]
    FullWidth : No
    Width : 12% Page
    Style :"BLStyle1"

    [Field : P Chassis]
    Full Width : Yes
    Use : Name Field
    Set as : $STOChassis
    Width : 7% Page
    Set Always : Yes
    ;Align : Center
    Format : "NoZero"
    Border :THIN LEFT
    Style :"BLStyle1"

    [Field : P Motor]
    Use : Name Field
    Set as : $STOMotor
    Set Always : Yes
    Width : 7% Page
    ;Align : Center
    Format : "NoZero"
    Border :THIN LEFT
    Style :"BLStyle1"

    [Field : P BatteryDetail]
    Use : Name Field
    Set as : $STOBatteryDetail
    Set Always : Yes
    Width : 7% Page
    ;Align : Center
    Format : "NoZero"
    Border :THIN LEFT
    Style :"BLStyle1"

    [Field : P BatteryNO]
    Use : Name Field
    Set as : $STOBatteryNO
    Set Always : Yes
    Width : 7% Page
    ;Align : Center
    Format : "NoZero"
    Border : THIN LEFT
    Style :"BLStyle1"

    [Field : P BatteryCap]
    Use : Name Field
    Set as : $STOBatteryCap
    Set Always : Yes
    Width : 7% Page
    ;Align : Center
    Format : "NoZero"
    Border : THIN LEFT
    Style :"BLStyle1"

    [Field : P MotoColor]
    Use : Name Field
    Set as : $STOMotoColor
    Set Always : Yes
    Width : 7% Page
    ;Align : Center
    Format : "NoZero"
    Border : THIN LEFT
    Style :"BLStyle1"

    [#Part: EXPINV BasicLeft]
    Width : 5% Page
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      73.7 KB
      Views:
      63


Share This Page