Solved

Client-side image printing

Posted on 2007-04-02
5
226 Views
Last Modified: 2012-05-05
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
Comment
Question by:DotNetThinker
  • 3
5 Comments
 
LVL 16

Accepted Solution

by:
AlexNek earned 500 total points
ID: 18839951
Could you create an aditional popup window only for printing?
0
 
LVL 6

Expert Comment

by:ije
ID: 18840163
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
 
LVL 29

Expert Comment

by:Badotz
ID: 18842010
Perhaps send the image to the user as an email attachment?
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18842333
Do you think about this?
<A HREF="javascript:window.print()"> <IMG SRC="image.jpg" BORDER="0"</A>
0
 
LVL 16

Assisted Solution

by:AlexNek
AlexNek earned 500 total points
ID: 18842399
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now