If you’re rendering regions, you should see a line of code like this:
String regionFilename = String.Format(“{0}[{1}]{2}”,
filename,
regionIndex.ToString(),
renderItem.Extension);
At this point, you should get a filename which begins with a base filename plus the region number. Instead, you want to combine the PATH of the filename plus the NAME of the region which could be done like this:
String regionFilename = String.Format(“{0}\\{1}{2}”,
Path.GetDirectory(filename),
region.Label,
renderItem.Extension);
The above will take the path of the base filename, add the necessary backslash, and then add the label of the region name. See if this works for you.
Edward Troxel
