473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Printer Controls (ASP / VBScript)


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
1 4561
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James | last post by:
how come when i print programicly my printer says "data received" and it won't print until i press the GO button on the printer? my printer is a HP laser jet 5 Set objFS =...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
1
by: h babu | last post by:
I have a need to send escape sequences to the printer on the client side from a web page using .NET. - Is this first of all possible from a web page rendered through .aspx? - Can this be achieved...
5
by: Mong | last post by:
Hi, I have a webform with various asp controls on it such as textboxes and dropdownlists. I'm fairly new to asp.net coming from VB6 and am wondering when it's best to use client side events and...
6
by: notregister | last post by:
hi, i have been trying to send a printer-ready data to an unknown printer to print. the reason why the printer is unknown is that i do no wish installed any printer driver. so at the end my...
0
by: ykffc | last post by:
I have written some vbscript in ASP. The ASP code can access all Printer data correctly but when it tries to control the printer, such as pausing, resuming print, it does nothing. The written...
3
by: Giovanni Benedetti | last post by:
Hi everybody, sorry for my English first of all. I've an ASP page (ASP 3.0) used on an intranet which fill up some particular Mail sheets getting data from a database. Those pre-compiled sheets...
4
by: dreamamit2001 | last post by:
Hi, I would like to know the ASP.NET2.0's(Controls, Menubar, Validations, Object Data Souce Controls, Treeview Control) compatibility with IE5.0 browser on Mac OS. If I don't use Client side...
5
by: itfetish | last post by:
I have made an electronic sign out book for my office in ASP using VBScript. Problem is, when there is a fire we need to check who is out and who is burning. I have been trying to think of how...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.