IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C# Discussion :

Obtenir les data avancées en C#


Sujet :

C#

  1. #1
    Membre à l'essai
    Homme Profil pro
    Architecte matériel
    Inscrit en
    Janvier 2018
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Architecte matériel
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2018
    Messages : 4
    Par défaut Obtenir les data avancées en C#
    Bonjour à tous,

    je voulais savoir si vous avez une méthode pour obtenir les informations issues du volet de visualisation de windows.
    Le but étant d'extraire la version de mon fichier (que je ne trouves que dedans).

    Comme sur cet exemple, je souhaites récupérer l'information : "[5]: V6.04.04"
    Nom : Annotation 2020-05-17 180520.png
Affichages : 150
Taille : 76,1 Ko

  2. #2
    Expert confirmé
    Avatar de StringBuilder
    Homme Profil pro
    Chef de projets
    Inscrit en
    Février 2010
    Messages
    4 197
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Chef de projets
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2010
    Messages : 4 197
    Billets dans le blog
    1
    Par défaut
    Pas d'autre choix que de connaître le format interne du fichier, puis de lire à l'intérieur du fichier...

  3. #3
    Expert éminent Avatar de Pol63
    Homme Profil pro
    .NET / SQL SERVER
    Inscrit en
    Avril 2007
    Messages
    14 202
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : .NET / SQL SERVER

    Informations forums :
    Inscription : Avril 2007
    Messages : 14 202
    Par défaut
    si c'est juste pour une version de fichier y a ca
    https://docs.microsoft.com/fr-fr/dot...ew=netcore-3.1
    Cours complets, tutos et autres FAQ ici : C# - VB.NET

  4. #4
    Membre à l'essai
    Homme Profil pro
    Architecte matériel
    Inscrit en
    Janvier 2018
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Architecte matériel
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Janvier 2018
    Messages : 4
    Par défaut
    y a pas de solutions pour récupérer le contenu du preview pan ?

  5. #5
    Membre expérimenté
    Profil pro
    Inscrit en
    Février 2009
    Messages
    155
    Détails du profil
    Informations personnelles :
    Localisation : France, Indre et Loire (Centre)

    Informations forums :
    Inscription : Février 2009
    Messages : 155
    Par défaut
    La seule bonne solution est d'aller chercher l'info directement dans le fichier concerné.

  6. #6
    Membre chevronné Avatar de WaterTwelve21
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Décembre 2015
    Messages
    270
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Décembre 2015
    Messages : 270
    Par défaut
    Bonjour,

    Je n'ai pas le temps de developper mais il existe la classe FileVersionInfo.

    https://docs.microsoft.com/fr-fr/dot...ew=netcore-3.1

    En espérant que ce soit utile.

  7. #7
    Expert confirmé
    Avatar de StringBuilder
    Homme Profil pro
    Chef de projets
    Inscrit en
    Février 2010
    Messages
    4 197
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Chef de projets
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2010
    Messages : 4 197
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par WaterTwelve21 Voir le message
    Bonjour,

    Je n'ai pas le temps de developper mais il existe la classe FileVersionInfo.

    https://docs.microsoft.com/fr-fr/dot...ew=netcore-3.1

    En espérant que ce soit utile.
    Solution proposée 3 lignes plus haut.

    Et accessoirement, Egamorf souhaite récupérer en réalité non pas la version du fichier (info disponible dans les meta d'un EXE ou d'une DLL uniquement ou presque) mais la donnée de l'attribut "[5]" ainsi que la miniature.
    L'attribut étant vraisemblablement stocké dans le fichier d'une manière similaire aux tags MP3 ou méta JPEG/TIFF, et la miniature étant très probablement calculée par l'explorateur à partir du logiciel qui sert à ouvrir les fichier *.vzs (même méthode que pour afficher les miniatures des fichiers Word par exemple, l'explorateur demande à Word de lui fournir une miniature, elle n'est pas stockée dans le fichier)

    A priori pour récupérer la miniature, on peut faire comme ça, en passant par les API de Windows : (ne pas tenir compte de la partie parlant d'InterOp Office, c'est spécifique aux fichiers Office)
    https://stackoverflow.com/questions/...ia-windows-api

    Pour l'attribut, pas d'autre moyen à mon avis que d'ouvrir le programme et comprendre comment c'est stocké, à moins que l'API ne permette aussi de récupérer les metas.

    Je viens de vérifier, cette classe permet de récupérer sur mon PC la miniature d'une image JPG, d'une présentation PPTX et d'un fichier PDF :
    Code csharp : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
     
    using System;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Runtime.InteropServices;
    using System.Text;
     
    namespace GetThumbAndMeta
    {
        public class ShellThumbnail : IDisposable
        {
     
            [Flags]
            private enum ESTRRET
            {
                STRRET_WSTR = 0,
                STRRET_OFFSET = 1,
                STRRET_CSTR = 2
            }
     
            [Flags]
            private enum ESHCONTF
            {
                SHCONTF_FOLDERS = 32,
                SHCONTF_NONFOLDERS = 64,
                SHCONTF_INCLUDEHIDDEN = 128,
            }
     
            [Flags]
            private enum ESHGDN
            {
                SHGDN_NORMAL = 0,
                SHGDN_INFOLDER = 1,
                SHGDN_FORADDRESSBAR = 16384,
                SHGDN_FORPARSING = 32768
            }
     
            [Flags]
            private enum ESFGAO
            {
                SFGAO_CANCOPY = 1,
                SFGAO_CANMOVE = 2,
                SFGAO_CANLINK = 4,
                SFGAO_CANRENAME = 16,
                SFGAO_CANDELETE = 32,
                SFGAO_HASPROPSHEET = 64,
                SFGAO_DROPTARGET = 256,
                SFGAO_CAPABILITYMASK = 375,
                SFGAO_LINK = 65536,
                SFGAO_SHARE = 131072,
                SFGAO_READONLY = 262144,
                SFGAO_GHOSTED = 524288,
                SFGAO_DISPLAYATTRMASK = 983040,
                SFGAO_FILESYSANCESTOR = 268435456,
                SFGAO_FOLDER = 536870912,
                SFGAO_FILESYSTEM = 1073741824,
                SFGAO_HASSUBFOLDER = -2147483648,
                SFGAO_CONTENTSMASK = -2147483648,
                SFGAO_VALIDATE = 16777216,
                SFGAO_REMOVABLE = 33554432,
                SFGAO_COMPRESSED = 67108864,
            }
     
            private enum EIEIFLAG
            {
                IEIFLAG_ASYNC = 1,
                IEIFLAG_CACHE = 2,
                IEIFLAG_ASPECT = 4,
                IEIFLAG_OFFLINE = 8,
                IEIFLAG_GLEAM = 16,
                IEIFLAG_SCREEN = 32,
                IEIFLAG_ORIGSIZE = 64,
                IEIFLAG_NOSTAMP = 128,
                IEIFLAG_NOBORDER = 256,
                IEIFLAG_QUALITY = 512
            }
     
            [StructLayout(LayoutKind.Sequential, Pack = 4, Size = 0, CharSet = CharSet.Auto)]
            private struct STRRET_CSTR
            {
                public ESTRRET uType;
                [MarshalAs(UnmanagedType.ByValArray, SizeConst = 520)]
                public byte[] cStr;
            }
     
            [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Auto)]
            private struct STRRET_ANY
            {
                [FieldOffset(0)]
                public ESTRRET uType;
                [FieldOffset(4)]
                public IntPtr pOLEString;
            }
            [StructLayoutAttribute(LayoutKind.Sequential)]
            private struct SIZE
            {
                public int cx;
                public int cy;
            }
     
            [ComImport(), Guid("00000000-0000-0000-C000-000000000046")]
            [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
            private interface IUnknown
            {
     
                [PreserveSig()]
                IntPtr QueryInterface(ref Guid riid, ref IntPtr pVoid);
     
                [PreserveSig()]
                IntPtr AddRef();
     
                [PreserveSig()]
                IntPtr Release();
            }
     
            [ComImportAttribute()]
            [GuidAttribute("00000002-0000-0000-C000-000000000046")]
            [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
            private interface IMalloc
            {
     
                [PreserveSig()]
                IntPtr Alloc(int cb);
     
                [PreserveSig()]
                IntPtr Realloc(IntPtr pv, int cb);
     
                [PreserveSig()]
                void Free(IntPtr pv);
     
                [PreserveSig()]
                int GetSize(IntPtr pv);
     
                [PreserveSig()]
                int DidAlloc(IntPtr pv);
     
                [PreserveSig()]
                void HeapMinimize();
            }
     
            [ComImportAttribute()]
            [GuidAttribute("000214F2-0000-0000-C000-000000000046")]
            [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
            private interface IEnumIDList
            {
     
                [PreserveSig()]
                int Next(int celt, ref IntPtr rgelt, ref int pceltFetched);
     
                void Skip(int celt);
     
                void Reset();
     
                void Clone(ref IEnumIDList ppenum);
            }
     
            [ComImportAttribute()]
            [GuidAttribute("000214E6-0000-0000-C000-000000000046")]
            [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
            private interface IShellFolder
            {
     
                void ParseDisplayName(IntPtr hwndOwner, IntPtr pbcReserved,
                  [MarshalAs(UnmanagedType.LPWStr)] string lpszDisplayName,
                  ref int pchEaten, ref IntPtr ppidl, ref int pdwAttributes);
     
                void EnumObjects(IntPtr hwndOwner,
                  [MarshalAs(UnmanagedType.U4)] ESHCONTF grfFlags,
                  ref IEnumIDList ppenumIDList);
     
                void BindToObject(IntPtr pidl, IntPtr pbcReserved, ref Guid riid,
                  ref IShellFolder ppvOut);
     
                void BindToStorage(IntPtr pidl, IntPtr pbcReserved, ref Guid riid, IntPtr ppvObj);
     
                [PreserveSig()]
                int CompareIDs(IntPtr lParam, IntPtr pidl1, IntPtr pidl2);
     
                void CreateViewObject(IntPtr hwndOwner, ref Guid riid,
                  IntPtr ppvOut);
     
                void GetAttributesOf(int cidl, IntPtr apidl,
                  [MarshalAs(UnmanagedType.U4)] ref ESFGAO rgfInOut);
     
                void GetUIObjectOf(IntPtr hwndOwner, int cidl, ref IntPtr apidl, ref Guid riid, ref int prgfInOut, ref IUnknown ppvOut);
     
                void GetDisplayNameOf(IntPtr pidl,
                  [MarshalAs(UnmanagedType.U4)] ESHGDN uFlags,
                  ref STRRET_CSTR lpName);
     
                void SetNameOf(IntPtr hwndOwner, IntPtr pidl,
                  [MarshalAs(UnmanagedType.LPWStr)] string lpszName,
                  [MarshalAs(UnmanagedType.U4)] ESHCONTF uFlags,
                  ref IntPtr ppidlOut);
            }
            [ComImportAttribute(), GuidAttribute("BB2E617C-0920-11d1-9A0B-00C04FC2D6C1"), InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
            private interface IExtractImage
            {
                void GetLocation([Out(), MarshalAs(UnmanagedType.LPWStr)]
            StringBuilder pszPathBuffer, int cch, ref int pdwPriority, ref SIZE prgSize, int dwRecClrDepth, ref int pdwFlags);
     
                void Extract(ref IntPtr phBmpThumbnail);
            }
     
            private class UnmanagedMethods
            {
     
                [DllImport("shell32", CharSet = CharSet.Auto)]
                internal extern static int SHGetMalloc(ref IMalloc ppMalloc);
     
                [DllImport("shell32", CharSet = CharSet.Auto)]
                internal extern static int SHGetDesktopFolder(ref IShellFolder ppshf);
     
                [DllImport("shell32", CharSet = CharSet.Auto)]
                internal extern static int SHGetPathFromIDList(IntPtr pidl, StringBuilder pszPath);
     
                [DllImport("gdi32", CharSet = CharSet.Auto)]
                internal extern static int DeleteObject(IntPtr hObject);
     
            }
     
            ~ShellThumbnail()
            {
                Dispose();
            }
     
            private IMalloc alloc = null;
            private bool disposed = false;
            private Size _desiredSize = new Size(100, 100);
            private Bitmap _thumbNail;
     
            public Bitmap ThumbNail
            {
                get
                {
                    return _thumbNail;
                }
            }
     
            public Size DesiredSize
            {
                get { return _desiredSize; }
                set { _desiredSize = value; }
            }
            private IMalloc Allocator
            {
                get
                {
                    if (!disposed)
                    {
                        if (alloc == null)
                        {
                            UnmanagedMethods.SHGetMalloc(ref alloc);
                        }
                    }
                    else
                    {
                        Debug.Assert(false, "Object has been disposed.");
                    }
                    return alloc;
                }
            }
     
            public Bitmap GetThumbnail(string fileName)
            {
                if (string.IsNullOrEmpty(fileName))
                    return null;
     
                if (!File.Exists(fileName) && !Directory.Exists(fileName))
                {
                    throw new FileNotFoundException(string.Format("The file '{0}' does not exist", fileName), fileName);
                }
                if (_thumbNail != null)
                {
                    _thumbNail.Dispose();
                    _thumbNail = null;
                }
                IShellFolder folder = null;
                try
                {
                    folder = getDesktopFolder;
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                if (folder != null)
                {
                    IntPtr pidlMain = IntPtr.Zero;
                    try
                    {
                        int cParsed = 0;
                        int pdwAttrib = 0;
                        string filePath = Path.GetDirectoryName(fileName);
                        folder.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, filePath, ref cParsed, ref pidlMain, ref pdwAttrib);
                    }
                    catch (Exception ex)
                    {
                        Marshal.ReleaseComObject(folder);
                        throw ex;
                    }
                    if (pidlMain != IntPtr.Zero)
                    {
                        Guid iidShellFolder = new Guid("000214E6-0000-0000-C000-000000000046");
                        IShellFolder item = null;
                        try
                        {
                            folder.BindToObject(pidlMain, IntPtr.Zero, ref iidShellFolder, ref item);
                        }
                        catch (Exception ex)
                        {
                            Marshal.ReleaseComObject(folder);
                            Allocator.Free(pidlMain);
                            throw ex;
                        }
                        if (item != null)
                        {
                            IEnumIDList idEnum = null;
                            try
                            {
                                item.EnumObjects(IntPtr.Zero, (ESHCONTF.SHCONTF_FOLDERS | ESHCONTF.SHCONTF_NONFOLDERS), ref idEnum);
                            }
                            catch (Exception ex)
                            {
                                Marshal.ReleaseComObject(folder);
                                Allocator.Free(pidlMain);
                                throw ex;
                            }
                            if (idEnum != null)
                            {
                                int hRes = 0;
                                IntPtr pidl = IntPtr.Zero;
                                int fetched = 0;
                                bool complete = false;
                                while (!complete)
                                {
                                    hRes = idEnum.Next(1, ref pidl, ref fetched);
                                    if (hRes != 0)
                                    {
                                        pidl = IntPtr.Zero;
                                        complete = true;
                                    }
                                    else
                                    {
                                        if (_getThumbNail(fileName, pidl, item))
                                        {
                                            complete = true;
                                        }
                                    }
                                    if (pidl != IntPtr.Zero)
                                    {
                                        Allocator.Free(pidl);
                                    }
                                }
                                Marshal.ReleaseComObject(idEnum);
                            }
                            Marshal.ReleaseComObject(item);
                        }
                        Allocator.Free(pidlMain);
                    }
                    Marshal.ReleaseComObject(folder);
                }
                return ThumbNail;
            }
     
            private bool _getThumbNail(string file, IntPtr pidl, IShellFolder item)
            {
                IntPtr hBmp = IntPtr.Zero;
                IExtractImage extractImage = null;
                try
                {
                    string pidlPath = PathFromPidl(pidl);
                    if (Path.GetFileName(pidlPath).ToUpper().Equals(Path.GetFileName(file).ToUpper()))
                    {
                        IUnknown iunk = null;
                        int prgf = 0;
                        Guid iidExtractImage = new Guid("BB2E617C-0920-11d1-9A0B-00C04FC2D6C1");
                        item.GetUIObjectOf(IntPtr.Zero, 1, ref pidl, ref iidExtractImage, ref prgf, ref iunk);
                        extractImage = (IExtractImage)iunk;
                        if (extractImage != null)
                        {
                            Console.WriteLine("Got an IExtractImage object!");
                            SIZE sz = new SIZE();
                            sz.cx = DesiredSize.Width;
                            sz.cy = DesiredSize.Height;
                            StringBuilder location = new StringBuilder(260, 260);
                            int priority = 0;
                            int requestedColourDepth = 32;
                            EIEIFLAG flags = EIEIFLAG.IEIFLAG_ASPECT | EIEIFLAG.IEIFLAG_SCREEN;
                            int uFlags = (int)flags;
                            try
                            {
                                extractImage.GetLocation(location, location.Capacity, ref priority, ref sz, requestedColourDepth, ref uFlags);
                                extractImage.Extract(ref hBmp);
                            }
                            catch (System.Runtime.InteropServices.COMException ex)
                            {
     
                            }
                            if (hBmp != IntPtr.Zero)
                            {
                                _thumbNail = Bitmap.FromHbitmap(hBmp);
                            }
                            Marshal.ReleaseComObject(extractImage);
                            extractImage = null;
                        }
                        return true;
                    }
                    else
                    {
                        return false;
                    }
                }
                catch (Exception ex)
                {
                    if (hBmp != IntPtr.Zero)
                    {
                        UnmanagedMethods.DeleteObject(hBmp);
                    }
                    if (extractImage != null)
                    {
                        Marshal.ReleaseComObject(extractImage);
                    }
                    throw ex;
                }
            }
     
            private string PathFromPidl(IntPtr pidl)
            {
                StringBuilder path = new StringBuilder(260, 260);
                int result = UnmanagedMethods.SHGetPathFromIDList(pidl, path);
                if (result == 0)
                {
                    return string.Empty;
                }
                else
                {
                    return path.ToString();
                }
            }
     
            private IShellFolder getDesktopFolder
            {
                get
                {
                    IShellFolder ppshf = null;
                    int r = UnmanagedMethods.SHGetDesktopFolder(ref ppshf);
                    return ppshf;
                }
            }
     
            public void Dispose()
            {
                if (!disposed)
                {
                    if (alloc != null)
                    {
                        Marshal.ReleaseComObject(alloc);
                    }
                    alloc = null;
                    if (_thumbNail != null)
                    {
                        _thumbNail.Dispose();
                    }
                    disposed = true;
                }
            }
        }
    }

    En revanche, un fichier *.xcf provoquer une erreur (renvoyée par l'API Windows) indiquant que la méthode n'est pas supportée (Gimp ne sait pas retourner une thumbnail de ses propres fichiers).

    Il doit être possible de la faire évoluer pour récupérer aussi les meta du fichier... à voir.

    Attention cependant, vu qu'on passe par l'API Windows, et donc l'explorateur Windows, il faut que le fichier soit correctement associé à la bonne application qui sait générer une miniature.
    Cela veut dire que pour un fichier *.vzs qui n'a rien de standard, il faudra absolument que le programme qui permet de les manipuler soit correctement installé sur le PC qui fait tourner le programme !

Discussions similaires

  1. [XL-2016] Obtenir les data sources d'un graph en VBA.
    Par lrnv69 dans le forum Macros et VBA Excel
    Réponses: 0
    Dernier message: 16/05/2016, 22h14
  2. Réponses: 3
    Dernier message: 01/04/2010, 17h52
  3. [Débutant][VB 5.0] Obtenir les groupes locaux W2K
    Par Banana_Ultra dans le forum VB 6 et antérieur
    Réponses: 8
    Dernier message: 01/10/2004, 14h07
  4. [VBA]Obtenir les noms des polices disponibles
    Par xp dans le forum VBA Access
    Réponses: 2
    Dernier message: 04/03/2004, 15h39
  5. Obtenir les taches en cours
    Par mlerat22 dans le forum MFC
    Réponses: 3
    Dernier message: 17/06/2002, 12h36

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo