[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: hp printer initialization from windows
- Subject: Re: hp printer initialization from windows
- From: Julie Waggoner <WAGGO000@MAIL.GENMILLS.COM>
- Date: Thu, 3 Sep 1998 14:01:27 -0500
Thanks for all of your responses!
Here's what I got to work:
encode '<27>' into $esc
let $frontform = $esc || '&l0o0L' || $esc || '&f9y3X' || $esc ||
'&a0r0C'
print $frontform () code-printer=hp
I ran the file with the -PRINTER:HP option
I then printed the .lis file using the MS-DOS prompt with the following
command:
TYPE C:\FILE.LIS > \\GMIPRN01\PRINTER
| | |
DOS command |
| |
File to print |
network share name of printer
I think the problem was not being able to directly print the .lis file
to the printer through windows. For some reason, the .spf file when
printed did not recognize/use the printer commands and I needed a little
push in the right direction on how to properly print the .lis file. I
will be looking into better ways to print the file using some of the
suggestions I have received--I let everyone know if I find something
that works well.
Thanks again!
Julie
> -----Original Message-----
> From: Julie Waggoner
> Sent: Wednesday, September 02, 1998 6:00 PM
> To: 'SQR-USERS@USA.NET'
> Subject: hp printer initialization from windows
>
> Hello everyone,
>
> I am writing SQRs for Maximo 4.0 using SQR WorkBench v4.1.1 for
> Windows 95.
> I have a need to send an initialization string to the printer to pick
> up forms that are set up on the printer and anything I seem to try
> doesn't work. I have tried to use some of the following solutions:
>
> encode '<27>&l0o0L<27>&f9y3X<27>&a0r0C' into $front
> print $front () code-printer=hplaserjet
>
> declare-printer printer1
> type=hplaserjet
> init-string=<27>&l0o0L<27>&f9y3X<27>&a0r0C
> end-declare
>
> encode '<27>' into $esc
> let $front = $esc || '&l0o0L' || $esc || '&f9y3X' || $esc ||
> '&a0r0C'
> print-direct $front
>
> We need the solution to be Windows only. I have tested different
> printing methods with no success. I have tried creating an .spf file
> and printing the file from the viewer and also running SQRW with the
> printer:wp option to send the report directly to the printer. I
> wanted to try and print an .lis file after creating it using the
> -printer:hp command, but I don't know how to do this. If I open the
> .lis file through workbench and print it, garbled binary data is
> printed. Is there a windows equivalent of the DOS print command that
> can be used to send a file directly to the printer?
>
> I was also going to try and use a simple string, such as making the
> text bold, for testing, but I couldn't find a resource to provide me
> the hp initialization code (we are using an HP Laser Jet 4000 Series
> PS). Anyone know of a good resource?
>
> Could the windows printer drivers be interfering with the string I am
> trying to send? Any ideas? Until we can get the forms to print
> automatically, we are having to use pre-printed forms and the user
> does not have a dedicated printer (what a mess)!
>
> Thanks for any help you can provide,
> Julie Waggoner
> General Mills
> waggo000@mail.genmills.com