Batch Printing Plugin  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Batch Printing Plugin

Postby Ernst » Fri Apr 27, 2018 1:52 pm

Am trying to write out a courier text file every time a pack slip is printed. Got this going fine for print pack slip from the sales order screen, But now want to do the same for when they print a batch of pick slips from the Batch Printing function.

Got as far as this.
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup

If TypeOf(JiwaForm) Is JiwaFinancials.Jiwa.JiwaSalesUI.BatchPrinting.MainForm Then
Dim salesOrderBatchForm As JiwaFinancials.Jiwa.JiwaSalesUI.BatchPrinting.MainForm = DirectCast(JiwaForm, JiwaFinancials.Jiwa.JiwaSalesUI.BatchPrinting.MainForm)
AddHandler salesOrderBatchForm.BatchPrint.ProcessedCandidate ,AddressOf salesoBatch_Activate
End If
End Sub
Private Sub salesoBatch_Activate(Candidate As ???, Action As ???? )
msgbox ("activated")
End Sub

Not sure what to put in ???,or how to access the invoice number that was just printed, or which doc was printed,

This is JIWA7.0.175 using VB. Any help appreciated.
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Batch Printing Plugin  Topic is solved

Postby SBarnes » Fri Apr 27, 2018 7:12 pm

Hi Ernst

Your signature for the event handler is wrong it should be

Code: Select all
Private Sub salesoBatch_Activate(Candidate As JiwaFinancials.Jiwa.JiwaSales.BatchPrinting.Candidate)
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Batch Printing Plugin

Postby Ernst » Fri May 04, 2018 3:07 pm

Thanks Stuart.. That looks promising. Will give it a try.
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 20 guests