Add location information to the error log for RO Image problems
This commit is contained in:
parent
a54c2eaa09
commit
a2d8712b83
@ -971,7 +971,7 @@ namespace Volian.Print.Library
|
|||||||
DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo;
|
DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo;
|
||||||
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
||||||
ROImageInfo roImage = ROImageInfo.GetByROFstID_FileName(rofst.ROFstID, vals[0]);
|
ROImageInfo roImage = ROImageInfo.GetByROFstID_FileName(rofst.ROFstID, vals[0]);
|
||||||
if (roImage == null) roImage = rofst.GetROImageByFilename(vals[0]);// need code to go and get an ROImaage if it exists
|
if (roImage == null) roImage = rofst.GetROImageByFilename(vals[0],MyItemInfo);// need code to go and get an ROImaage if it exists
|
||||||
if (roImage != null)
|
if (roImage != null)
|
||||||
{
|
{
|
||||||
ROImageConfig rc = new ROImageConfig(roImage);
|
ROImageConfig rc = new ROImageConfig(roImage);
|
||||||
@ -2765,7 +2765,7 @@ namespace Volian.Print.Library
|
|||||||
if (val == "?")
|
if (val == "?")
|
||||||
{
|
{
|
||||||
erMsg = string.Format("Referenced Object does not exist.");
|
erMsg = string.Format("Referenced Object does not exist.");
|
||||||
_MyLog.WarnFormat("Missing Referenced Object {0} in {1}", subs[1], itemInfo.ShortPath);
|
_MyLog.WarnFormat("\r\nMissing Referenced Object {0} in {1}", subs[1], itemInfo.ShortPath);
|
||||||
yoff += 2 * SixLinesPerInch;
|
yoff += 2 * SixLinesPerInch;
|
||||||
}
|
}
|
||||||
else if (val != null && val != "?")
|
else if (val != null && val != "?")
|
||||||
@ -2796,7 +2796,7 @@ namespace Volian.Print.Library
|
|||||||
ImageText = val;
|
ImageText = val;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
roImage = rofst.GetROImageByFilename(vals[0]);// need code to go and get an ROImaage if it exists
|
roImage = rofst.GetROImageByFilename(vals[0],MyItemInfo);// need code to go and get an ROImaage if it exists
|
||||||
if (roImage == null)
|
if (roImage == null)
|
||||||
erMsg = string.Format("Image {0} does not exist.", vals[0]);
|
erMsg = string.Format("Image {0} does not exist.", vals[0]);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user