Upload File name in not working...when uploading invoice in FTP Server

Discussion in 'Tally Developer' started by Neeru, Nov 1, 2019.

    
Tags:
  1. Neeru

    Neeru Active Member


    Hi I want to upload invoce in FTP server.. which is working but upload file name in not working... PLs look code..

    [#Form: Sales Color]
    On : Form Accept : $$InAlterMode : CALL : UpLoadToFTP
    On : Form Accept : $$InCreateMode : CALL : UpLoadToFTP



    [Function: UpLoadToFTP]

    00:Set:SVUploadType:$$SysName:FTPSite
    10:SET :SVFtpServer:ftp:// xyz.com ;Ok this is working
    20:SET :SVFtpUser: Xyz UserName ;Ok this is working
    30:SET :SVFtpPassword:Xyz Password ;Ok this is working
    40:SET :SVUploadFormat:$$SysName:pdf ;Ok this is working
    ;;00,10,20,30 and 40 are working..

    50:Set : SVPrintFileName : $$String:$Vouchertypename+" FTP "+$$String:$vouchernumber
    60: SET : SVPrintFileName : $$MakeExportName:##PrintFileName:#DSPExportForma
    70: Set : SVPrintFileName : ##SVExportLocation+"\"+#SVPrintFileName
    80:Upload Report: . :0;True

    ;;Neeru
     


  2. balajimg

    balajimg Active Member


    may be u have to replace this line
    60: SET : SVPrintFileName : $$MakeExportName:##PrintFileName:#DSPExportFormat
    as
    60: SET : SVPrintFileName : $$MakeExportName:##PrintFileName:"PDF"
     
    Neeru likes this.


  3. Neeru

    Neeru Active Member


    What about
    Set; upload report:.: true

    It's not working... I want to auto accept... I don't want to click yes or press Y button from keyboard...
     


  4. balajimg

    balajimg Active Member


    then use
    100 : Trigger Key : Enter
     
    Neeru likes this.


  5. Neeru

    Neeru Active Member


    Thank you :)
     


  6. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    80:Upload :VOUCHER: True
     


  7. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    When i set Address of FTP Server in Numbers Then It Says "Invalid URL Failed To Upload"
    But Manually It Is Working.
     
    Last edited: Nov 11, 2019


  8. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    FTP Is Running On Xiomi Mobile :)
     


  9. Neeru

    Neeru Active Member


    Dear Sir I'm not using FTP in Xiomi Mobile i create local network FTP. Upload Repor:True or Upload:Voucher:True is not working... I use Trigger Key:Enter etc is working but after pressing ESC button..., I think due to upload report:True and Upload:Vch:True is not not working propely....

    I set Upload Report: 0

    Note:-
    Final result Upload Report:True is not working also i try Upload :VOUCHER: True
     


  10. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Upload:Voucher:True

    Is Working Fine Here.

    If You Wants To Upload A Report Then Use Report Name Instead Of "Report".
     


  11. Neeru

    Neeru Active Member


    after one time manual upload then the upload code working fine but if i do it first time it is not working... showing Failed to upload.. o_O:confused:
     


  12. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Send it to me on jaytailorsikar@gmail.com
     


  13. Neeru

    Neeru Active Member


    Dear Sir,
    pls look you inbox (Subkect of the mail is "Neeru FTP Upload Code")
     


  14. Neeru

    Neeru Active Member



  15. HarshaLalzare

    HarshaLalzare New Member


    please Try below code

    [Function : UpLoadToFTP]

    00 : Set : SVUploadType : $$SysName:FTPSite
    10 : SET : SVFtpServer : "ftp server name"
    20 : SET : SVFtpUser : "ftp user"
    30 : SET : SVFtpPassword : "ftp pswd"
    40 : SET : SVUploadFormat : $$SysName:pdf
    50 : Set : SVPrintFileName : $$MakeFTPName:#SVFtpServer:#SVFtpUser:#SVFtpPassword:$$String:$Vouchertypename+ "-" +$$String:$vouchernumber + ".pdf"
    60 : Upload : "Report name": true
     
    Neeru likes this.


  16. Neeru

    Neeru Active Member



    Thank you.. :)
     


  17. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    60:Upload Report :.: True
     
    Neeru likes this.


  18. HarshaLalzare

    HarshaLalzare New Member


    Is it possible to upload attached file instant of any report
    like upload : "Path of attached file" : true
     


  19. komala

    komala New Member


    is it possible upload to particular folder..because in my ftp site i have multiple folders and i want to upload particular folder in that
     


  20. teja varma

    teja varma Active Member


    yes
    set :SVFTPSERVER :"your server name or ip/folder name" ;; example ftp://192.168.2.1/myuploads
     


  21. komala

    komala New Member


    is it possible to upload sftp site
     


  22. teja varma

    teja varma Active Member


    no tally doesn't have SFTP.. protocol to transfer or upload files
    it only supports http/https , ftp , SMTP(mail)
     


  23. komala

    komala New Member


    ok.thanks sir..any other alternative approach..as per the tallysolutions we can achieve through DLL
     


  24. teja varma

    teja varma Active Member



  25. Abu TAleb

    Abu TAleb New Member


    A great TDL I must say. I can export all the vouchers including Sales/Purchase register, Day Book into PDF in one click. But I am unable to export Purchase Vouchers. It says "Failed to create file". Please help
     

    Attached Files:



Share This Page