M
Marcolino
Hi all,
I'm using this code to export entire table from access to xml file.
DScmdXML = New OleDb.OleDbCommand(sqlXML, conn)
DScmdXML = New OleDb.OleDbDataAdapter(cmdXML)
DScmdXML.Fill(DSXML, sTableName)
DSXML.WriteXml(sFileName, XmlWriteMode.WriteSchema)
Dim xmlSW2 As System.IO.StreamWriter = New
System.IO.StreamWriter(sFullPath)
DSXML.WriteXml(xmlSW2, XmlWriteMode.WriteSchema)
xmlSW2.Flush()
xmlSW2.Close()
During DScmdXML.Fill(DSXML, sTableName) command the application hangs.
In some case I need to export big tables, I would like to add a
progress bar during the process, but the bar does not work and
application seems frezed. I tried to add a
System.Windows.Forms.Application.DoEvents(), but nothing change.
Do you have any suggestion?
Many Thanks
I'm using this code to export entire table from access to xml file.
DScmdXML = New OleDb.OleDbCommand(sqlXML, conn)
DScmdXML = New OleDb.OleDbDataAdapter(cmdXML)
DScmdXML.Fill(DSXML, sTableName)
DSXML.WriteXml(sFileName, XmlWriteMode.WriteSchema)
Dim xmlSW2 As System.IO.StreamWriter = New
System.IO.StreamWriter(sFullPath)
DSXML.WriteXml(xmlSW2, XmlWriteMode.WriteSchema)
xmlSW2.Flush()
xmlSW2.Close()
During DScmdXML.Fill(DSXML, sTableName) command the application hangs.
In some case I need to export big tables, I would like to add a
progress bar during the process, but the bar does not work and
application seems frezed. I tried to add a
System.Windows.Forms.Application.DoEvents(), but nothing change.
Do you have any suggestion?
Many Thanks