在导入对话框最下面的文件类型选(*.xls)
然后是导入数据表向导,按步骤来就可以了,excel的格式最好能直接对上access,不然导进去表就乱了
按照access的使用方法既可读取调用
using Systemusing System.Text
using System.Xml
namespace ParsingXml
{
class Program
{
static void Main(string[] args)
{
XmlReader xmlReader = XmlReader.Create("c:/eurofxref-daily.xml")
while(xmlReader.Read())
{
if((xmlReader.NodeType == XmlNodeType.Element) &&(xmlReader.Name == "Cube"))
{
if(xmlReader.HasAttributes)
Console.WriteLine(xmlReader.GetAttribute("currency") + ": " + xmlReader.GetAttribute("rate"))
}
}
Console.ReadKey()
}
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)