That does work for simple text, but this report is sent to our customers, so it needs formating and grpahics included with it.
I will keep this on hand for other reports that do not require formating.
I was able to run the php code and save the output as a plain html file. I then sent the html file to the printer. However, all my testing was done on screen to save paper. As mentioned above, it just sent the raw unrendered html source code to the printer.
I have spent way too much time on...
I got it to work using fopen() and fread(), the problem is that it strips out all php and SQL code and just passes the html to the printer.
There has to be away to execute the code so I can get the actual data.
How do I pass the contents to the printer?
I tried:
<?
$pHandle = fopen("test.php", "r");
$handle = printer_open("SAVIN4045ePCL6");
printer_set_option($handle, PRINTER_MODE, "raw");
printer_write($handle,$pHandle);
printer_close($handle);
?>
... all I got was 'Resource id # 1'
I have created a report in php that I want to automatically print every day.
<php?
$handle = printer_open("SAVIN4045ePCL6");
printer_set_option($handle, PRINTER_MODE, "raw");
printer_write($handle,"test.php");
printer_close($handle);
?>
The above code just gives me one line with ‘test.php’...
I have a table that contains a number of nulls. It is created from a number of select queries and a make table query and New fields are frequently added to it. I need a way to scan this table to add a '0' for each field that is 'Null'. The only solution I have been able to come up with is...
First and simplest is using Conditional Formatting. Another way is to set the back color to yellow and then set it to transparent or normal using the got/lost focus events. A third way is to put a box behind your controls, set the back color to yellow, then reference to be transparent or normal...
Oh... BTW, I'm using Access 2k on Windows 2k. It seems to me that the answer lies somewhere with the TextWidth property, But as I said ealier, it seemed to give random results. If this is the direction, I can post the code and hopefully figure out why the results are random.
The only problem with doing it that way is I'm using the Ariel font. So if I have ten (10) "W"'s its going to max out as opposed to having ten (10) "I"'s. The text box is three (3) inches long. Is there a way to to say if the value is longer than three (3) inches, then...
I have a report with a very specific (static) layout. In some fields, the data varies from just a few words to an entire paragraph. What I want to do is decrease the fontsize to make it all fit. Is there a way to detect if the data moves to the next line or the "can grow" event to...
How do I verticaly center a text box? I have two horizontal lines and I want to be able to center a text box between them. When I use Can Grow, it only grows down and also moves the line. I need it to grow both Up and Down w/o moving the lines. For example:
-------------------
Text...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.