This commit is contained in:
parent
e389cbd5be
commit
c3f491ed8b
@ -7,6 +7,8 @@ using System.Text;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Xml;
|
||||||
|
using System.IO;
|
||||||
using Volian.Controls.Library;
|
using Volian.Controls.Library;
|
||||||
using VEPROMS.CSLA.Library;
|
using VEPROMS.CSLA.Library;
|
||||||
using C1.Win.C1FlexGrid;
|
using C1.Win.C1FlexGrid;
|
||||||
@ -1485,7 +1487,17 @@ namespace Volian.Controls.Library
|
|||||||
sfd.ShowDialog();
|
sfd.ShowDialog();
|
||||||
this.WriteXml(sfd.FileName);
|
this.WriteXml(sfd.FileName);
|
||||||
}
|
}
|
||||||
|
public string GetXMLData()
|
||||||
|
{
|
||||||
|
string retstr = null;
|
||||||
|
using (StringWriter sw = new StringWriter())
|
||||||
|
{
|
||||||
|
this.WriteXml(sw);
|
||||||
|
retstr = sw.GetStringBuilder().ToString();
|
||||||
|
sw.Close();
|
||||||
|
}
|
||||||
|
return retstr;
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prompts user with Save File dialog.
|
/// Prompts user with Save File dialog.
|
||||||
/// Grid will be saved to an Excel file.
|
/// Grid will be saved to an Excel file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user