This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Chris Herrington  
#1 Posted : Wednesday, September 14, 2005 4:31:50 AM(UTC)
Chris Herrington

Rank: Advanced Member

Groups: Member
Joined: 9/6/2005(UTC)
Posts: 106


Dmitry,

What is the best way to output an image to a printer from the viewer?

Thanks in advance

Chris
Fedor  
#2 Posted : Wednesday, September 14, 2005 4:50:08 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello Chris,

Quote:
Chris Herrington (9/14/2005)

What is the best way to output an image to a printer from the viewer?


Let's me answer instead of Dmitry :)

The best way of printing images is to save them in PDF file and then stream it to browser.

On other side you can stream JPEG or PNG image to browser and then call window.print() method from JavaScript, however in this case you have almost no way to control settings.

Edited by user Wednesday, October 29, 2008 2:24:27 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Chris Herrington  
#3 Posted : Thursday, September 15, 2005 2:01:15 AM(UTC)
Chris Herrington

Rank: Advanced Member

Groups: Member
Joined: 9/6/2005(UTC)
Posts: 106

Have any samples of how to do that?

Thanks

Chris
Dmitry  
#4 Posted : Wednesday, September 21, 2005 7:58:38 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Chris,

Here is a small code sample how to print image in the web application via PDF format:
Code:
Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(Server.MapPath("Images/1.jpg"));
try
{
    bitmap.Save(Response.OutputStream, new Aurigma.GraphicsMill.Codecs.PdfEncoderOptions());
}
finally
{
    bitmap.Dispose();
}

If you have some questions, please, feel free to contact us.

Edited by user Sunday, December 23, 2007 5:38:01 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Similar Topics
Error when printing (Discussions – Graphics Mill)
by rullman 3/24/2021 6:58:37 AM(UTC)
Do we still need to apply color profile when printing (Discussions – Graphics Mill)
by Todd Kneib 1/29/2020 8:34:09 AM(UTC)
Winforms and printing samples (Discussions – Graphics Mill)
by Chris Jones 4/13/2017 2:41:05 AM(UTC)
Image Printing in Manual Mode (Discussions – Graphics Mill)
by Chris Jones 6/28/2016 6:55:26 AM(UTC)
Printing File Size (Discussions – Graphics Mill)
by Chris Herrington 8/18/2009 6:03:11 AM(UTC)
Printing (Discussions – Graphics Mill)
by Chris Herrington 5/1/2009 11:51:13 PM(UTC)
Save print document as .psd or client side printing (Discussions – Graphics Mill)
by sailokesh 12/21/2008 10:19:33 PM(UTC)
Printing Vobjects and image together (Discussions – Graphics Mill)
by cpav 6/8/2008 4:47:54 PM(UTC)
SMPL: Printing Demo (Samples – Graphics Mill)
by Alex Kon 4/18/2008 12:54:36 PM(UTC)
Bug printing from print preview (Discussions – Graphics Mill)
by obartelt 12/1/2007 7:26:17 PM(UTC)
Printing an image with different aspect ratio that the paper (Discussions – Graphics Mill)
by Carlos 7/25/2007 8:00:43 PM(UTC)
Printing without margins? (Discussions – Graphics Mill)
by Zatlite 2/5/2007 6:28:06 AM(UTC)
Printing multipage tiffs (Discussions – Graphics Mill)
by Heffer42 2/4/2007 9:45:26 PM(UTC)
Printing in web (Discussions – Graphics Mill)
by pxg 10/27/2006 3:32:47 AM(UTC)
Borderless printing? (Discussions – Graphics Mill)
by morphemass 3/29/2006 5:41:48 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.