Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i am trying to do it simple and will be happy to see / hear, examples / ideas
for the right approach :

suppose i have an jpg image: width of 780px and height of 2546px
that contains coupons.

my goal is to click on a coupon and print it...

my question is what is the best way to implement it

i thought about image map the will trigger a java script call when ever specific "coupon" is clicked and through the image map specification it would load an image(of the specific) coupon for printing.

i think that maybe there is a better solution..

keep in mind that my only option is one large image that contains coupons for printing.
Posted
Comments
fjdiewornncalwe 17-Oct-12 11:56am    
Could you explain why your only option is to have one large image?

Create an image cropping control[^]

May be the above link can help. It will allow you to select certain area on the image.

[edit] clickable link [/edit]
 
Share this answer
 
v3
i did it eventually with the use of image maps:

coordinated the 'send to print button' and send to javascript 'print()' method that accept parameter

the parameter is a number of a picture(coupon)

i have a folder that contains all the coupons images:
1.jpg, 2.jpg ..... etc'

the print method retrieve the string (1.jpg)
and then print it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900