5067.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: 急问: 找回预设列表机?</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 急问: 找回预设列表机?</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by Rose on August 26, 1998 at 15:59:12:<p>
In Reply to: <a href="5015.html">Re: 急问: 找回预设列表机?</a> posted by cckannie on August 24, 1998 at 15:55:19:<p>
: : : 只是想请教各位高手, 如何取出目前windows的预设列表机值而已.<br>: : 我是这样取预设印表机的,你试试<br>: : Dim Length As Long<br>: : dim DefPrinter as string<br>这里要加上<br>DefPrinter=string(80,chr(0))<p>: : Length = GetProfileString("windows", "device", "", DefPrinter, Len(DefPrinter))<br>: : DefPrinter = Left(DefPrinter, Length)<p>: 我已测试过您的方式, 得到Length=0, DefPrinter="",<br>: 请问这结果是正常的吗?<br>: 那我应如何将列表机设定此预设值呢?<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 5067-->
</ul><!--end: 5067-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?