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);