For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > March 2007 > PrintDocument Problem - Need to print locally









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PrintDocument Problem - Need to print locally
kiergaro@gmail.com

2007-03-30, 7:07 pm

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
bruce barker

2007-03-30, 10:06 pm

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)

kiergaro@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
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com