Link to home
Start Free TrialLog in
Avatar of R8VI
R8VI

asked on

Asp.net webpage printing

Hi,

I have a webpage that is set on Javascript to window.print which is fine once I but a Receipt printer.

but what I need to know is 2 things
1) How can I set up a template width so that it only prints certain width - either set as HTML or CSS
2) What must i call to cut the receipt

Any help is much appreciated

Thanks
R8VI
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of R8VI
R8VI

ASKER

Hi COBOLdinosaur
thanks for this so that may answer point 1 but what about point 2 sorry
I don't understand what you are asking in point 2.  I assumed it had something to do with the styling of the receipt which would be covered by specifying the media type.

Cd&
Avatar of R8VI

ASKER

Hi,

No like the printers will need to be told when to cut because not always will it be a set style

I want to implement on a receipt printer
Well if the receipt printer has to receive a code to tell it when to cut, then you will probably need some kind of ActiveX embedded in the page to send the code.  However most browsers (other than IE) do not support ActiveX and even Microsoft is now discouraging the use because of the security risks.

Browsers are not designed to control external devices, so you might want to contact the printer manufacturer to see if they have software that allows you to do what you want to do.

Cd&