473,699 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4577
In news:el******** ******@TK2MSFTN GP10.phx.gbl,
Paul White <pw*@bigpond.ne t.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
1720
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 = server.CreateObject("Scripting.FileSystemObject") Set objPrinter = objFS.CreateTextFile("\\printserver\printername", True) objPrinter.Write("testing printing") -- 5khzgjf9e001@sneakemail.com
16
48872
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 a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free programs for creating PDF documents provided free by Russell Lang. The actual automation requires VBA...
1
2570
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 through VBScript/Javascript? - What is the best way to get this done? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
5
2600
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 when it's best to use server side events. For example, if a textbox is to contain a date I want to validate the date when that textbox loses the focus. If the date is not valid I make visible a label next to the textbox telling the user it's
6
2559
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 printing would have to bypass the printer driver.. i have read several article on sending file directly to a printer, but i could not understand how could i get the printername from the ports(especially when there is no driver install)? Can anyone...
0
1068
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 codes have been tested correct, in the sense they run correctly command mode, using VB Scripting Host. Therefore it think it is a access permission issue. I suspect it is because the account running ASP scripts has not got the rights to control...
3
5557
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 are then showed in IE 6 for checking and then have to be printed. To correct printing the sheets I have to change the print margins and paper orientation from IE 6 settings. Reading around it looks like I can't change IE 6 print settings without
4
1933
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 Vbscript and Activex control, will the site developed in Asp.net2.0 work fine on IE5.0 Mac Os? Any body who has viewed the working of ASP.NET2.0 with rich controls
5
4172
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 to go about this, perhaps the only way is by having an 'emergency print' button that quickly prints thedocument to one, or even better all printers on the network. That way when everyone is leaving they can grab the print from the printer.
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9173
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8911
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8882
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7748
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5872
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.