ShellExecute -> Print sur plusieurs fichiers
Résolu
mtR^
Messages postés
1215
Date d'inscription
Statut
Membre
Dernière intervention
-
mtR^ Messages postés 1215 Date d'inscription Statut Membre Dernière intervention -
mtR^ Messages postés 1215 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- Shellexecute print
- Print artist - Télécharger - Loisirs créatifs
- Print pratic - Télécharger - Photo & Graphisme
- Directory list & print - Télécharger - Divers Utilitaires
- Print manager - Télécharger - Suite bureautique
- Hp universal print driver - Télécharger - Pilotes & Matériel
3 réponses
Salut mtR^,
ShellExecute est une fonction de l'API de Windows.
Microsoft publie sa documentation sur MSDN :
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea?redirectedfrom=MSDN
ShellExecute function
Performs an operation on a specified file.
HINSTANCE ShellExecute(
_In_opt_ HWND hwnd,
_In_opt_ LPCTSTR lpOperation,
_In_ LPCTSTR lpFile,
_In_opt_ LPCTSTR lpParameters,
_In_opt_ LPCTSTR lpDirectory,
_In_ INT nShowCmd
);
Parameters
hwnd [in, optional]
Type: HWND
A handle to the parent window used for displaying a UI or error messages. This value can be NULL if the operation is not associated with a window.
lpOperation [in, optional]
Type: LPCTSTR
A pointer to a null-terminated string, referred to in this case as a verb, that specifies the action to be performed. The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. The following verbs are commonly used:
(...)
print
Prints the file specified by lpFile. If lpFile is not a document file, the function fails.
(...)
lpFile [in]
Type: LPCTSTR
A pointer to a null-terminated string that specifies the file or object on which to execute the specified verb. To specify a Shell namespace object, pass the fully qualified parse name. Note that not all verbs are supported on all objects. For example, not all document types support the "print" verb. If a relative path is used for the lpDirectory parameter do not use a relative path for lpFile.
(...)
Au vu de la doc, il semble bien que si tu veux imprimer plusieurs fichiers, il faille utiliser la fonction ShellExecute autant de fois que de fichiers à imprimer.
Dal
ShellExecute est une fonction de l'API de Windows.
Microsoft publie sa documentation sur MSDN :
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea?redirectedfrom=MSDN
ShellExecute function
Performs an operation on a specified file.
HINSTANCE ShellExecute(
_In_opt_ HWND hwnd,
_In_opt_ LPCTSTR lpOperation,
_In_ LPCTSTR lpFile,
_In_opt_ LPCTSTR lpParameters,
_In_opt_ LPCTSTR lpDirectory,
_In_ INT nShowCmd
);
Parameters
hwnd [in, optional]
Type: HWND
A handle to the parent window used for displaying a UI or error messages. This value can be NULL if the operation is not associated with a window.
lpOperation [in, optional]
Type: LPCTSTR
A pointer to a null-terminated string, referred to in this case as a verb, that specifies the action to be performed. The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. The following verbs are commonly used:
(...)
Prints the file specified by lpFile. If lpFile is not a document file, the function fails.
(...)
lpFile [in]
Type: LPCTSTR
A pointer to a null-terminated string that specifies the file or object on which to execute the specified verb. To specify a Shell namespace object, pass the fully qualified parse name. Note that not all verbs are supported on all objects. For example, not all document types support the "print" verb. If a relative path is used for the lpDirectory parameter do not use a relative path for lpFile.
(...)
Au vu de la doc, il semble bien que si tu veux imprimer plusieurs fichiers, il faille utiliser la fonction ShellExecute autant de fois que de fichiers à imprimer.
Dal