This commit is contained in:
parent
c9d962d01d
commit
136a023564
@ -45,8 +45,10 @@ namespace DataLoader
|
||||
// The INF files contain a path to a corresponding NDX file - had data with bat NDX path
|
||||
DeleteINFFiles(pth);
|
||||
_OutTran = new OutsideTransition(cn);
|
||||
frmMain.AddInfo("Before MigrateROFST{0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll);
|
||||
MigrateROFST(pth, docver);
|
||||
GC.Collect();
|
||||
frmMain.AddInfo("After MigrateROFST{0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll);
|
||||
// Migrate library documents
|
||||
MigrateLibDocs(cn, pth);
|
||||
// Initialize Dictionaries
|
||||
|
@ -287,15 +287,17 @@ namespace DataLoader
|
||||
int nBytesRead = fs.Read(ByteArray, 0, (int)len);
|
||||
fs.Close();
|
||||
string t1 = (title == null || title == "") ? null : title;
|
||||
Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), dtsutc, "Migration", ".Doc");
|
||||
FileInfo tmpFile = new FileInfo(temppath);
|
||||
string docfile = temppath.Substring(0, temppath.LastIndexOf(".")) + @".doc";
|
||||
if (File.Exists(docfile)) File.Delete(docfile);
|
||||
FileInfo doctmpFile = tmpFile.CopyTo(docfile);
|
||||
doc.DocAscii = ascii;
|
||||
doc.Save();
|
||||
File.Delete(docfile);
|
||||
return doc.DocID;
|
||||
using (Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), dtsutc, "Migration", ".Doc"))
|
||||
{
|
||||
FileInfo tmpFile = new FileInfo(temppath);
|
||||
string docfile = temppath.Substring(0, temppath.LastIndexOf(".")) + @".doc";
|
||||
if (File.Exists(docfile)) File.Delete(docfile);
|
||||
FileInfo doctmpFile = tmpFile.CopyTo(docfile);
|
||||
doc.DocAscii = ascii;
|
||||
doc.Save();
|
||||
File.Delete(docfile);
|
||||
return doc.DocID;
|
||||
}
|
||||
}
|
||||
// for an io exception, keep trying
|
||||
catch (IOException exio)
|
||||
|
@ -174,6 +174,7 @@ namespace DataLoader
|
||||
//figure = Figure.MakeFigure(rofst, roImg, null);
|
||||
using (Figure tfig = Figure.MakeFigure(rofst, roImg, null)) ;
|
||||
}
|
||||
roImg.Dispose();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user