# Re: 急问: 找回预设列表机?

Posted by cckannie on August 24, 1998 at 15:55:19:

In Reply to: Re: 急问: 找回预设列表机? posted by Rose on August 24, 1998 at 10:47:37:

: : 只是想请教各位高手, 如何取出目前windows的预设列表机值而已.
: 我是这样取预设印表机的,你试试
: Dim Length As Long
: dim DefPrinter as string
: Length = GetProfileString("windows", "device", "", DefPrinter, Len(DefPrinter))
: DefPrinter = Left(DefPrinter, Length)

我已测试过您的方式, 得到Length=0, DefPrinter="",
请问这结果是正常的吗?
那我应如何将列表机设定此预设值呢?

Follow Ups:

- Re: 急问: 找回预设列表机? Rose 15:59:12 8/26/98 (0)