Pardon ça c'était pour l'enregistrer, il suffit ensuite de faire l'impression de ce fichier. Tu peux utiliser l'API shellexecute : Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ShellExecute 0, "print", "C:\Tonfichier.bmp", vbnullstring, vbNullString, 1
L'expérience, c'est une connerie par jour, mais jamais la même..
|