Ciao
Qui utilizzo in un mio applicativo l'esecuzione di un programma eseguibile sul server non sul client per convertire le immagini barcode da verticali a orizzontali utilizzando un run tramite WScript.
il campo CODOGGETTO è il nome del file senza estenzione nella tabella Access 2007
spero ti sia utile per studiarci su
codice:
sub Converti(fname)
ON ERROR GOTO 0
Set objShell = CreateObject("WScript.Shell")
SQL1="select * from StampaBarcode where CODOGGETTO = "&fname
RS1.Open SQL1, conn2, 3, 3
if not RS1.EOF then
objShell.run server.mappath("CGI")&"\convert.exe -rotate 90 " & server.mappath("images")&"\BC\" & fname & ".bmp " & server.mappath("images")&"\BC\" & fname & ".jpg"
end if
RS1.Close
Set objShell = nothing
end sub