This commit is contained in:
@@ -164,8 +164,11 @@ namespace fmtxml
|
||||
private static int UNDERLINE = 0x02;
|
||||
private static int ITALICS = 0x04;
|
||||
|
||||
public GenXmlToSvg(string nm)
|
||||
private string MyResultPath;
|
||||
|
||||
public GenXmlToSvg(string nm, string resPath)
|
||||
{
|
||||
MyResultPath = resPath;
|
||||
genName = nm;
|
||||
try
|
||||
{
|
||||
@@ -198,7 +201,7 @@ namespace fmtxml
|
||||
|
||||
private void WriteXml()
|
||||
{
|
||||
string path = "E:\\proms.net\\genmac.xml\\" + genName.Substring(0,genName.LastIndexOf(".")) + ".svg";
|
||||
string path = MyResultPath + @"\genmacall\" + genName.Substring(0, genName.LastIndexOf(".")) + ".svg";
|
||||
XmlTextWriter writer = new XmlTextWriter(path,System.Text.Encoding.Unicode);
|
||||
writer.Formatting=System.Xml.Formatting.Indented;
|
||||
xmlOutDoc.Save(writer);
|
||||
@@ -206,7 +209,7 @@ namespace fmtxml
|
||||
|
||||
private void ReadXml()
|
||||
{
|
||||
string fnm = "E:\\proms.net\\genmac.xml\\convert\\" + genName;
|
||||
string fnm = MyResultPath + @"\genmacall\convert\" + genName;
|
||||
xmlDoc = new XmlDocument();
|
||||
XmlTextReader reader = new XmlTextReader(fnm);
|
||||
xmlDoc.Load(reader);
|
||||
|
Reference in New Issue
Block a user