From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: BRUCE INGALLS Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Wed, 4 Jan 2006 20:17:57 -0500 Message-ID: <534d19de0601041717o991b7abn83f61f46355fb7c0@mail.gmail.com> References: <47f866747f622f.47f622f47f8667@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1136423899 28514 80.91.229.2 (5 Jan 2006 01:18:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2006 01:18:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 05 02:18:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EuJla-0008Oe-Fm for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jan 2006 02:18:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EuJnH-0001j7-KU for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jan 2006 20:19:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EuJn8-0001iI-LP for help-gnu-emacs@gnu.org; Wed, 04 Jan 2006 20:19:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EuJn7-0001fJ-0d for help-gnu-emacs@gnu.org; Wed, 04 Jan 2006 20:19:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EuJn6-0001fG-TC for help-gnu-emacs@gnu.org; Wed, 04 Jan 2006 20:19:44 -0500 Original-Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EuJob-0007NZ-BN for help-gnu-emacs@gnu.org; Wed, 04 Jan 2006 20:21:17 -0500 Original-Received: by wproxy.gmail.com with SMTP id i30so770629wra for ; Wed, 04 Jan 2006 17:17:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mhIfnOCreVpuF7KkJnKLc7l5F0pO/+HiE2kEiuy+od+M3HCC79uQCMXYTfqJlXYgLMlZUYNUDajxIxDyiq/0bbQnwAdSGEbdyn9bb0EUMHqu9wq9LlMyuCEeH0pTRzYU/qmBsZP2b9OkgTYB3/JKmOMe4cjoGjlPMtvhhH3goVs= Original-Received: by 10.54.126.20 with SMTP id y20mr3244633wrc; Wed, 04 Jan 2006 17:17:57 -0800 (PST) Original-Received: by 10.54.127.3 with HTTP; Wed, 4 Jan 2006 17:17:57 -0800 (PST) Original-To: LENNART BORGMAN In-Reply-To: <47f866747f622f.47f622f47f8667@net.lu.se> Content-Disposition: inline X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32433 Archived-At: On 1/4/06, LENNART BORGMAN > Unfortunately I get > > C:\mydir\getPrn.vbs(22, 1) (null): 0x80041017 > > on the line > > For Each objPrinter in colInstalledPrinters > > I have a default printer, of course. Well, that part is Microsoft's code. If you check the URL I provided, in the comments at the top: Windows 2000/NT and Windows 98/95: The Default property is not available I tested it on XP. What version of Windows are you using? Try removing the "Where Default =3D True" at top. I noticed that only the default printer had a ShareName. ...