I have added a button in the sales voucher and from that, I wanted to print the loading Sheet. (Default Print Button can not be used since there are several restrictions done on it). The issue is I am unable to fetch the data to print. Experts, pls let me know how to fetch the data. Code: [#Form:Voucher] Add: Button: LoadingSheetPrint [Button:LoadingSheetPrint] Key : Alt+L Title : $$LocaleString:"Print Loading Sheet" Action: Print: RuhunuLoadingSheet Inactive: Not $$IsSales:$VoucherTypeName [Report:RuhunuLoadingSheet] Print Set : Report Title : "Ruhunu Loading Sheet Print" Form : NGST LoadingSheet InvoicePrintHO Object : Voucher Variable : Report Title Filtered : Yes [Form : NGST LoadingSheet InvoicePrintHO] Part : NGSTCustomerDeta Space Top : 3.00 Cms Space Left : 0.5 Cms Space Right : 1.30 Cms Space Bottom : 2.50 Cms Height : 28.0 Cms Width : 21.6 Cms [Part:NGSTCustomerDeta] Line: NGSTCustomerDetaA [Line:NGSTCustomerDetaA] Field: NGSTCustomerDetaA [Field:NGSTCustomerDetaA] Set as: $PartyLedgerName
Try This [#Form: sales color] ; Add : Button : VCH DespatchSilp [Button: VCH DespatchSilp] Key : Alt+D Title : $$LocaleString:"Packing Slip" ;Action : Print : SMDespatchSilp Action: Call: Master Function Inactive : NOT $$IsSales:##SVVoucherType ; Key Color : Red ; Color : Red ; [Function: Master Function] Variable: MasID:String 03:Set:MasID$$SPrintF@VCHMasterID:$MasterID) 04rint: SMDespatchSilp ASD:Log:##MasID [Report: SMDespatchSilp]