Full Width Not respected in Preprinted Invoice

Discussion in 'Tally Developer' started by Jayadev U, Jun 3, 2014.

    
  1. Jayadev U

    Jayadev U New Member


    Hi,

    I had yesterday posted a problem wherein I had stated that Full Width is not respected, Since the Title was not properly phrased, I am reposting:

    In the following code, full with : yes is not respected, Tally prints at locations other than expected.

    Using Pre-printed stationery on Dot Matrix Printer. Kindly help.

    Code:
        [Part: SE Invoice InvDet]
     
            Lines    : SE Invoice InvNo, SE Invoice InvDt, SE Invoice ChallanNo,SE Invoice ChallanDt    ;;SE Invoice InvTerms, SE Invoice DueDt, +
                        ;;SE Invoice ShipDt, SE Invoice ShipVia SE Invoice InvDt,, SEInvoiceChallanDate,
     
            [Line: SE Invoice InvNo]
     
                right fields : Name Field
                ;;Local    : Field        : Medium Prompt    : Set as    : "Inv No"
                Local    : Field        : Name Field    : Set as    : $VoucherNumber
                Local    : Field        : Name Field    : Space Left: 3.5 cms
            [Line: SE Invoice InvDt]
                        Space Top  : 1 cms
                Right Fields: Name Field
                Local    : Field        : Name Field    : Set as    : $date
                Local    : Field        : Name Field    : Space Left: 3.5 cms
     
            [Line: SE Invoice ChallanNo]
                        Space Top  : 1 cms
                Right Fields: Name Field
                Local    : Field        : Name Field    : Set as    : $VoucherNumber
                Local    : Field        : Name Field    : Space Left: 3.5 cms
           
     
            [Line: SE Invoice ChallanDt]
                        Space Top  : 1 cms
                Right Fields : Name Field
                local : Field : Name Field : Set as : $BasicShipDeliveryNote
                ;;local : Field : Name Field : Set as : $BasicShippingDate
     
       
    [Part: SE Invoice Body]
       
        Parts : GI InventoryDetails, GI Acc Det
        Vertical: Yes
        Scroll : Vertical
        Space Top : 1.6 cms
        Height : 20 cms
     
     
        [Part : GI InventoryDetails]   
            Lines            : GI Inventory Details
            Repeat            : GI Inventory Details    : Inventory Entries
            Scroll            : Vertical
            ;;Border            : Thin Left Right Bottom
            ;;Common Borders    : Yes
     
            [Line: GI Inventory Details]
     
                Fields        : GI SI No, GI Item Name
                Right Fields: GI Qty, GI Unit, GI Rate, GI PerUnit, GI Amount
                Space Top    : if $$Line = 1 then 1 else 0
     
            [Field: GI SI No]
     
                Use            : Number Field   
                Set as        : $$Line
                Width : 1.2 cms
                Align: Left
               
                ;;Border        : Thin Right
     
            [Field: GI Item Name]
     
                Use            : Name Field
                Set as        : if NOT $$IsSysName:$StockItemName then @@InvItemName else ""
                Full Width    : Yes
                Width : 14.2 cms ;12 cms
     
            [Field: GI Qty]
     
                Use            : Qty Primary Field
                Set as        : $BilledQty
                Width      : 17.6 cms ;3.4
                Space Left  : 0.2 cms
                Format      : if @@IsSales then "No symbol" else "Symbol"
                Align      :Right
                Full Width    : Yes
                ;;Border        : Thin Left
               
            [Field: GI Unit]
                Use        : Rate Units Field
                Set as      : $Rate
                Width      : 1.2cms
                Space Left  : 0.1 cms
                    Align  : Right
                Full Width    : Yes
               
     
            [Field: GI Rate]
     
                Use            : Rate Price Field ;;Rate Field
                ;;Border        : Thin Left
                Set as        : $Rate
                Width      : 2.5 cms
                Align      : Right
                Full Width    : Yes
               
                ;;space left  : 1 cms
     
            [Field: GI PerUnit]
                use :GI unit
                Width      : 1.2cms
                Space Left  : 0.1 cms
                    Align  : Right
                Full Width    : Yes
                   
           
            [Field: GI Amount]
     
                Use            : Amount Forex Field
                ;;Border        : Thin Left
                Set as        : $Amount
                Width      : 3.7 cms
                Space Left  : 0.3 cms
                align      : Right
                Full Width    : Yes
               
     
        [Part: GI Acc Det]
            Invisible : @@IsDelNote
            Lines            : GI Inventory Total, GI Acc Det
            Repeat            : GI Acc Det    : Ledger Entries
    ;;        Height            : 10% Page
    ;;        Common Borders    : Yes
     
     
            [Line: GI Inventory Total]
                space top : 1 cms
                Empty : @@IsDelNote
                Right Fields: GI IRate, GI IAmount
                [Field: GI IRate]
                    Set as: if @@IsSales then "Taxable Amount:" else ""
                    Full width : yes
                    Width : 10 cms
                    Align : Right
                Full Width    : Yes
                   
                [Field: GI IAmount]
                    Invisible : @@IsDelNote
                    Set as: if @@IsSales then $$CollAmtTotal:InventoryEntries:$Amount else ""
                    Style    : Normal Bold
                    Border  : Thin Top
                    Width : 3.5 cms
                    Align : Right
                Full Width    : Yes
     
            [Line: GI Acc Det]
                Space Top: 1 cms
                Empty : $LedgerName = $PartyLedgerName or @@IsDelNote
                Right Fields: GI ARate, GI AAmount
                [Field : GI ARate]
                    Set as : $LedgerName+":"
                    Full Width : Yes
                    Width : 8 cms
                    Align : Right
                Full Width    : Yes
                [Field : GI AAmount]
                    Set as : $Amount
                    Width : 3.5 cms
                    ;;Border: Thin top
                    Align : Right
            Invisible : @IsDelNote
                Full Width    : Yes
    
    Warm regards,
    Jayadev
     


  2. sivam

    sivam Active Member


    Dear Jayadev U

    Why u use Fullwidth in Field Level. TDL Always respect ur codes.

    U try in Form Level....
     


Share This Page