Home : Printing : Print the image from the WebImageViewer web control
Q10057 - HOWTO: Print the image from the WebImageViewer web control
This article is outdated. Please look at the HTMLDocumentViewerDemo available from our legacy samples for an example of generating a self-printing PDF for client printing http://www.atalasoft.com/KB/article.aspx?id=10412
In order to print the image from the WebImageViewer web control, you will need to launch a new browser window including just the image to print, then do a self.Print(); or window.Print(); in JavaScript to cause the browser to print.* You could also have the user choose File : Print from the browser.
Another method that customers have found useful for printing is to create another page that will stream the entire image to a PDF using the PdfEncoder in DotImage Professional.  This will then download the entire image to the client and into the free Adobe Acrobat reader which then can control the printing process.
Since the WebImageViewer web control is server side, there is no way for the image to be printed directly to the client's printer.
* In DotImage versions 2.0 and up, the WebImageViewer.Print() method handles this for you.
Related Articles
Q10099 - HOWTO: Export a multipage TIFF to a PDF using DotImage in ASP.NET

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?


Tell us why you rated the content this way. (optional)
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2019. InstantASP Ltd. All Rights Reserved