打印到表中列出的打印机名称 [英] Print to printer name listed in table

查看:116
本文介绍了打印到表中列出的打印机名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,

我正在创建的访问应用程序,将.dbf文件拉入访问表中。要打印到的打印机的名称包含在该文件/表中。


如果我匹配表中的名称,我将如何在我的电脑上循环打印机列表然后将打印机设置为该特定打印机..?

我正在尝试此代码并且它似乎无法正常工作

Hey all,
The access app I am creating, pulls a .dbf file into a table in access. The name of the printer to be printed to is contained in that file/table.

How would I cycle through the list of printers on my pc until i matched the name in the table and then set the printer to that specific printer..?

I am trying this code and it doesn''t seem to work

展开 | 选择 | Wrap | 行号

推荐答案

使用以下代码在您的系统上显示您的打印机

Use the following code to display your printers on your system

展开 | 选择 | Wrap | 行号



嘿所有,

我正在创建的访问应用程序,将.dbf文件拉入访问表中。要打印到的打印机的名称包含在该文件/表中。


如果我匹配表中的名称,我将如何在我的电脑上循环打印机列表然后将打印机设置为该特定打印机..?

我正在尝试此代码并且它似乎无法正常工作
Hey all,
The access app I am creating, pulls a .dbf file into a table in access. The name of the printer to be printed to is contained in that file/table.

How would I cycle through the list of printers on my pc until i matched the name in the table and then set the printer to that specific printer..?

I am trying this code and it doesn''t seem to work
展开 | 选择 | Wrap | 行号


Ok到目前为止没有任何建议可以帮助我。让我说清楚一点。根据用户创建包含打印机名称的.dbf文件的内容,打印机将不同..(即greta,romeo,excalibur)


这些都是我打印机上安装的打印机。


如果我将prntpdf设置为其中一个名称,我将如何循环浏览已安装的打印机名称,直到我匹配prntpdf的值然后将打印机设置为该索引?


这是一个完全自动化的功能,目标是设置一批报告打印并将其打印到特定的打印机而无需用户干预。
Ok none of the suggestions help me so far.. Let me make it more clear. Depending on what user created the .dbf file containing the printer name, the printer will be different.. (ie. greta, romeo, excalibur)

These are all printers installed on my printer.

If I set prntpdf = to one of those names, how would I go about looping through the installed printer names until I matched the value of prntpdf and then set the printer to that index?

This is to be a totally automated function, the goal is to set a batch of reports to print and print them to a specific printer with out user intervention.


这篇关于打印到表中列出的打印机名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆