This commit is contained in:
parent
5fa2ad85d3
commit
28325bb22d
@ -262,7 +262,7 @@ namespace DataLoader
|
|||||||
// The long section title is stored on a record with the "~" character.
|
// The long section title is stored on a record with the "~" character.
|
||||||
// This was done since originally the actual accessory page data was stored in the memo
|
// This was done since originally the actual accessory page data was stored in the memo
|
||||||
// field, so the long title could not be stored there, another record had to be used.
|
// field, so the long title could not be stored there, another record had to be used.
|
||||||
OleDbDataAdapter da = new OleDbDataAdapter("select * from " + ProcFileName + " where [Step] like '" + dr["Step"].ToString().Substring(0, 1) + "~';", cn);
|
OleDbDataAdapter da = new OleDbDataAdapter("select * from " + ProcFileName + " where [Step] = '" + dr["Step"].ToString().Substring(0, 1) + "~';", cn);
|
||||||
DataSet ds = new DataSet();
|
DataSet ds = new DataSet();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -278,8 +278,8 @@ namespace DataLoader
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
frmMain.AddError(ex, "Error getting long section title");
|
frmMain.AddError(ex, string.Format("Error getting long section title, procedure: {0}",ProcFileName));
|
||||||
log.ErrorFormat("Error getting long section title {0}", ex.Message);
|
log.ErrorFormat("Error getting long section title, procedure: {0}, error: {1}", ProcFileName,ex.Message);
|
||||||
}
|
}
|
||||||
da.Dispose();
|
da.Dispose();
|
||||||
}
|
}
|
||||||
@ -510,7 +510,12 @@ namespace DataLoader
|
|||||||
{
|
{
|
||||||
using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID))
|
using (DocumentInfo di = DocumentInfo.Get(secitem.MyContent.MyEntry.DocID))
|
||||||
{
|
{
|
||||||
MSWordToPDF.UpdateDocPdf(di, OverrideColor);
|
bool success = MSWordToPDF.UpdateDocPdf(di, OverrideColor);
|
||||||
|
if (!success)
|
||||||
|
{
|
||||||
|
frmMain.AddError("Error in ", "UpdateDocPdf");
|
||||||
|
log.Error(string.Format("UpdateDocPdf - Error creating Pdf for Word Doc: {0},{1}", procnum, secitem.MyContent.Number + secitem.MyContent.Text));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user