I want to write a plugin (v 157, 175 and 7.1 - hopefully the code wont be different for each version)
It will, nightly, export a report to PDF. This might be say, the BackOrders and Outstanding Orders report, or perhaps the Profit & Loss report.
For this example I want to make it easy and not have any parameters to deal with so I'm happy to start my development with the Inventory Reconciliation report.
I assume the code needs to go in here
- Code: Select all
#region "ScheduledExecutionPlugin"
public class ScheduledExecutionPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaScheduledExecutionPlugin
{
public void Execute(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin, JiwaFinancials.Jiwa.JiwaApplication.Schedule.Schedule Schedule)
{ /* code goes in here.
JiwaFinancials.Jiwa.JiwaApplication.JiwaPrintReport.JiwaPrintReport
*/
}
public void OnServiceStart(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
}
public void OnServiceStopping(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
}
}
#endregion
but I can't work out how to specify which report to print. And how I get it to export to PDF.
And later on I want to work out how to specify parameter values.
If I could just have an example of one report I should be able to work out other reports.