473,546 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php_printer printer_get_opt ion($my_printer , PRINTER_PAPER_W IDTH) function

Where does the printer_get_opt ion($my_printer , PRINTER_PAPER_W IDTH) get
the value from? I am trying to print to a Genicom 4490XT (a line
printer) and the width is off. I try to set the width with
printer_set_opt ion( $my_printer,PRI NTER_PAPER_WIDT H, 340); but it
doesn't work. When I print with printer_write($ my_printer,
"1234567890...1 234567890"') it only prints to about 215.

Another problem I am having is that it is printing the first character
or two at the end of the lines and in the front such as:
123456789 12
456789012 45

And I have no idea what would be causing that.

Any ideas?

Jan 12 '06 #1
0 1401

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
20605
by: Stefan | last post by:
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir = "c:/php/extensions/" But I am still getting the error that it can't find the php_mhash.dll though I can see that it is indeed in the folder.
3
8874
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns a empty value instead of returning the browser type. Here is the line which i am using in my code and from manual: <?php echo $_SERVER; ?>
0
2414
by: alain dhaene | last post by:
Hi, I want to print something. But i get the error : Call to undefined function: printer_open() in C:\Program Files\Apache Group\Apache2\htdocs\printer.php on line 4 follow by a messagebox : unable to load dynamic library './php_printer.dll' Where can I find this library? I have change my php.ini in :
3
22250
by: Willis Lang | last post by:
Warning: Unknown(): Unable to load dynamic library './php_oci8.dll' - Access is denied. Error keeps coming up on server. I made sure the security settings were set on the file and all recursive directories just in case. Moved the file around everywhere. (c:\winnt\system32, c:\winnt, d drive) Changed IIS to control password. Tried...
9
4940
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or...
1
4905
by: Bob | last post by:
I am trying print labels from a networked printer. Can I use php_printer.dll with Win XP? Returned from the webserver: Unable to load dynamic library 'c:/php/php_printer.dll'- The specified procedure could not be found. Fatal error: Call to undefined function: printer_open() in C:\xitami\xitami-24\app\webpages\label_printer_test.php...
3
7471
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work on her local machine. Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL works great. Apache runs. PHP runs. But when I...
0
1482
by: What What | last post by:
I'm trying to print a report to a printer directly using PHP printer function. I have code like the following one. <? if($handle=printer_open()){ print "Printer Connected<br>"; } printer_write($handle, "Text to print"); printer_close($handle); ?>
1
6455
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located...
0
7435
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...
0
7694
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. ...
0
7947
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...
0
7792
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...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
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...
0
3491
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...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.