VBA: print .prn files to a network printer using LPR

D

Dandelion026

I have this Word VBA code that merges a number of documents into .PRN files.

Next I want to send these .PRN files to a network printer using the lpr
command.

At this moment I try to do this with the following piece of code:

' Send PRN files to Emtex
Call Shell("lpr -S 10.x.x.x -P dl-pcl" & strPath & "*.prn")

when debugging the code the step is passed without errors but no files
appear in the printerqueue.

Does anyone have an idea how to do this?

Thanks in @vance
Jaap
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top