🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1263

Re: Come faccio ad impostare la stampante predefinita?

#1263
From: ago
Date: Mon, 06 Sep 2004 21:27
32 lines
1869 bytes
semplicemente utilizzando il commondialog setti il tipo di formato, la
stampante, il font etc
penso che sia questo ci� che stai cercando
ciao


"Tixio" <nom@il.thanks> ha scritto nel messaggio
news:YRJ_c.78408$1V3.1916344@twister2.libero.it...
> Salve a tutti!
> Ho bisogno di aiuto: avrei bisogno di impostare via software la stampante
> predefinita e impostare il formato di carta "A3"...possiedo Visual Basic
6.0
> su Windows 98.
> Ho provato ad utilizzare il seguente codice ma non succede niente...e non
> ricevo alcun messaggio di errore.
>
> Dim P As Printer
> For Each P In Printers
>     If P.Port = "LPT1:" And P.DeviceName = "HP Laserjet" Then
>         Set Printer = P
>         Printer.PaperSize = vbPRPSA3   'Imposta il formato A3
>         Exit For
>     End If
> Next P
>
> Qualcuno pu� "illuminarmi"?
> Grazie 1000!
>     Tiziano
>
>
>
>
Technical Details
Message-ID: <XC4%c.265648$5D1.11947672@news4.tin.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
References: <YRJ_c.78408$1V3.1916344@twister2.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,fe1237ce48693b48
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
From: "ago" <ago@tin.it>
Newsgroups: free.it.visual-basic
References: <YRJ_c.78408$1V3.1916344@twister2.libero.it>
Subject: Re: Come faccio ad impostare la stampante predefinita?
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <XC4%c.265648$5D1.11947672@news4.tin.it>
Date: Mon, 06 Sep 2004 21:27:19 GMT
NNTP-Posting-Host: 80.116.93.69
X-Complaints-To: "Please send abuse reports to abuse@tin.it and technical notifications to newsmaster@tin.it"
X-Trace: news4.tin.it 1094506039 80.116.93.69 (Mon, 06 Sep 2004 23:27:19 MET DST)
NNTP-Posting-Date: Mon, 06 Sep 2004 23:27:19 MET DST
Organization: TIN