Printer Controls (ASP / VBScript)

P

Paul White

I've written a POS system for a client, but we're having problems with the
customer receipt printing. The printer has a left margin gap of about 1
inch. I need to reduce that left margin width in order to prevent
wrap-around.

I have looked up the printer on the web and found a manual for it which
describes the printer escape sequences to send to the printer to control the
left margin, but I'm not sure how to go about it. The printer is a
PP3000UM.

The manual provides the control codes for page layout. The left margin
commands are ...

ESC I " n" --- Set left margin

.... so I assume I need to send a chr(27) & "I" &"1", to make the margin as
small as possible.

Is that right ?
 
D

Don Verhagen

In Paul White <[email protected]> typed:
: I've written a POS system for a client, but we're having problems
: with the customer receipt printing. The printer has a left margin
: gap of about 1 inch. I need to reduce that left margin width in
: order to prevent wrap-around.
:
: I have looked up the printer on the web and found a manual for it
: which describes the printer escape sequences to send to the printer
: to control the left margin, but I'm not sure how to go about it. The
: printer is a PP3000UM.

You cannot do anything to the client PC printer from ASP directly(ie change
margins, select trays, etc...). The only way, that I know of, would be to
install an ActiveX component.

Is this a network printer? If so, you could write a PCL file to disk
(server) and then execute a DOS command similiar to: copy /b myreceipt.pcl
//sharename/printername

Don Verhagen
Tandem Staffing Solutions, Inc.
 

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

Members online

No members online now.

Forum statistics

Threads
473,815
Messages
2,569,702
Members
45,494
Latest member
KandyFrank

Latest Threads

Top