?
Solved

Client-side image printing

Posted on 2007-04-02
5
Medium Priority
?
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 16

Accepted Solution

by:
AlexNek earned 2000 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
Suggested Courses

777 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