cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Print using PCF and postscript

jpegg
2-Explorer

Print using PCF and postscript

I'm trying to set up some PCF's to print from. I've been able to print from the command line successfully using the "lpr" command:

lpr -S IP Address -P Printer Name [-o l] c:\filelocation\post script file name

When I put this line into my PCF file for "plotter_command" (without the "c:\filename\post script file name" part) the printer will turn on like it is going to print but nothing happens. Any advice would be welcome.

My whole PCF is as follows:


plotter POSTSCRIPT
button_name B SIZE SINGLE SHEET
button_help Print Current Sheet on 11x17
plot_drawing_format YES default
plot_segmented NO default
plot_roll_media NO default
plot_label NO default
plot_handshake software default
create_separate_files NO default
plot_with_panzoom YES default
rotate_plotting NO default
allow_file_naming YES
plot_name NO
interface_quality 3 default
plot_destination printer default
plotter_command lpr -S IP adress -Pprintername [-ol]
pen_table_file table.pnt
plot_sheets current default
paper_size B default
paper_outline NO default
plot_clip NO default
plot_area NO default
plot_stroke_text YES

5 REPLIES 5
RandyJones
19-Tanzanite
(To:jpegg)


@jpegg wrote:

I'm trying to set up some PCF's to print from. I've been able to print from the command line successfully using the "lpr" command:

lpr -S IP Address -P Printer Name [-o l] c:\filelocation\post script file name

When I put this line into my PCF file for "plotter_command" (without the "c:\filename\post script file name" part) the printer will turn on like it is going to print but nothing happens. Any advice would be welcome.

My whole PCF is as follows:


plotter POSTSCRIPT
button_name B SIZE SINGLE SHEET
button_help Print Current Sheet on 11x17
plot_drawing_format YES default
plot_segmented NO default
plot_roll_media NO default
plot_label NO default
plot_handshake software default
create_separate_files NO default
plot_with_panzoom YES default
rotate_plotting NO default
allow_file_naming YES
plot_name NO
interface_quality 3 default
plot_destination printer default
plotter_command lpr -S IP adress -Pprintername [-ol]
.

.
.


You have 3 issues that I can see:

1. "IP adress" should actually be a host name or an actual ip address

2. "printername" should be the actual printer name

3. Remove the square brackets from [-ol] Those are simply part of the "how do I use this command" help.

https://technet.microsoft.com/en-us/library/cc731926(v=ws.11).aspx

jpegg
2-Explorer
(To:RandyJones)

I was using our IP address and printer name (didn't see the need to include them in the original post).

 

The printer is a Ricoh.

 

I removed the brackets from "-ol" and got the same result.

 

Thanks for the help!

RandyJones
19-Tanzanite
(To:jpegg)

Your pcf file also has "default" in it for a lot of the options. This should not be there.

For example you have:

plot_destination printer default

And this should be

plot_destination printer

Hi,

 

try this:

 

1.] create myprint.bat (for example in C:\PTC directory)

 

2.] put following line into myprint.bat file

lpr -S IP Address -P Printer Name -o l   %1

 

3.] put following line into pcf file

plotter_command CMD /C C:\PTC\myprint.bat

 


Martin Hanák
dnordin
16-Pearl
(To:jpegg)

I'm not sure why the LPR command would not be working, but have you tried using the windows print manager option?

 

Try a plotter command like the following:

 

plotter_command windows_print_manager \\printerservername\printername

 

Regards,

 

Dan N.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags