Quantcast
Channel: Imprimir pdf automaticamente
Viewing all articles
Browse latest Browse all 20

Imprimir pdf automaticamente

$
0
0

Bueno, pues ya he encontrado la manera de hacerlo:

Ahi dejo el codigo por si le puede valer a alguien o si alguien lo puede mejorar

 

Code Snippet

<html>
<head>
<title>Imprimir PDF</title>
</head>
<body>
<script language="VBScript">

  sub Imprimir_PDF()
    dim i, ruta(3)

    i= 0
    ruta(0)= "c:\1.pdf"
    ruta(1)= "c:\2.pdf"
    ruta(2)= "c:\3.pdf"
  
    for i= 0 to 2
      fnShellExecuteVB ruta(i)
    next
  end sub
 
  function fnShellExecuteVB(druta)
    dim objShell
    set objShell = CreateObject("Shell.Application")
    objShell.ShellExecute druta, "", "", "print", 1
    set objShell = nothing
            
  end function

</script>
<label onclick="Imprimir_PDF">Imprimir PDF</label>
</body>
</html>

 

 

 


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>