Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot load file in System.Drawing.Bitmap with ampersand
Message
De
23/09/2013 16:20:00
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Cannot load file in System.Drawing.Bitmap with ampersand
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583945
Message ID:
01583945
Vues:
33
If I try to load a file in System.Drawing.Bitmap which contains an ampersand, this gives an error.

This is the code:
        Dim loImage As System.Drawing.Bitmap = Nothing

        ' Get a reference to the image
        loImage = New System.Drawing.Bitmap(lcFat + lcFileName)
The error is:

"Parameter is not valid."

I did not find any documentation on encoding the file name in here. Anyone knows something about it?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform