Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Excel file but remained in used
Message
De
22/03/2007 11:22:03
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
22/03/2007 10:52:24
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01207065
Message ID:
01207106
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform