[#Form: Day Book] Add: Button: After : DSPShowGP : Rkc PDF Export Bttn [#Form: Ledger Vouchers] Add: Button: After : Contact Details : Rkc PDF Export Bttn [#Form: Sales Color] Add : Button : Rkc PDF Export Bttn [Button: Rkc PDF Export Bttn] Key : Alt + F Title : $$LocaleString:"Save as PDF" Action : Call : Rkc Sales Export Report Scope : Selected Lines [Function : Rkc Sales Export Report] Variable : PrintFileName : String 01: Start Batch Post : 50 ;;05: WALK COLLECTION : Rkc PrintSelected Bill 10: SET : SVExportLocation : "E:\Tally.ERP9\Export" 20: SET : SVExportFormat : $$SysNameDF 30: Set : SVPrintFileName : If Not $$IsEmpty:$VoucherNumber Then $$String:$Vouchertypename+"_" + $$String:$vouchernumber + ".PDF" Else $$String:$Vouchertypename+"_" + $$String:$Reference ;;$$String:$Vouchertypename+"_" + $$String:$vouchernumber + ".PDF" 40: SET : SVPrintFileName : $$MakeExportName:##SVPrintFileName:##SVExportFormat 50: Set : SVPrintFileName : ##SVExportLocation+"\"+#SVPrintFileName 60: EXPORT REPORT : Printed Invoice : TRUE ;; Printed Invoice ;;65: END WALK 70 : End Batch Post [#Report : Printed invoice] Add : Collection : Rkc PrintSelected Bill [Collection: Rkc PrintSelected Bill] Data Source : Parent Report: Selected Fetch : Inventory Entries.*, Voucher Number, Date, Ledger Entries.*