Added method RofstInfo.GetROImageByFilename to find image files by name.

Added method RoImageInforList GetByRODbIDFilename to find image files by name.
Find ROImages if not attached to the current ROFST.  The Export/Import code was not saving ROImage usages properly
This commit is contained in:
Rich
2015-02-18 14:43:00 +00:00
parent 8d46574ec2
commit 14a0b600fd
3 changed files with 93 additions and 2 deletions

View File

@@ -971,6 +971,7 @@ namespace Volian.Print.Library
DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo;
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
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)
{
ROImageConfig rc = new ROImageConfig(roImage);
@@ -2792,7 +2793,13 @@ namespace Volian.Print.Library
if (roImage != null)
ImageText = val;
else
erMsg = string.Format("Image {0} does not exist.", vals[0]);
{
roImage = rofst.GetROImageByFilename(vals[0]);// need code to go and get an ROImaage if it exists
if (roImage == null)
erMsg = string.Format("Image {0} does not exist.", vals[0]);
else
ImageText = val;
}
}
catch (Exception ex)