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 Private Const SW_HIDE = 0 Private Sub Command1_Click()
ShellExecute hwnd, "print", App.Path & cstVentesParMoisHTMLFile, "", "", SW_HIDE
End Sub
execuse il manquait la declaration
------------------------------- Réponse au message : -------------------------------
> > Private Sub Command1_Click() > > ShellExecute hwnd, "print", App.Path & HTMLFile, "", "", SW_HIDE > > End Sub > > > ------------------------------- > Réponse au message : > ------------------------------- > > > salut > > > > quand je lance mon appli mes resultats vont sur une feuille de type frmbrowser de vb. Je souhaite imprimer ces resultats à partir de la feuille de resultat en cliquant sur un bouton. > > > > Merci par avance >
|