Solved

Client-side image printing

Posted on 2007-04-02
5
229 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…

732 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