PrintDocument Problem - Need to print locally

K

kiergaro

I understand there is no way for the Server to see the Client
printers, but I have a routine that generates a bunch of bar codes on
a page and keeps it stored in a Graphics variable. Is there any way
possible to take the graphics variable and put it in a printable
window using windows.print() in Javascript?

Basically i'm doing something like this in the PrintPage()

Dim grfx As Graphics
.
.
.
grfx.DrawImage(myImage, hori + 60, hx, myImage.Width + 60,
myImage.Height + 14)

Then after the final thing is drawn, that's when I need to print it to
client side, not server. Is there any way I can accomplish this?

Jeff
 
B

bruce barker

the common approach is to put an img on the page that references an
asp.net page that returns an image of the barcode. the use can then just
print the page. google this newgroup for help on returning an image.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top