public void DocumentClosing(IUimDataContext dataContext, CloseReasonCode reason) { try { ScriptMain m = new ScriptMain(); m.jsonFormat(dataContext, prelist); //Custom Table m.jsonFormatTable(dataContext, prelistTable); } catch (Exception e) { string error = e.StackTrace; } }