Hi all,
I'm using this code to export entire table from access to xml file.
DScmdXML = New OleDb.OleDbComm and(sqlXML, conn)
DScmdXML = New OleDb.OleDbData Adapter(cmdXML)
DScmdXML.Fill(D SXML, sTableName)
DSXML.WriteXml( sFileName, XmlWriteMode.Wr iteSchema)
Dim xmlSW2 As System.IO.Strea mWriter = New
System.IO.Strea mWriter(sFullPa th)
DSXML.WriteXml( xmlSW2, XmlWriteMode.Wr iteSchema)
xmlSW2.Flush()
xmlSW2.Close()
During DScmdXML.Fill(D SXML, 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.Applicati on.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.OleDbComm and(sqlXML, conn)
DScmdXML = New OleDb.OleDbData Adapter(cmdXML)
DScmdXML.Fill(D SXML, sTableName)
DSXML.WriteXml( sFileName, XmlWriteMode.Wr iteSchema)
Dim xmlSW2 As System.IO.Strea mWriter = New
System.IO.Strea mWriter(sFullPa th)
DSXML.WriteXml( xmlSW2, XmlWriteMode.Wr iteSchema)
xmlSW2.Flush()
xmlSW2.Close()
During DScmdXML.Fill(D SXML, 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.Applicati on.DoEvents(), but nothing change.
Do you have any suggestion?
Many Thanks
Comment