By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,651 Members | 1,676 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,651 IT Pros & Developers. It's quick & easy.

Printer Controls (ASP / VBScript)

P: n/a

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 ?
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In news:el**************@TK2MSFTNGP10.phx.gbl,
Paul White <pw*@bigpond.net.auNOSPAM> 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.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.