Print Count

Discussion in 'Tally Developer' started by Rajesh Maharjan, Jun 25, 2015.

    
  1. Rajesh Maharjan

    Rajesh Maharjan New Member


    I need to count how many times this sales bill is being printed.. from Create Alter and display mode too.
     


  2. admin

    admin Administrator Staff Member


    Rajesh,

    You can try using TDL new Actions- > After Print and Before Print...

    Create a new field in sales voucher
    Using After Print action , you can update a field .

    For usage of After Print action, refer TDL Developer sample codes :)
     


  3. Rajesh Maharjan

    Rajesh Maharjan New Member


    I tried but i get into. Sorry till now i have not just print action and function.

    [System : UDF]
    uPrintTimes : Number : 801

    [#Part: EI BaseInfo]
    [#Line: EI Consignee]
    Add : Field : After : INVMailName : EI NoofTimes
    [Field : EI NoofTimes]
    Use : Number Field
    Storage : uPrintTimes
    Align : Right
    Set always : Yes

    [#Report: Printed Invoice]

    On : After Print : Yes : Call : UpdateTimes


    [Function: UpdateTimes]

    40 : SET VALUE : uPrintTimes : $uPrintTimes + 1
    41 : SAVE TARGET
     


  4. Shamsher Singh

    Shamsher Singh New Member


    I also have same problem, getting error "Invalid Target Object (No Target / Not in EditMode)" "Action execution failed"

    Kindly help us and give us an idea to do it.
     


  5. Shamsher Singh

    Shamsher Singh New Member


     


  6. Rajesh Maharjan

    Rajesh Maharjan New Member


    Thank You,
    So much.
     


  7. sivam

    sivam Active Member



    Your function is correct. But where is Object Name, Object ID.? Add these two and try. It wll work..!
     


Share This Page