Is it possible to specify the number of copies to be printed while printing a Report?

Discussion in 'Knowledge Base' started by admin, May 17, 2013.

  1. admin

    admin Administrator Staff Member


    Environment Variable SVPrintCopies is used to denote the number of copies to be printed. This can be preset at the Report Level using the Report Attribute Print Set.

    Example:

    [#Report : Printed Invoice]

    Print Set : SVPrintCopies : 3

    The report Printed Invoice will be printed thrice.
     
    Mahesh Sethi likes this.


  2. sourav chauhan

    sourav chauhan New Member


    will you please send me code, hot to set a number of printed copies in sales invoice
     



  3. in print settings we can set the number of copies
     


  4. dhiraj

    dhiraj New Member


    [#Report : Printed Invoice]
    Print Set : SVPrintCopies : 3

    working fine
     


  5. Saurabh

    Saurabh Member


    can we prefix discount in the ledger while creating party ledger sundry debtors..?
     


  6. Karthick MS

    Karthick MS New Member


    Is it possible to set Page Number from First Page ?
    Example : If i print a invoice with 4 pages, First page should show 1 of 4, 2nd page 2 of 4, 3rd page 3 of 4 & Last page 4 of 4.
     
    pravin bhau likes this.


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It is possible if you add your code instead of the default page number setting.
     


  8. Karthick MS

    Karthick MS New Member


    Sorry. I cannot understand. Can you explain clearly or please assist me how to achieve it.
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Wot i meant was the default code will print "Page 1" and not Page 1/4 ....

    since you want to utilize the later format..... then you need to do your own coding, which replaces the default Tally Code on Page No. format.
     


  10. Karthick MS

    Karthick MS New Member



    Oh ok. But i dont have idea to capture last page number in first page. Can you assist me?
     


  11. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Let me check and get back to you......
     


  12. pravin bhau

    pravin bhau New Member


    [#Part: VTYP BehaviourMain]

    Add : Line : CustINVPrintYes, CustINVPrint

    [Line : CustINVPrintYes]

    ;Invisible: Not $CustomizationFeaturesF1:Company:##SVCurrentCompany
    Field : Long Prompt, CustINVPrintYes
    Local : Field : Default : Inactive : Not $$isSales:$Parent
    Local : Field : Long Prompt : Set As : "Enable Multi Invice Copies?"
    Local : Field : Long Prompt : Full Width : Yes
    Local : Field : Long Prompt : Color : Blue

    [Field : CustINVPrintYes]

    Use : Logical Field
    Storage : CustINVPrintYes
    set as : $CustINVPrintYes
    Color : Blue


    [Line : CustINVPrint]

    ;Invisible: Not $CustomizationFeaturesF1:Company:##SVCurrentCompany
    Field : Long Prompt, CustINVPrint
    Local : Field : Default : Inactive : Not $CustINVPrintYes
    Local : Field : Long Prompt : Set As : "Invice Copies?"
    Local : Field : Long Prompt : Space Left : 10 mms
    Local : Field : Long Prompt : Full Width : Yes
    Local : Field : Long Prompt : Color : Blue



    [Field : CustINVPrint]

    Use : Number Field
    Storage : CustINVPrint
    set as : $CustINVPrint
    Color : Blue

    [system : udf]

    CustINVPrint : Number : 6561
    CustINVPrintYes : Logical : 6562


    [SYSTEM : Formula]

    CustINVPrintYes : $CustINVPrintYes:VoucherType:$VoucherTypeName
    CustINVPrint : $CustINVPrint:VoucherType:$VoucherTypeName


    [#Report: GST Printed Invoice]
    ;
    ;Add : Option : CustINVPrintRep : @@CustINVPrintYes AND @@IsSales
    ;
    ;[!Report : CustINVPrintRep]
    ; Delete : Print Set
    Add : Print Set : SVPrintCopies : @@GPr

    [System : Formulae]

    GPr : if @@CustINVPrintYes then @@CustINVPrint Else @@GSTInvCopies
     


  13. Ketanpat

    Ketanpat New Member


    Working fine, Good coding.
     
    pravin bhau likes this.


  14. Ketanpat

    Ketanpat New Member


    Can we give different Title other than Tax Invoice to last copy?
     


  15. Grace K

    Grace K New Member


    Were you able to implement this? I have the exact same problem, and no idea how to fix it
     
    pravin bhau likes this.


  16. Karthick MS

    Karthick MS New Member


    I want to print the information in CLBreak Part and Bottom Part, While Printing Transactions.
     


  17. Karthick MS

    Karthick MS New Member


    This is not related this query/issue.

    Kindly give me some suggestion to print the last page number in first page.
     
    pravin bhau likes this.


  18. Karthick MS

    Karthick MS New Member


    Still i'm waiting for your assistance.
     


  19. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Not possible in the conventional way.........
     


  20. pravin bhau

    pravin bhau New Member


    please find my above code....
     


  21. pravin bhau

    pravin bhau New Member


    You can get a solution by "if Else "
    Ex. If you Want to print 4 Copies...Then your First Page No. Should Be Printed...OK
    Then You have to write

    if "Original" Then "1"
    else if "Duplicate" Then "2"
    else if "Triplicate" Then "3"
    else if "Extra Copy" Then "4"
    else "5"
     


  22. Karthick MS

    Karthick MS New Member


    Hi !
    Greetings !!

    I'm not asking about the copies. Im asking about last page number.
     


  23. Mohibur

    Mohibur New Member


    Only invoice Not Gst Print
    [#Report:?]
     


  24. pravin bhau

    pravin bhau New Member


    Same Code am Writing for Receipt and Stock Journal....But it is not Working...Can any one Solved This?
     


  25. pravin bhau

    pravin bhau New Member


    Sir..What is the name of "#Report" for Receipt Voucher and Stock Journal for Set Print Copies?
     


Share This Page