When you add the printer redirection feature in Remote Desktop Connection to your OS design, a printer connected to a Windows Embedded Compact powered device can print output from a server that is running Remote Desktop Services.
Users can use printer redirection to print to a local printer from a Windows Server 2008 R2, Windows Server 2008, or Windows Server 2003 server within a Remote Desktop Protocol (RDP) session. The local printer can be a printer directly connected to the device or a networked printer. The server detects the local printer that is connected to the Compact 7 powered device when the user initiates an RDP session from the device. If the driver for the local printer is not already installed on the server but is included in the OS setup files, the server automatically locates the driver and initiates driver installation. If the local printer requires a driver that is not installed or available on the version of the server that is hosting the remote connection, you must manually install the driver (the first time, only) on the server to make the printer available to the device from within the RDP session.
To add the printer redirection feature to the OS design, you select the SYSGEN_RDP_PRINTER catalog item in Platform Builder. For more information, see Remote Desktop Connection Catalog Items and Sysgen Variables.
To use printer redirection, you must configure both the Windows Embedded Compact powered device and the server.
In this article:
- Configuring printer redirection in Windows Embedded Compact 7
- Configuring printer redirection on the server
- Known Issues
Configuring printer redirection in Windows Embedded Compact 7
Use the following procedure to configure your Compact 7 device for printer redirection.
To configure your device for printer redirection
-
Connect a printer directly to the Compact 7 powered device (through the USB or parallel port), or connect a networked printer to the Windows Embedded Compact 7 powered device.
-
On the device, click Start, and then click Remote Desktop Connection. Your device may not have a Start button; it will depend on the device’s configuration.
-
In the Remote Desktop Connection dialog box, click the Options button.
-
On the Local Resources tab, under Local devices and resources, select the Printers check box if it is not already selected, and then click the Printers button.
-
In the Printers dialog box, double-click Add Printer. The Printer Wizard starts.
-
On the Printer Wizard page, in the Port list, click the port that you want your printer to use, and then click Next.
The following figure shows the Printer Wizard.
-
Select your printer model from the list of manufacturers and printers. If your printer model is not listed, select the User Defined check box, and then click Next.
-
If you selected a printer from the list, type a name for the printer, and then click Next.
If you selected the User Defined check box for the printer model name, type the name of the printer driver name, which must be installed on the server, and then click Next. Type a name for the printer, and then click Next.
Important: The printer model name must exactly match the name of the printer driver on the server. -
When asked if you want to configure another printer, click No, click Next, and then click Finish.
-
In the Remote Desktop Connection dialog box, continue connecting to the server.
Configuring printer redirection on the server
Use the following procedures to configure Windows Server 2;background-color:#fcfec5;»>Important:
The printer model name must exactly match the name of the printer driver on the server.
When asked if you want to configure another printer, click No, click Next, and then click Finish.
In the Remote Desktop Connection dialog box, continue connecti008 R2, Windows Server 2008, or Windows Server 2003 for printer redirection.
The Compact 7 RDP client does not support Remote Desktop Easy Print. If there is no printer driver on the server, you will need to manually install drivers. For Windows Server 2008 R2, Windows Server 2008, or Windows Server 2003, if you can’t find the printer driver online, you can install the printer driver by using Windows hardware updates. To do this, connect the printer to the server and configure the printer for updates by using the Add Hardware Wizard (hdwwiz.exe). For more information about installing the driver by using Windows hardware updates, see Using the Add Hardware Wizard to Install a Driver Package.
To configure Windows Server 2008 R2 for printer redirection by disabling Group Policy settings
-
To open Group Policy Editor, click Start , click Run, and in the Open box, type gpedit.msc.
-
Expand Computer Configuration, then Administrative Templates, then Windows Components, then Remote Desktop Services, and then Remote Desktop Session Host.
-
Under Desktop Session Host, click Printer Redirection.
-
In the Printer Redirection pane, double-click Do not allow client printer redirection.
-
In the Do not allow client printer redirection dialog box, select Disabled, and then click OK.
-
In the Printer Redirection pane, double-click Use Terminal Services Easy Print printer driver first.
In the Use Terminal Services Easy Print driver first dialog box, select Disabled, and then click OK.
To configure Windows Server 2008 for printer redirection by disabling Group Policy settings
-
To open Group Policy Editor, click Start, click Run, and in the Open box, type gpedit.msc.
-
Expand Computer Configuration, then Administrative Templates, then Windows Components, then Terminal Services, and then Terminal Server.
-
Under Terminal Server, click Printer Redirection.
-
In the Printer Redirection pane, double-click Do not allow client printer redirection.
-
In the Do not allow client printer redirection dialog box, select Disabled, and then click OK.
-
In the Printer Redirection pane, double-click Use Terminal Services Easy Print printer driver first.
-
In the Use Terminal Services Easy Print driver first dialog box, select Disabled, and click OK.
To configure Windows Server 2003 for printer redirection by disabling Group Policy settings
-
To open Group Policy Editor, click Start, click Run, and in the Open box, type gpedit.msc.
-
Expand Computer Configuration, then Administrative Templates, then Windows Components, and then Terminal Services.
-
Under Terminal Services, click Client/Server Data Redirection.
-
In the Client/Server Data Redirection pane, double-click Do not allow client printer redirection.
In Client/Server Data Redirection, select Disabled and click OK.
Known Issues
situation:
windows embedded pos ready 2009; v2.0 with sp3… pretty poor…
problem:
Microsoft is micro-soft and many things are not so easy to be done… so… how to install a generic printer as the driver that is installed inside the system initially… it is someway incompatible?!?
By the same way as described bellow, you may add any other printer from windows setup cd… some of them are very useful and full compatible with huge range of printers, some of them are:
— IBM proprinter II (for old pcl 1-5 protocol dot matric printers)
— Hp LaserJet 4p (this supports almost all graphic printers!)
— Lexmark Optra Plus (useful in order to get print image!)
solution:
note: you will need a windows xp setup cd… (in precise the \i386 directory of it)
lets start…
01. go to Control Panel
02. press to «Add hardware», then press next to the welcome message of the wizard
03. let it search…
04. select «yes, I have already connected the hardware» and press next
05. go to at the end of the list, select «add a new hardware device» and press next
06. select «install the hardware that I manually select from a list (advanced)» and press next
07. from the list select «Printers» and press next
08. select a port, or create a port, or what ever you want and press next
09. here press the button «have disk»
10 Here you must define at «copy manufacture files form:» the «d:\i386» where d is the drive if the the cd drive with windows xp setup cd, or define where you have store the \i386 files from the windows xp setup cd.
11. From Manufacture list select «Generic» and from Printers «Generic / text only» and press next
12. To be sure, select always «replace existing driver» at least once, press next
13. give it a proper and distinctive name and press next
14. in the follow steps of the wizard, select as you want and press next… and finally press the «Finish» when appeared
15. Now, normally, after the press of the Finish button, the wizard will ask you the windows setup disk…. press Ok and navigate it to «d:\i386» where d is the drive if the the cd drive with windows xp setup cd, or define where you have store the \i386 files from the windows xp setup cd; press ok to contitnue
16. the wizard closes and the printer should be created!
ALSO… you may download the cd of windows embedded from here.
- Компьютеры
- Cancel
Для случая, когда дрова есть только под Windows XP — внимательно изучаем здесь Инструкцию.
Идея такая. В Windows 7 ставим бесплатную виртуальную машину Oracle VirtualBox. Машина будет с русским интерфейсом. (Замечательная вещь, которая удобна и быстро работает. Имеет легкий доступ к разделам родительской ОС и имеет удобное для отладки средство скриншотов всего состояния виртуальной машины)
На ней разворачиваем Windows XP, в которую ставим нужный принтер, к которому есть у нас драйвер. Убеждаемся, что он печатает.
Ставим в Windows XP две бесплатные программы Ghostscript в С:\gs и RedMon.
Создаем файл конфигурации C:\gs\printer.rsp:
-IC:\gs\gs9.01\lib;
-sDEVICE=mswinpr2
-dNOPAUSE
-dSAFER
-sPAPERSIZE=a4
-mono
-sOutputFile=»%printer%Canon LBP-810«
В последней строке необходимо указать точное название реального принтера, установленного и настроенного в системе (можно с пробелами). (Для монохромного принтера добавляем строку «-mono» )
Так же проверяем, чтобы путь к библиотеке был верным.
Ставим в Windows XP принтер HP LaserJet 2100 Series PS со следующими настройками:
Устанавливаем новый локальный принтер:
Создать Новый тип порта: Redirect Port
RPT1:
Redirect this port: C:\gs\gs9.01\bin\gswin32c.exe
Arguments: @c:\gs\printer.rsp —
Copy temporary file to printer
Canon LBP-810
Hidden
(в
Инструкции есть картинки)
Убеждаемся, что он печатает, расшариваем его.
Дело осталось за малым. Ставим в Windows 7 встроенный локальный принтер HP LaserJet 2300 Series PS на LPT1.
Потом настраиваем его на локальный порт, указывая в нём сетевой путь до расшаренного в Windows XP принтера HP LaserJet 2100 Series PS.
Это будет что-то вроде: \\VM\LaserJ (Именно на этом форуме sukhoi.ru я и нашел, как все это можно проделать)
Проверяем, что все печатает.
Жадные капиталисты, которые ленятся выпускать дрова для старых принтеров, посрамлены))
Виртуальная машина копируется одним файлом. Для следующего ПК ставим VirtualBox, создаем новую виртуальную машину, а в качестве диска подставляем путь до файла с виртуальной машиной, который у нас уже имеется. Чтобы не было конфликта имен, имя машины с виртуальной Windows XP надо сменить на уникальное.
- Компьютеры
- IT
- Cancel
В посте «Печать через PRN из консольной программы Windows» я написал, что у меня нет принтера. Однако, как оказалось, у меня есть виртуальные принтеры (операционная система Windows 7) и их целых два.
Кнопка «Пуск» — «Устройства и принтеры».
Или «Пуск» — «Панель управления» — «Оборудование и звук» — «Устройства и принтеры».
Виртуальный принтер (вики) — это программа, имитирующая настоящий принтер. Процесс печати может имитироваться с помощью отображения на экране листа бумаги, на котором появляется печатаемый текст или изображение, либо программа сохраняет снимок напечатанного листа в файле какого-нибудь формата на жестком диске.
К примеру, как видно на рисунке выше, у меня установлены виртуальные принтеры: 1) Microsoft Shared Fax Driver (входит в компоненту «Факсы и сканирование Windows»); 2) Microsoft XPS Document Writer.
Первый может использоваться в качестве интернет-факса (вики). При посылке на него задания на печать он создает электронное письмо с вложением в виде картинки в формате TIFF, хранящей снимок листа бумаги с напечатанным текстом или изображением. Это электронное письмо можно сохранить в файле формата EML на жестком диске или отправить по электронной почте.
Со вторым история поинтереснее. Формат XPS (XML Paper Specification, вики) компания Microsoft опубликовала в 2006 году как конкурента формату PDF (для PDF, кстати, существует туча виртуальных принтеров, которые при желании можно установить себе на компьютер), но что-то пошло не так, потому что PDF сейчас используется повсеместно, а о существовании формата XPS лично я узнал только недавно.
При посылке задания на печать на Microsoft XPS Document Writer создается документ, который можно сохранить в файл формата XPS и затем просмотреть встроенной в Windows 7 программой «Средство просмотра XPS».