• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

Client-side image printing

I'm using C#, .Net 2.0, with javascript. Here's the problem I'm having... I'm dynamically creating images (coupons) that related to certain customers. What I want to do is, after creating the image, to print the image on the client side. I've read up on the .print() javascript method but the problem is that I need to print an image and only that image. I'm printing to a label printer so I don't have the room for headers or footers.

Thanks in advance for any help.

---
Joshua James
0
DotNetThinker
Asked:
DotNetThinker
  • 3
2 Solutions
 
AlexNekCommented:
Could you create an aditional popup window only for printing?
0
 
ijeCommented:
Short answer - there is no way to control the printing of headers and footers in a users browser without hideous plug-ins.

Maybe prompt the user to save and open the image in an image-viewing program?
0
 
BadotzCommented:
Perhaps send the image to the user as an email attachment?
0
 
AlexNekCommented:
Do you think about this?
<A HREF="javascript:window.print()"> <IMG SRC="image.jpg" BORDER="0"</A>
0
 
AlexNekCommented:
Ohh, in my previous post is something other, wrong.
You can add in popup window with only picture one line
<body onload="window.print()">
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now