Código Delphi [-] if not WinSpool.OpenPrinter(@sDevice, hPrinter, nil) then exit;
if not WinSpool.OpenPrinter(@sDevice, hPrinter, nil) then exit;