This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
Chris Herrington  
#1 Posted : 20 years ago
Chris Herrington

Rank: Advanced Member

Groups: Guest
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 : 20 years ago
Fedor

Rank: Advanced Member

Groups: Guest
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 16 years ago  | Reason: Not specified

Best regards,
Fedor Skvortsov
Chris Herrington  
#3 Posted : 20 years ago
Chris Herrington

Rank: Advanced Member

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

Have any samples of how to do that?

Thanks

Chris
Dmitry  
#4 Posted : 19 years ago
Dmitry

Rank: Advanced Member

Groups: Guest
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 17 years ago  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
Similar Topics
Error when printing (Discussions – Graphics Mill)
by rullman 4 years ago
Do we still need to apply color profile when printing (Discussions – Graphics Mill)
by Todd Kneib 5 years ago
Winforms and printing samples (Discussions – Graphics Mill)
by Chris Jones 8 years ago
Image Printing in Manual Mode (Discussions – Graphics Mill)
by Chris Jones 9 years ago
Printing File Size (Discussions – Graphics Mill)
by Chris Herrington 16 years ago
Printing (Discussions – Graphics Mill)
by Chris Herrington 16 years ago
Save print document as .psd or client side printing (Discussions – Graphics Mill)
by sailokesh 16 years ago
Printing Vobjects and image together (Discussions – Graphics Mill)
by cpav 17 years ago
SMPL: Printing Demo (Samples – Graphics Mill)
by Alex Kon 17 years ago
Bug printing from print preview (Discussions – Graphics Mill)
by obartelt 17 years ago
Printing an image with different aspect ratio that the paper (Discussions – Graphics Mill)
by Carlos 18 years ago
Printing without margins? (Discussions – Graphics Mill)
by Zatlite 18 years ago
Printing multipage tiffs (Discussions – Graphics Mill)
by Heffer42 18 years ago
Printing in web (Discussions – Graphics Mill)
by pxg 18 years ago
Borderless printing? (Discussions – Graphics Mill)
by morphemass 19 years ago
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.