not saving file in location

Discussion in 'Tally Developer' started by murtuza shakir, Jul 26, 2018.

    

  1. Dear Experts

    i am trying to auto save files at a particular location but in saving in tally folder by default
    [#Form: POS Invoice Color]
    On : Form Accept : $$InAlterMode : CALL : POS JPG Report
    On : Form Accept : $$InCreateMode : CALL : POS JPG Report
    ;; Function Definition begins
    [Function: POS JPG Report]
    Local Formula : SysDate : $$SysInfo:SystemDate
    Variable : POSLOC : STRING
    00 : SET : POSLOC :"C:\COPY"
    10 : SET : SVEXPORTLOCATION : if not $$IsEmpty:##SVEXPORTLOCATION Then "c:\mybooklive\public\TallyDataBackup" else ##SVEXPORTLOCATION
    20 : SET : SVExportFormat : $$SysName :JPegImage
    30 : Set : SVPrintFileName : $$String:$vouchernumber+"_"+$$String:$Vouchertypename+"_"+$$RemoveColon:mad:@MachineTime
    50 : SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    60 : Set : SVOpenFileAfterExport : No
    70 : EXPORT REPORT : . : TRUE
    ;; End of File
     


  2. sivam

    sivam Active Member



    Code:
    [#Form: POS Invoice Color]
    On : Form Accept : Yes : CALL : POS JPG Report
    ;; Function Definition begins
    [Function: POS JPG Report]
    Local Formula : SysDate : $$SysInfo:SystemDate
    Variable : POSLOC : STRING
    00 : SET : POSLOC :"C:\COPY"
    10 : SET : SVEXPORTLOCATION : ##POSLOC
    20 : SET : SVExportFormat : $$SysName:JPegImage
    30 : Set : SVPrintFileName : $$String:$vouchernumber+"_"+$$String:$Vouchertypename+"_"+$$RemoveColon:mad:@MachineTime
    50 : SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat
    60 : Set : SVOpenFileAfterExport : No
    70 : EXPORT REPORT : . : TRUE
     



  3. sir thank you so much for your reply.... but still exporting in default tally folder
     


  4. sivam

    sivam Active Member


    We missing the slash in path. So it is not working. Check with this one

    Code:
    [#Form: POS Invoice Color]
    On : Form Accept : Yes : CALL : POS JPG Report
    ;; Function Definition begins
    [Function: POS JPG Report]
       
    Variable    : SVExportLocation    : String
    Local Formula : SysDate : $$SysInfo:SystemDate
    Variable : POSLOC : STRING
       
        010  : Set           : SVExportLocation  : "E:\Copy"
        020  : Set           : SVExportFormat    : $$SysName:PDF
        030  : Set           : SVPrintFileName   : $$String:$PartyLedgerName+"_"+$$String:$Date
        040  : Set           : SVPrintFileName   : $$MakeExportName:##SVPrintFileName:##SVExportFormat
        050     : Set           : SVPrintFileName     : ##SVExportLocation+"\"+#SVPrintFileName
        060  : Set           : SVOpenFileAfterExport    : No
        070  : IF              : ($$IsFileExists:##SVPrintFileName)
        080  : Delete File    : ##SVPrintFileName
        090  : ENDIF
        100  : Export Report: .    : True
     



  5. THANK YOU SO MUCH IT WORKED , GREAT SIR
     


Share This Page