Removed PDF info from Document and Document Config
This commit is contained in:
parent
6ac65a51a3
commit
f959f883d3
@ -104,8 +104,8 @@ namespace DataLoader
|
|||||||
{
|
{
|
||||||
frmMain.AddError("Length Exception {0}\r\n\r\n{1}", ex1.Message, ex1.StackTrace);
|
frmMain.AddError("Length Exception {0}\r\n\r\n{1}", ex1.Message, ex1.StackTrace);
|
||||||
}
|
}
|
||||||
if (ci == null) ci = new ConfigInfo(null);
|
//if (ci == null) ci = new ConfigInfo(null);
|
||||||
ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", docLen));
|
//ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", docLen));
|
||||||
string ascii = myWordDoc.MyWordDoc.Ascii;
|
string ascii = myWordDoc.MyWordDoc.Ascii;
|
||||||
string s = myWordDoc.Save(temppath);
|
string s = myWordDoc.Save(temppath);
|
||||||
myWordDoc.Close();
|
myWordDoc.Close();
|
||||||
@ -282,7 +282,7 @@ namespace DataLoader
|
|||||||
int nBytesRead = fs.Read(ByteArray, 0, (int)len);
|
int nBytesRead = fs.Read(ByteArray, 0, (int)len);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
string t1 = (title == null || title == "") ? null : title;
|
string t1 = (title == null || title == "") ? null : title;
|
||||||
Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), DateTime.Now, "Migration", ".Doc",null);
|
Document doc = Document.MakeDocument(t1, ByteArray, null, ci == null ? null : ci.ToString(), DateTime.Now, "Migration", ".Doc");
|
||||||
FileInfo tmpFile = new FileInfo(temppath);
|
FileInfo tmpFile = new FileInfo(temppath);
|
||||||
string docfile = temppath.Substring(0, temppath.LastIndexOf(".")) + @".doc";
|
string docfile = temppath.Substring(0, temppath.LastIndexOf(".")) + @".doc";
|
||||||
if (File.Exists(docfile)) File.Delete(docfile);
|
if (File.Exists(docfile)) File.Delete(docfile);
|
||||||
|
@ -81,10 +81,10 @@ namespace DataLoader
|
|||||||
{
|
{
|
||||||
if (MissingDocument == null)
|
if (MissingDocument == null)
|
||||||
{
|
{
|
||||||
if (ci == null) ci = new ConfigInfo(null);
|
//if (ci == null) ci = new ConfigInfo(null);
|
||||||
ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", 0.001));
|
//ci.AddItem("Printing", "Length", string.Format("{0:0.0000}", 0.001));
|
||||||
Byte[] tstbyte = System.Text.Encoding.Default.GetBytes("");
|
Byte[] tstbyte = System.Text.Encoding.Default.GetBytes("");
|
||||||
MissingDocument = Document.MakeDocument("MISSING FILE IN CONVERSION", tstbyte, null, ci.ToString(), null);
|
MissingDocument = Document.MakeDocument("MISSING FILE IN CONVERSION", tstbyte, null, null);
|
||||||
}
|
}
|
||||||
Documentid = MissingDocument.DocID;
|
Documentid = MissingDocument.DocID;
|
||||||
missingDocFile = true;
|
missingDocFile = true;
|
||||||
@ -510,7 +510,7 @@ namespace DataLoader
|
|||||||
{
|
{
|
||||||
using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID))
|
using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID))
|
||||||
{
|
{
|
||||||
bool success = MSWordToPDF.UpdateDocPdf(di, OverrideColor);
|
bool success = MSWordToPDF.UpdateDocPdf(di, OverrideColor, seciteminfo);
|
||||||
if (!success)
|
if (!success)
|
||||||
{
|
{
|
||||||
frmMain.AddError("Error in ", "UpdateDocPdf");
|
frmMain.AddError("Error in ", "UpdateDocPdf");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user