Auto Export Pdf Invoice At Desired Location

Discussion in 'Free Source Codes' started by Jay kumar tailor, Sep 8, 2018.

    
  1. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    10: SET : SVExportLocation : "D:\Tally Exported Vouchers"
    20: SET : SVExportFormat : $$SysName:pDF
    30: Set : SVPrintFileName : $$String:$Vouchertypename+"_"+$$String:$vouchernumber
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE
     
    Last edited: Sep 23, 2018
    mukesh1984 and bharat shah like this.


  2. nasir

    nasir Member


    NOT WORKING IN 9.1.1
     


  3. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    please use Tallyerp.9 Latest Version
     


  4. ASHOK

    ASHOK Member


    sir ji
    my problam is new ver.6.4.7 me erar
    i attach the file please solve the problam
     

    Attached Files:



  5. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    as per your screenshot

    problem is in coustom invoice TDL
     

    Attached Files:



  6. Rohit Rathi

    Rohit Rathi New Member


    Hi Jay Kumar,

    Thanks for TDL.

    My problem is I have two thing printing after saving the Sales Invoice, one is the invoice & second is the gatepass. After printing both of these, first the invoice is saved as pdf but then it replaces the saved invoice with gatepass & ultimately only gatepass is getting saved. I want only invoice to be saved as pdf.

    Please help me with the code.

    Thanks ,
    Rohit Rathi
     


  7. Jenny

    Jenny Active Member


    Not working in erp9 release 6.3.1
     


  8. sivam

    sivam Active Member



    What error u facing. Post your error here
     


  9. Jenny

    Jenny Active Member


    not error but its not showing my desire location
     


  10. Jenny

    Jenny Active Member


    Can you tell me this code..why slash not remove ? in my voucher number i use this type (XXXX/18-19/0001)

    [#Field: DSP ExportFileName]
    Color : Blue
    Width : 50
    Set as : $$MakeExportName:mad:@xExportFileName:#DSPExportFormat


    [System: Formula]
    xExportFileName : $$StringWordEx:mad:@xExportFileName1:"/":First + @@yExportFileName
    xExportFileName1 : $$RemoveSlash:#ReportTitle
    yExportFileName : $$String:$VoucherNumber+ " " +$$String:$MMSalesmanName
     


  11. sivam

    sivam Active Member



    First you should be clear on your Query. This Post is Auto Export PDF Concept.

    You are tying to edit a Default Field.

    Try This Way


    [*Field: DSP ExportFileName]

    Use : Name Field
    Case : Normal
    Set as : $$MakeExportName:mad:L1:#DSPExportFormat
    L1 : $VoucherTypeName + "_" + $VoucherNumber
    Setalways : Yes
     


  12. drive

    drive Active Member


    ;Use This function Remove slash from Voucher Number
    ;;===================================================================;;
    ; Function For Remove "/" Slash
    ;;===================================================================;;
    [Function: Fun00RemoveSlash]
    PARAMETER : pString : String
    RETURNS : String
    VARIABLE : vChar : String: ""
    VARIABLE : vResult : String: ""
    VARIABLE : vCount : Number: $$StringLength:##pString
    VARIABLE : vCounter : Number: 0

    ;;parsing through each character of the string and concatinating to the resultant string if is not the colon
    005 : While : ##vCounter <= ##vCount
    010 : Set : vChar : $$StringPart:##pString:##vCounter:1
    012 : Do If : ##vChar != "/" And ##vChar != ":" And ##vChar != ">" And ##vChar != "<" : SET : vResult : ##vResult + ##vChar
    016 : Do If : ##vChar = "/" : Set : vResult : ##vResult + ""
    017 : Do If : ##vChar = ":" : Set : vResult : ##vResult + "_"
    018 : Do If : ##vChar = ">" : Set : vResult : ##vResult + "_"
    019 : Do If : ##vChar = "<" : Set : vResult : ##vResult + "_"
    020 : Increment: vCounter
    025 : End While
    030 : Return : ##vResult
     


  13. Devendra_Rawat

    Devendra_Rawat Well-Known Member





    Do you have any idea .. How to update existing xml data file through TDL, apart from write text method
     


  14. torsky

    torsky New Member


    This is working but in log it says FUNCTION: 'Export' LABEL: 60 : Action execution failed! Why is it?
     


  15. love

    love Member


    Can we export in JPEG format , i tried but exported file is coming out in .PRN not in Jpeg
     


  16. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Try
    Jpeg(image)
     


  17. love

    love Member


    tnx, jay sir
    it worked
     


  18. tmdmuzammil

    tmdmuzammil New Member


    Sir as i tried but generating folders under folders then file in my voucher number use this type (XXXX/ABC/20-21)
    getting folder under folder XXXX again folder ABC then file name is getting 20-21_ABC

    Please let me know what to do to export single file name.

    10: SET : SVExportLocation : "D:\Tally Exported Vouchers"
    20: SET : SVExportFormat : $$SysName:pDF
    30: Set : SVPrintFileName : $$String:$vouchernumber+"_"+$Vouchertypename+"_"+$$String:$Ledgername
    40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName
    60: EXPORT REPORT : . : TRUE
     


  19. transparent

    transparent New Member


    This may be used to replace slash by _
    $$StringFindAndReplace:($$String:$vouchernumber):"/":"_"
     


  20. gangstar

    gangstar Member


    Sir i need to export default invoice and packing slip
     

    Attached Files:



  21. gangstar

    gangstar Member


    Guide me how to solve this problem Sir?
     


  22. gangstar

    gangstar Member


    Finally Solved my problem
     



  23. Getting the error T0027 Attribute definition Started without a Valid Description..

    If you suggested how it might help others solve the problem to..
     


  24. gangstar

    gangstar Member


    Remove
    Include file name Sir
     


  25. bhaveshroy

    bhaveshroy New Member


    Need TDL to give voucher number as file name when exporting voucher to pdf.
     
    Saptarshi likes this.


Share This Page