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@MachineTime 50 : SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat 60 : Set : SVOpenFileAfterExport : No 70 : EXPORT REPORT : . : TRUE ;; End of File
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
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