- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- pc emulator print to local print
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 06:34 AM
тАО04-20-2006 06:34 AM
pc emulator print to local print
The problem is all the escape sequences either disappear or are printed as raw text. The print job is sending landscape, underline, and compress escape sequences.
I have tried 3 different emulators and multiple models of HP laser printers and ink jets. The results are basically the same each time. If I send to the VMS queued printer the report looks correct. If I change the printer to be local the report is NOT compressed, NOT landscape, and NO underlines on the headings. The VMS output file is the same both ways.
I have tried turning off spooling on the windows side and told it to use direct printing.
Any help or suggestions would be highly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 06:48 AM
тАО04-20-2006 06:48 AM
Re: pc emulator print to local print
Why send the job through the PC if it works sending it direct to the printer ?
When sending the job through the PC, the printdriver will try to format the job......
You need to tell the PC to "don't touch !"
This can be done by using /PASSALL when printing the job on VMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 06:58 AM
тАО04-20-2006 06:58 AM
Re: pc emulator print to local print
Only when going from pc to local printer does it fail. I can even use the same printer i used when it went through a VMS queue and direct ip connection.
I am just hoping that some of you out there that use pc's a LOT have solved this already. I RARELY USE PC'S. Unlike this years april fools article....my desktop REALLY IS VMS 8.2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 07:26 AM
тАО04-20-2006 07:26 AM
Re: pc emulator print to local print
So is your program using the print-controller escape sequences
I've had some luck using the "generic" windows printer. This sometimes works and sometimes doesn't -- a typical Windows phenomenon.
The Reflection emulator that I often use has a "bypass windows print driver" check box that also sometimes works and sometimes doesn't, or sometimes it'll work for awhile and then fail. Just like Windows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 07:30 AM
тАО04-20-2006 07:30 AM
Re: pc emulator print to local print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 08:11 AM
тАО04-20-2006 08:11 AM
Re: pc emulator print to local print
Your problem is with the Windows driver, so you can either get the Generic driver to work, or use an emulator that can bypass the Windows print driver. There are probably other local-printing solutions, but they would likely involve converting the report into something your windows driver understands.
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 08:17 AM
тАО04-20-2006 08:17 AM
Re: pc emulator print to local print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:50 AM
тАО04-20-2006 09:50 AM
Re: pc emulator print to local print
I've moved all specially formatted reports that come from VMS off to networked printers because I couldn't rely on Windows printing. XP seems especially frustrating. You can buy print-server devices for less cost than the time you'll spend fighting Windows.
I have one client where we were doing exactly what you are trying to do by using the Generic /Text driver. That stopped working for some reason and we've never been able to make it work there again. I love troubleshooting and I'm pretty good at it but with Windows, the point of deminishing returns comes very quickly. I moved the reports to the network.
For years I did controller-port local printing with embedded PCL codes here at my desk using the Reflection "bypass printer driver" switch, but it stopped working reliably with XP. It sometimes works for awhile if I remove and re-add the printer using an older driver, then update the driver. The very-latest Reflection version might solve this, but I'm too cheap to spend the money since all of the VMS stuff works now. I never did get PowerTerm to print right.
There are print capture programs you can buy, Snagit comes to mind, but I haven't looked at them for years. You select that printer in your emulator and it captures the report, displays, reformats it, lets you save it or print it and so forth.
Your problem is caused by the way Windows handles printers. Maybe someone else has the magic answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 01:05 PM
тАО04-20-2006 01:05 PM
Re: pc emulator print to local print
Add a local printer, and create a new port for it of type "HP standard TCP/IP port"
Enter the printer ip address and a port name, it should create it using the RAW protocol.
Then you can try this with both the correct HP printer driver and with generic/text.
If that doesn't work, you could
Create a local printer on LPT1 generic/text
at a cmd prompt enter
NET USE LPT1: \\server\printer
then COPY
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 07:02 PM
тАО04-20-2006 07:02 PM
Re: pc emulator print to local print
The only solution that worked was VRQ Reflection with option "bypass window driver". They also had esc sequences. Had to play a little bit with parameters butit worked.
The only problem was that Reflection is very expensive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:09 PM
тАО04-20-2006 09:09 PM
Re: pc emulator print to local print
You could easily write Reflections Basic commands to change the Reflections Print Setup settings to Landscape, etc, then send the text without any escape sequences involved.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:12 PM
тАО04-20-2006 09:12 PM
Re: pc emulator print to local print
$!
$! ESC+"P2000;1{ calls Reflection Basic, needed for .connectionsettings syntax
$!
$ ESC[0,8]=%X1B
$ WRQ1=ESC+"P2000;0{"
$ ST = ESC+"\"
$!
$ write sys$output WRQ1+"Sub Main "
$ write sys$output " Application.ConnectionSettings = ""ExitAllowed FALSE""
$ write sys$output "End Sub"+ST
$!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2006 07:41 PM
тАО04-22-2006 07:41 PM
Re: pc emulator print to local print
I can't understand how you send data to local print :-?
You can do this in various ways:
a) Sending data to emulator via escape codes to printer (I guess this is you way)
b) Using lpr/lpd protocol (this feature works bad in windows)
c) Using pwprint in pathwork32
Reading previous messages, I think you send data to emulator and than emulator sends data to the printer. Don't forget, Windows takes a full control of printer queue; it uses a legacy image called EMF while you MUST send data directly to the printer.
At last but not least, you have to configure your emulator to send data to device (usually lpt1:) not to the print manager. Even if you load text driver, Windows print manager cut every line into 80 bytes!
I summarize:
1) Check if local printer is not host based driver. Read here for "host based driver" problem http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1016266
If yes, stop it.
2) If you printer is connected via USB, stop it.
3) Install msdos driver or enable msdos printing (e.g. most of HP LaserJet have two kind of drivers).
4) Open cmd (msdos command interpreter) on PC; type
dir > lpt1:
(where lpt1 is the really printer port).
5) If direct msdos print works, configure your emulator to send data to local device
I'm using several print model on different windows version. If you post exactly the informations about your PC, printer, etc. I can help you.
Antonio
http://it.openvms.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 12:48 AM
тАО04-25-2006 12:48 AM
Re: pc emulator print to local print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 06:50 PM
тАО04-25-2006 06:50 PM
Re: pc emulator print to local print
have you got Pathwork32?
Pathwork32 has a unsupportated printer server that can print from VMS to PC.
Antonio
http://it.openvms.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 07:59 PM
тАО04-25-2006 07:59 PM
Re: pc emulator print to local print
I took a closer look at your problem.....
It's NOT the printerdriver that causes the problem,.....it's the EMULATOR !
I tried two emulators, Pathworks PowerTerm and Hyperterm. Powerterm works like a charm, but not Hyperterm.
What do the files look like before and after the printdriver ?
My testfile looked like
I stopped my local queue and typed the file in both emulators. Having a look at the files in the spooldirectory C:\windows\system32\spool\printers showed that Hyperterm stripps the
This should be printed LANDSCAPE
and that is why it printed OK !
Reflection is not the only solution,
PowerTerm is another.......
I consider changing emulator a workaround, not a solution.
I'll be back......
regards,
Hakan Andersson
As Antoniov mentioned, a possible solution could be to let VMS print to a shared windowsqueue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 09:05 PM
тАО04-25-2006 09:05 PM
Re: pc emulator print to local print
I found, downloaded and tested two more emulators ( AniTA & KoalaTerm ). Both worked with my testfile.........
regards,
Hakan Andersson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2006 10:36 AM
тАО05-02-2006 10:36 AM
Re: pc emulator print to local print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2006 10:37 AM
тАО05-02-2006 10:37 AM
Re: pc emulator print to local print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2006 03:51 AM
тАО05-06-2006 03:51 AM
Re: pc emulator print to local print
I am just a happy customer and not associated with that company. WinLPR is a replacement for the Microsoft LPD routines and will accept incoming LPR jobs ... I send jobs to it from VMS and Unix/Linux just fine.
It probably is overkill for your situation, but does work reliably for me; it allows you to make any number of virtual queues for incoming jobs to target, each pointing to the same or different physical Windows print queues (local or networked) and each virtual queue can have a different header prefix (for Linux output, just like a setup module in VMS).
In addition, the use of another Windows app may be a complication you wish to avoid ...
See http://www.alixoft.com for details (again, I'm just a very happy customer; $25 cost for one copy, see website for more pricing).
Also I just found an old email from 1996 where I tested and recommended to my remote users they buy SmarTerm from Persoft (now www.esker.com) for passthru remote printing from VMS (using the [5i/[4i ESC sequences) ... but it too may be expensive just like Reflections (obviously the product has evolved since 1996 :-) ).
Verne