Site Intranet : Impression auto des PDF
Salut tout le monde ,
j'ai un site intranet, à partir duquel je voudrais imprimer automatiquement des documents PDF,
voilà le bout de code que j'utilise pour cela , et mon problème c'est que il passe par tout ça mais il fait rien, je comprends pas ce qui ne va pas
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Dim P As System.Diagnostics.Process = New System.Diagnostics.Process
Dim FileName As String
FileName = "\\serveur\PDF\nomfichier.pdf"
P.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal
P.StartInfo.UseShellExecute = True
P.StartInfo.FileName = FileName
P.StartInfo.Arguments = "HP Color LaserJet 2605"
P.StartInfo.Verb = "PrintTo"
P.StartInfo.CreateNoWindow = True
P.Start() |
Merci de m'aider