|
|||||||||
Support } Customer Service
In this section
Testimonials
"This software has absolutely made us more efficient...mainly because we don't need to spend a lot of time "managing" the timekeeping system like we did with our manual processes. We can now focus on "real" work - helping our business’s grow - and let the software do its job. "
- Ed Soto,
Bayer MaterialScience Aktiengesellschaft
NOTE: The information in this article applies to:
- DOVICO Planning & Timesheet version 2.x
- DOVICO Timesheet version 8.x or higher
- DOVICO Track-IT® Suite version 8.x or higher
Editors Note: This can be accomplished a lot easier with the Import-Export tool or use the SDK (API) available for download from the Developers Center.
One of the key strengths of any application is its ability to share data with other applications. A technology that is getting a lot hype hype is XML (SOAP). If you're a developer, you can't turn a page in any magazine without hearing something about XML, SOAP and Microsoft's .NET strategy.
Exporting XML through Visual Basic code.
Visual Basic code to save to an XML file begins here:
' declare some variables for ADO
Dim rs As ADODB.Recordset, conn As ADODB.Connection
' open a connection to SQL Server, specifying the server, and the default database
Set conn = New ADODB.Connection
conn.Open "Provider=SQLOLEDB.1;Persist Security Info=False;Initial Catalog=DOVICO00;Data Source=SERVER", "sa", ""
' create a new recordset, and open it with the data you wish to save into XML
Set rs = New ADODB.Recordset
rs.Open "SELECT * FROM TRANS", conn, adOpenForwardOnly, adLockReadOnly, adCmdText
rs.Save "c:\test.xml", adPersistXML
rs.Close
conn.Close
Set rs = Nothing
Set conn = NothingEnd Visual Basic code
Instead of saving the data to an XML file, you may wish to load the XML straight into the MSXML parser for programmatic manipulation. To do so, you need to do the following steps:
Happy Coding!