Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

printing for dot matrix printers

1,234 views
Skip to first unread message

24saat

unread,
Jan 15, 2011, 4:11:45 PM1/15/11
to
Hi

I'm looking a solutions dotmatrix printer solution for php.
I need print a form or invoice to dotmatrix printer in browser.


Thanks

Ertan
php and asp.net developer
symfony & kohana specialist
http://www.webtasarimsitesi.com

Jerry Stuckle

unread,
Jan 15, 2011, 4:59:47 PM1/15/11
to

Your best bet is probably to create a pdf and print that.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================

Robert Heller

unread,
Jan 15, 2011, 6:29:04 PM1/15/11
to
At Sat, 15 Jan 2011 16:59:47 -0500 Jerry Stuckle <jstu...@attglobal.net> wrote:

>
> On 1/15/2011 4:11 PM, 24saat wrote:
> > Hi
> >
> > I'm looking a solutions dotmatrix printer solution for php.
> > I need print a form or invoice to dotmatrix printer in browser.
> >
> >
> > Thanks
> >
> > Ertan
> > php and asp.net developer
> > symfony& kohana specialist
> > http://www.webtasarimsitesi.com
>
> Your best bet is probably to create a pdf and print that.

If it is going to a *web browser*, just send simple HTML (eg, not fun
and games with iframes and whatnot), include a .css file with '@media
print' rules. All major web browser know how to print a web page to
whatever passes as the local printer. So long as the stylesheet's
'@media print' rules are reasonably generic and don't play excessive
games with fonts and so long as the page to be printed is not 'colorful'
and is without images, it should be possible for the web browser to send
it to any sort of printer without too much trouble and with a reasonable
faithfulness to the formatting.

>

--
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments



The Natural Philosopher

unread,
Jan 15, 2011, 8:14:23 PM1/15/11
to
24saat wrote:
> Hi
>
> I'm looking a solutions dotmatrix printer solution for php.
> I need print a form or invoice to dotmatrix printer in browser.
>
>

browser printing is not server sde implementable unless maybe you use
server side supplied java.

There is a limit to how much te server is allowed to take over any
client for security reasons.

My solution is to send downloadable PDFS.

You can download a print file, BUt the client has to initiate printing.

Jerry Stuckle

unread,
Jan 15, 2011, 9:05:44 PM1/15/11
to
On 1/15/2011 6:29 PM, Robert Heller wrote:
> At Sat, 15 Jan 2011 16:59:47 -0500 Jerry Stuckle<jstu...@attglobal.net> wrote:
>
>>
>> On 1/15/2011 4:11 PM, 24saat wrote:
>>> Hi
>>>
>>> I'm looking a solutions dotmatrix printer solution for php.
>>> I need print a form or invoice to dotmatrix printer in browser.
>>>
>>>
>>> Thanks
>>>
>>> Ertan
>>> php and asp.net developer
>>> symfony& kohana specialist
>>> http://www.webtasarimsitesi.com
>>
>> Your best bet is probably to create a pdf and print that.
>
> If it is going to a *web browser*, just send simple HTML (eg, not fun
> and games with iframes and whatnot), include a .css file with '@media
> print' rules. All major web browser know how to print a web page to
> whatever passes as the local printer. So long as the stylesheet's
> '@media print' rules are reasonably generic and don't play excessive
> games with fonts and so long as the page to be printed is not 'colorful'
> and is without images, it should be possible for the web browser to send
> it to any sort of printer without too much trouble and with a reasonable
> faithfulness to the formatting.
>
>>
>

Simply because different browsers and different printers will print the
same file different ways. HTML is, after all, only a *guide*.

If you want to ensure it prints in the way you want it to (as in an
invoice), pdf is the way to go. It doesn't suffer those problems.

Peter H. Coffin

unread,
Jan 15, 2011, 9:16:12 PM1/15/11
to
On Sat, 15 Jan 2011 13:11:45 -0800 (PST), 24saat wrote:
> Hi
>
> I'm looking a solutions dotmatrix printer solution for php.
> I need print a form or invoice to dotmatrix printer in browser.

Not really a PHP thing. If it's supposed to print at the browser end,
it's out of PHP's control and the browser needs to handle the print
generation. If it's at the server, printing is an OS function.

--
Life does not cease to be funny when people die any more than it ceases
to be serious when people laugh.
-- George Bernard Shaw

0 new messages