[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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