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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user