diff --git a/PROMS/fmtxml/RtfToSvg.cs b/PROMS/fmtxml/RtfToSvg.cs index 0f1830a0..fa9377ee 100644 --- a/PROMS/fmtxml/RtfToSvg.cs +++ b/PROMS/fmtxml/RtfToSvg.cs @@ -13,10 +13,13 @@ namespace fmtxml public RtfToSvg(string rtfFileName) { RtfFileName = rtfFileName; + _FormatFolder = RtfFile.Directory; } + private static DirectoryInfo _FormatFolder; public RtfToSvg(FileInfo rtfFile) { RtfFile = rtfFile; + _FormatFolder = RtfFile.Directory; } private bool? _IsGenMac; public bool IsGenMac @@ -283,7 +286,7 @@ namespace fmtxml } private static string FixFileName(string fileName) { - return Regex.Replace(fileName, @"^.*FORMAT\\", @"E:\VE-PROMS\FORMAT\"); + return Regex.Replace(fileName, @"^.*FORMAT\\", _FormatFolder.FullName + @"\"); } private static string FixXmlText(string str) {