chris123321
IS-IT--Management
If I have these lines of code:
This error comes: Access to the path "C:\LOG_FILES\ReportData.xml" is denied
Is that because tdsreportdata (dataset) is still holding ReportData.xml in memory? I tried adding the code to dispose the dataset between the read xml and write xml, but still get the same error.
Should I delete the file and then write the dataset to xml?
This is a test to see why I cannot writexml in a different section of the code.
Thanks for the help.
Code:
tdsReportData.ReadXml(SessionFolder & "ReportData.xml")
tdsReportData.WriteXml(SessionFolder & "ReportData.xml")
This error comes: Access to the path "C:\LOG_FILES\ReportData.xml" is denied
Is that because tdsreportdata (dataset) is still holding ReportData.xml in memory? I tried adding the code to dispose the dataset between the read xml and write xml, but still get the same error.
Should I delete the file and then write the dataset to xml?
This is a test to see why I cannot writexml in a different section of the code.
Thanks for the help.