Hi all,
I am developing an Intranet application that needs output to one or more
printers on the network.
I do have the following questions pertaining fonts and other graphic
capabilities.
Assume the value of $row["CompanyName"] needs to be printed on line 10,
column 4.
The font is Times New Roman (Western), size = 12, face = bold.
What are the settings for:
$font = printer_create_font("Times New Roman
(Western)",72,48,PRINTER_FW_BOLD,false,false, false,0);
What values need to be changed and what is the meaning of each component.
PRINTER_FW_BOLD is obvious but the other ones are a mystery to me.

Here is some code:

        $handle = printer_open("EPSON");
        printer_start_doc($handle, "Header Document");
        printer_start_page($handle);
        $font = printer_create_font
        ("Times New Roman (Western)",72,48,PRINTER_FW_BOLD,
        false, false, false,0);
        printer_select_font($handle, $font);
        printer_draw_text($handle, $row["CompanyName"], 2, 2);
        printer_delete_font($font);

        printer_end_page($handle);
        printer_end_doc($handle);
        printer_close($handle);

This prints out correct? Anyway the value of $row["CompanyName"] is printed.
When I try to print out ASCII value 205, a double line I get the value of
ASCII 143.
Wrong ASCII chart, or is this an OS (Win 98) issue? If so where or how can I
get a "correct" chart?

Thanks,

Dick Davis
[EMAIL PROTECTED]





Reply via email to