We are using 8.5 client/server. In house app uses Delphi and SDK to check in a document, like this (code example abbreviated). Everything works except that document and document.prf remain in NrPrtbl. Am I responsible for deleting those two documents? I want to avoid the dialog that detects the documents in NrPrtbl asking whether to overwrite. I have also tried using the extension library CheckinCmd. That call does clean up but it wants to present a dialog to the user which is not appropriate for our application (in our case default is replace original and do not keep checked out).
var
bResult: WordBool;
mDoc: IManDocument;
FPath: string;
mCheckin: IManCheckInResult;
tVal: WideString;
begin
mDoc.CheckInWithResults(FPath, imCheckinReplaceOriginal, imDontKeepCheckedOut, mCheckin);
mCheckin.Get_Succeeded(bResult);
if (not Boolean(bResult)) then
begin
mCheckin.Get_ErrorMessage(tVal);
raise Exception.CreateHelp('TJLWSrch.FormDestroy: Checkin Error: ' + tVal,9901);
end;
end;