明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1434|回复: 2

[求助]请教一下,如何提取本机已安装的所有打印机和打印样式呀

[复制链接]
发表于 2008-11-11 16:13 | 显示全部楼层 |阅读模式
请教一下,如何提取本机已安装的所有打印机和打印样式呀
发表于 2008-11-11 16:26 | 显示全部楼层

GetPlotDeviceNames 方法

获取所有可用的打印设备名称。 

MSITStore:D:\张涛\acadauto.chm::/getplotdevicenames_see_also.htm">参阅 | MSITStore:D:\张涛\acadauto.chm::/ex_getplotdevicenames.htm">示例

语法

RetVal = object.GetPlotDeviceNames()

Object

MSITStore:D:\张涛\acadauto.chm::/idh_layout_object.htm">Layout, MSITStore:D:\张涛\acadauto.chm::/idh_plotconfiguration_object.htm">PlotConfiguration
使用该方法的对象。

RetVal

Variant[变体] (字符串数组)
系统可用打印设备名称的数组。

说明

在第一次用该方法前必须调用 MSITStore:D:\张涛\acadauto.chm::/idh_refreshplotdeviceinfo.htm">RefreshPlotDeviceInfo 方法。一旦调用了 RefreshPlotDeviceInfo 方法,就不需再重新调用,除非打印设备信息在进程中被改变。

-------------------------------------

PlotConfigurations 属性

获取文档的 PlotConfigurations 集合。

MSITStore:D:\张涛\acadauto.chm::/plotconfigurations_see_also.htm">参阅 | MSITStore:D:\张涛\acadauto.chm::/ex_plotconfigurations.htm">示例

语法

object.PlotConfigurations

object

MSITStore:D:\张涛\acadauto.chm::/idh_document_object.htm">Document
使用该属性的对象。

PlotConfigurations

MSITStore:D:\张涛\acadauto.chm::/idh_plotconfigurations_collection.htm">PlotConfigurations 集合; 只读
文档的 PlotConfigurations 集合。

 楼主| 发表于 2008-11-14 13:43 | 显示全部楼层

能给个完整的例子吗

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-18 05:28 , Processed in 0.292055 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表