Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Does net::lpr work with win32::printer?

Avatar of ralphs1961
ralphs1961Flag for Canada asked on
Perl
11 Comments1 Solution533 ViewsLast Modified:
Hi,

I have an interesting problem.  I need to be able to print to printers across a vpn network.  I have set up windows drivers for the printers which are all okidata ml320 turbos.  using win32::printer to format the output I am able to  print results on various printers.  However with the ml320s they only print in nlq.  this is way to much ink.  

Unfortunately I read somewhere that win32::printer resets the printer to defaults.  I have set all the printer drivers to the fastest printing drivers, including the defaults in the windows drivers. I have changed the settings in the printer and it always prints nlq.  It seems that win32 printer uses the factory settings and you can't change them.  This is apparently a fault in the drivers supplied by windows.

I have learned that win32::printer doesn't support printer commands.  (or at least I haven't found out how)  If you know how to do this it would be greatly helpful.  As then I would be able to control the printer directly.  However it seems that net::lpr means that I could bypass the windows drivers.  So my question is will net::lpr accept the formatting from win32::printer and can any one supply a snippet of code to show how.
ASKER CERTIFIED SOLUTION
Avatar of clockwatcher
clockwatcher

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answers