Free Code:- Auto PDF (Ledger,3B,Voucher/Invoice,Daybook)

Discussion in 'Free Source Codes' started by Jay kumar tailor, Sep 17, 2019.

    
  1. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Hi All
    Jay Here...

    Hope You Will Like This Code...

    (You May Change Data Path As Per Requirement.)

    Code:
    
    [Function: ExportjkPDF]
    
    10: SET : SVExportLocation : "D:\Tally Exported Vouchers"
    
    20: SET : SVExportFormat : $$SysName:PDF
    30: Set : SVPrintFileName : $$String:($$Machinedate) +"_"    +$$String:#Ledgername +"_"+$$String:$Vouchertypename +"_"+$$String:$VoucherNumber
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE
    
    
    
    [Function: ExportjkPDF1]
    
    10: SET : SVExportLocation : "D:\Tally Exported Vouchers"
    20: SET : SVExportFormat : $$SysName:PDF
    30: Set : SVPrintFileName : $$String:($$Machinedate)  + "_Gstr 3B_" +#DspmaindateTitle
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE
    
    
    
    [Function: ExportjkPDF2]
    
    10: SET : SVExportLocation : "D:\Tally Exported Vouchers"
    20: SET : SVExportFormat : $$SysName:PDF
    30: Set : SVPrintFileName : $$String:($$Machinedate) + "_"+#DspmaindateTitle
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE
    
    
    [#Form: Voucher]
    Add : Button : jkkpdf
    
    [#Form: Ledger Vouchers]
    Add : Button : jkkpdf
    
    [#Form: Gstr3BTrgl]
    Add : Button : jkkpdf1
    
    [#Form: Daybook]
    Add : Button : jkkpdf2
    
    
    
    [Button: JKKpdf]
    Title: "PDF"
    Key : Ctrl + E
    Action : call:Exportjkpdf
    
    
    [Button: JKKpdf1]
    Title: "PDF"
    Key : Ctrl + F
    Action : call:Exportjkpdf1
    
    [Button: JKKpdf2]
    Title: "PDF"
    Key : Ctrl + F
    Action : call:Exportjkpdf2
    
    
    
    
     


  2. nasir

    nasir Member


    WILL IT WORK IN 9.1.1
     


  3. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Not tested in that...:)
     


  4. nasir

    nasir Member


    I WANT TO FETCH DATA FROM NOTES FROM TALLY LEDGER MASTER CAN U HELP ME
     


  5. nasir

    nasir Member


    Use :NAME Field
    Set as: --------------how can i set ledNotes field in this code plzzzzzz
    Color : White
    Line:3
    Width:90
    Local:Style:DEFAULT:Height:12
    Background:dARK gREEN
    Color : White
     

    Attached Files:



  6. Jay kumar tailor

    Jay kumar tailor Well-Known Member



    First Delete both posts.
    BeCause these posts are off topic.
     


  7. ONKAR

    ONKAR Active Member



    very good sir, perfect working.
     


  8. dkp_jal

    dkp_jal Member


    Dear Jay
    This code Not Exporting INVOICE, showing error "failed to create file".
    In 3B, Ledger, Daybook it work but not working in Invoice.
    Please check...
     


  9. lavneet

    lavneet New Member


    How to send these directly to whatsapp
     


  10. dkp_jal

    dkp_jal Member




    Dear Jay
    This code Not Exporting INVOICE Export, showing error " Function: 'ExportjkPDF' LABEL: 60 : Action Execution failed".
    In GSTR 3B, Ledger, Daybook it work but not working in Invoice Export.
    Please check & Help for correction..
     


  11. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Replace This Line & Try

    60:Export:Voucher:True
     


  12. dkp_jal

    dkp_jal Member


    Please Check after modify above code now :Giving this ERROR

    FUNCTION: 'Vch ResetOverrideFlags' LABEL: 0010 : Invalid Target object (No Target / Not in EditMode)
    FUNCTION: 'Vch ResetOverrideFlags' LABEL: 0010 : Action execution failed!
    FUNCTION: 'VchResetIgnoreGSTIN' LABEL: 0100 : Invalid Target object (No Target / Not in EditMode)
    FUNCTION: 'VchResetIgnoreGSTIN' LABEL: 0100 : Action execution failed!
    FUNCTION: 'Vch ResetOverrideFlags' LABEL: 0010 : Invalid Target object (No Target / Not in EditMode)
    FUNCTION: 'Vch ResetOverrideFlags' LABEL: 0010 : Action execution failed!
    FUNCTION: 'VchResetIgnoreGSTIN' LABEL: 0100 : Invalid Target object (No Target / Not in EditMode)
    FUNCTION: 'VchResetIgnoreGSTIN' LABEL: 0100 : Action execution failed!



    My Code is:

    [Function: ExportjkPDF]

    10: SET : SVExportLocation : "C:\Users\User\Desktop"
    20: SET : SVExportFormat : $$SysName:pDF
    ;30: Set : SVPrintFileName : $$String:$Vouchertypename+"_"+$$String:$vouchernumber
    30: Set : SVPrintFileName : $$String:#Ledgername + "_" + $$String:($$Machinedate) +"_"+$$String:$Vouchertypename +"_"+$$String:$VoucherNumber
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60:Export:Voucher:True


    [Function: ExportjkPDF1]

    10: SET : SVExportLocation : "C:\Users\User\Desktop"
    20: SET : SVExportFormat : $$SysName:pDF
    30: Set : SVPrintFileName : $$String:($$Machinedate) + "_Gstr 3B_" +#DspmaindateTitle
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE



    [Function: ExportjkPDF2]

    10: SET : SVExportLocation : "C:\Users\User\Desktop"
    20: SET : SVExportFormat : $$SysName:pDF
    30: Set : SVPrintFileName : $$String:($$Machinedate) + "_"+#DspmaindateTitle
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE


    [#Form: Voucher]
    Add : Button : jkkpdf

    [#Form: Ledger Vouchers]
    Add : Button : jkkpdf

    [#Form: Gstr3BTrgl]
    Add : Button : jkkpdf1

    [#Form: Daybook]
    Add : Button : jkkpdf2



    [Button: JKKpdf]
    Title: "PDF"
    Key : Ctrl + E
    Action : call:Exportjkpdf


    [Button: JKKpdf1]
    Title: "PDF"
    Key : Ctrl + F
    Action : call:Exportjkpdf1

    [Button: JKKpdf2]
    Title: "PDF"
    Key : Ctrl + F
    Action : call:Exportjkpdf2
     


  13. Jay kumar tailor

    Jay kumar tailor Well-Known Member



  14. scuba

    scuba Member


    how to set default period means complete accounting period frm 1-4-19 to 31-3-20 ( for example) everytime not to click f2 for period selection in ledger
     


  15. 9779845157470

    9779845157470 New Member



    it possible to export jpg format
     


  16. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Yes,

    Change format to:
    Jpeg(Image)
     


  17. 9779845157470

    9779845157470 New Member


    T
    THANK YOU
     


  18. harsh sachdeva

    harsh sachdeva New Member


    Jay Sir Plz tell me how can we change the paper size in this .As in some o/s report A3 size is required .Plz help
     


  19. Mac

    Mac Member


    @Jay kumar tailor , hi
    my concern is that ,
    60:Export:Voucher:True
    this working but only for 1 time after tally restart it does not work.

    please found some solution suggest me.
     
    Last edited: Sep 19, 2020
    Kunal Khandol likes this.


  20. kishan369

    kishan369 New Member


    I WANT TO DO SEND MULTIPLE EMAIL.. FOR VOUCHER BILL COPY
     



  21. Thanks Jay Sir for such a good code and Good Idea.

    I have done a tds which exports voucher in party Name's Folder in export Location with file name as voucher number.

    I have shared some party's folder with their email using google drive. so each party can see only their invoices by just click on Default export button from our side.

    Now I am going to export multiple/selected Vouchers in individual pdf(s)
     


  22. Kunal Khandol

    Kunal Khandol New Member



    Same here
    I also face this same issue
    did you find any solution?

    I am using TallyPrime
     


  23. Systecg

    Systecg Member


    FUNCTION: 'Vch ResetOverrideFlags' LABEL: 0010 : Invalid Target object (No Target / Not in EditMode)
    FUNCTION: 'Vch ResetOverrideFlags' LABEL: 0010 : Action execution failed!

    FUNCTION: 'VchResetIgnoreGSTIN' LABEL: 0100 : Invalid Target object (No Target / Not in EditMode)
    FUNCTION: 'VchResetIgnoreGSTIN' LABEL: 0100 : Action execution failed!
     


Share This Page