Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Excel file but remained in used
Message
From
22/03/2007 11:22:03
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
22/03/2007 10:52:24
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01207065
Message ID:
01207106
Views:
17
You wheren't closing the stream so it was keept open not releasing the file lock.
The method that accepts the filename instead of a stream does that in the backgroud I bet.

>I use this simplified version of the transformation and this avoid the file to be locked:
>
>
>loXslCompiledTransform.Transform(oApp.cHttpFat + "Temp\" + lcFile + ".xml", tcFile)
>
>
>However, I am wondering what was the difference with this command:
>
>
>loXslCompiledTransform.Transform(New XPath.XPathDocument(oApp.cHttpFat + "Temp\" + lcFile + ".xml"), Nothing, loFileStream)
>
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform