Add separate counts for Errors, Warnings and Information
Cleanup memory after transition processing Adjusted width of Error Count Added memory usage to output Added Stored Procedure GetJustFormat Reduce Memory Use Removed extra using statement
This commit is contained in:
@@ -117,7 +117,10 @@ namespace DataLoader
|
||||
string thenum = num.ToString("d2");
|
||||
fname = string.Format("{0}\\rtffiles\\{1}.A{2}", pth, ProcFileName, thenum);
|
||||
Application.DoEvents();
|
||||
SaveSectionDocument(fname, stpseq, SecType, ref Documentid, procitem.DisplayNumber + ":" + (Number == string.Empty ? Title : Number));
|
||||
string procnum = "";
|
||||
using (ItemInfo ii = ItemInfo.Get(procitem.ItemID))
|
||||
procnum = ii.DisplayNumber;
|
||||
SaveSectionDocument(fname, stpseq, SecType, ref Documentid, procnum + ":" + (Number == string.Empty ? Title : Number));
|
||||
if (Documentid == 0)
|
||||
{
|
||||
if (MissingDocument == null)
|
||||
@@ -136,11 +139,11 @@ namespace DataLoader
|
||||
|
||||
// test for performance
|
||||
Content cont;
|
||||
using(Format fmt2 = format == null ? null : format.Get())
|
||||
Format fmt2 = format == null ? null : format.Get();
|
||||
cont = Content.New(Number, Title, 10000+docstyleindx, fmt2, ci==null?null:ci.ToString(), Dts, Userid);
|
||||
Entry entry = cont.MyEntry;
|
||||
if (needEntry)
|
||||
{
|
||||
Entry entry = cont.MyEntry;
|
||||
entry.MyDocument = Document.Get(Documentid);
|
||||
entry.DTS = Dts;
|
||||
entry.UserID = Userid;
|
||||
@@ -560,7 +563,7 @@ namespace DataLoader
|
||||
{
|
||||
if (seciteminfo.MyContent.ContentEntryCount != 0)
|
||||
{
|
||||
using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID))
|
||||
using (DocumentInfo di = seciteminfo.MyContent.MyEntry.MyDocument)
|
||||
{
|
||||
bool success = MSWordToPDF.UpdateDocPdf(di, OverrideColor, seciteminfo);
|
||||
if (!success)
|
||||
|
Reference in New Issue
Block a user