Page 1 of 1

Printing Checks when Disbursing Ledger

Posted: Thu Aug 26, 2021 11:17 am
by dutil
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:

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);   
Is there a different process for printing disbursed checks from a non order ledger, and if so, what is that process?

Re: Printing Checks when Disbursing Ledger

Posted: Fri Sep 03, 2021 5:50 pm
by dutil
Anyone have an ideas or suggestions?

Re: Printing Checks when Disbursing Ledger

Posted: Thu Sep 09, 2021 6:03 pm
by BobRichards
I have been unable to answer the question. I have sent the post the R&D. I will report back when they have a solution.