Printing Checks when Disbursing Ledger
Posted: Thu Aug 26, 2021 11:17 am
We are trying to disburse funds via the API (we want to recreate the disburse process that's in the UI) and have modeled our solution to be very similar to the one found in this post:
https://devforum.softprocorp.com/viewto ... heck#p3513
Everything works when the the Ledger.DisburseAs is a wire.
However when disbursing for checks, the checks always print as an empty page with no errors or exceptions thrown. We are following a similar process for printing that we have working for posting and printing checks from an order:
Is there a different process for printing disbursed checks from a non order ledger, and if so, what is that process?
https://devforum.softprocorp.com/viewto ... heck#p3513
Everything works when the the Ledger.DisburseAs is a wire.
However when disbursing for checks, the checks always print as an empty page with no errors or exceptions thrown. We are following a similar process for printing that we have working for posting and printing checks from an order:
Code: Select all
// provide settings to the check print job handler
// this is how we support default printer settings and horiz/vert offsets
CheckPrintJobHandler.Settings = new CheckPrintSettings()
{
PrinterSettings = new PrinterSettings { PrinterName = Printer},
HorizontalOffset = _printPostParameters.HorizontalAdjustment,
VerticalOffset = _printPostParameters.VerticalAdjustment,
MicrStartPosition = _printPostParameters.MicrStartPosition
};
// use a report Uri to run the check report via shell
ReportUri reportUri = new ReportUri<Guid>(_printPostParameters.CheckDocumentID, transactionIDs, ledger.ID, PrintJobTarget.Printer, true);
ServiceContext.GetService<IShell>().OpenStandardEditor(reportUri);