I want to code When i export ledger to excel or pdf i want to change name as ledger name automatically. I want to export file name as ledger name when export party's ledger.
[Function:ExportReport] 10: SET : SVExportLocation : "D:\Tally Exported Ledgers" 20: SET : SVExportFormat : $$SysNameDF 30: Set : SVPrintFileName : $$String:#reporttitle 40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat 50: Set : SVPrintFileName :##SVExportLocation+"\"+#SVPrintFileName 60: EXPORT REPORT : . : TRUE [#Form:LedgerVouchers] Add:Button:Exportpdf [Button:Exportpdf] Key : Alt + F Action : Call:ExportReport
1st time export a party's ledger 2nd time it give same name and ask for overwrite (Same name as 1st time export party's name) 3rd time it export with correct name ?