Article View: free.it.visual-basic
Article #3395Re: stampa
From: Anak
Date: Thu, 11 Jul 2002 17:51
Date: Thu, 11 Jul 2002 17:51
25 lines
1732 bytes
1732 bytes
"Alessandro" <aleni@inwind.it> ha scritto nel messaggio
news:H3iX8.23422$K_4.547556@twister1.libero.it...
> errore di run-time quando non ho installata una stampante, sulla seguente
> linea:
> If Trim(Printer.DeviceName) = "" Then
> on error goto 0
> end if
> como posso evitare l'errore
Se non hai installata la stampante ti suggerisco di fare una routine
gestione errori del genere:
sub pippo()
on error goto errortrap
..
..
..
exit sub
errortrap:
if err=482 then
exit sub: rem oppure metti ci� che piu ti pu� servire in questo
caso :)
end if
end sub
Technical Details
Message-ID:
<iAjX8.57162$Jj7.1505185@news1.tin.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.infoave.net!newsfeed.frii.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mailReferences:
<H3iX8.23422$K_4.547556@twister1.libero.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,6db9351d973c64f4 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2002-07-11 11:12:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.infoave.net!newsfeed.frii.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail From: "Anak" <anakthewolf@libero.it> Newsgroups: free.it.visual-basic References: <H3iX8.23422$K_4.547556@twister1.libero.it> Subject: Re: stampa Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <iAjX8.57162$Jj7.1505185@news1.tin.it> Date: Thu, 11 Jul 2002 17:51:10 GMT NNTP-Posting-Host: 212.171.178.232 X-Complaints-To: newsmaster@tin.it X-Trace: news1.tin.it 1026409870 212.171.178.232 (Thu, 11 Jul 2002 19:51:10 MET DST) NNTP-Posting-Date: Thu, 11 Jul 2002 19:51:10 MET DST Organization: TIN