By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,483 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,483 IT Pros & Developers. It's quick & easy.

PrintDocument Problem - Need to print locally

P: n/a
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
Mar 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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)

ki******@gmail.com wrote:
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
Mar 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.