Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. DustDevil1980

    Send php output to printer

    That will only parse to the screen and not to the printer.
  2. DustDevil1980

    Send php output to printer

    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.
  3. DustDevil1980

    Send php output to printer

    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...
  4. DustDevil1980

    Send php output to printer

    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.
  5. DustDevil1980

    Send php output to printer

    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'
  6. DustDevil1980

    Send php output to printer

    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’...
  7. DustDevil1980

    Automatically Change 'Null' to '0' to unknown # of fields

    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...
  8. DustDevil1980

    Change background color upon data entry

    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...
  9. DustDevil1980

    Reduce the Fontsize if to large for text box

    Thanks Duane! it works great. This is the second time you've saved my butt. Star for you.
  10. DustDevil1980

    Reduce the Fontsize if to large for text box

    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.
  11. DustDevil1980

    Reduce the Fontsize if to large for text box

    The only problem with doing it that way is I'm using the Ariel font. So if I have ten (10) &quot;W&quot;'s its going to max out as opposed to having ten (10) &quot;I&quot;'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...
  12. DustDevil1980

    Reduce the Fontsize if to large for text box

    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 &quot;can grow&quot; event to...
  13. DustDevil1980

    Verticaly center text box between two horizontal lines

    Awesome!!! Its a lot of code for something that seems so simple, but it works!!! Thank You!!! :D
  14. DustDevil1980

    Verticaly center text box between two horizontal lines

    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...

Part and Inventory Search

Back
Top