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
amf  
#1 Posted : Sunday, November 19, 2006 3:42:28 AM(UTC)
amf

Rank: Member

Groups: Guest
Joined: 10/1/2006(UTC)
Posts: 10

I have a multi-page fax that I'm trying to print each page. The part where I load the images to ImagePrintDocument goes quickly; once it starts the DoPrint, each page takes about 20 seconds to render to the printer. A four-page fax image takes 80 seconds to render to the spooler for printing. This seems like a long time considering the horsepower of the machine I'm using, the fact that each page is a 1bpp fax image, and how fast other operations are running.

Here's the code snippet:

Code:
        Dim printDoc As New ImagePrintDocument
        printDoc.PrintOptions.ImageAutoRotate = True
        printDoc.PrintOptions.PlaceholderAutoRotate = True
        printDoc.DefaultPageSettings.Margins.Left = 25
        printDoc.DefaultPageSettings.Margins.Top = 25
        printDoc.DefaultPageSettings.Margins.Right = 25
        printDoc.DefaultPageSettings.Margins.Bottom = 25
        If MaxPageNumber > 1 Then
            Dim images As New ArrayList
            For i As Integer = 0 To MaxPageNumber - 1
                Dim thisFrame As TiffFrame = CType(reader.LoadFrame(i), TiffFrame)
                Dim newBitmap As New Aurigma.GraphicsMill.Bitmap
                thisFrame.GetBitmap(newBitmap)
                thisFrame.Dispose()
                images.Add(newBitmap)
            Next
            printDoc.Source = images.GetEnumerator()
            printDoc.PlacementMode = PlacementMode.MultipleImages
        Else
            printDoc.Source = imgViewer.Bitmap
            printDoc.PlacementMode = PlacementMode.SingleImage
        End If
        printDoc.Print()

Why is this so slow?

Edited by user Tuesday, December 18, 2007 8:13:22 PM(UTC)  | Reason: Not specified

Alex Kon  
#2 Posted : Monday, November 20, 2006 6:24:39 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello,

Which printer resolution do you use? Try to decrease it in printer settings.

Users browsing this topic
Guest (2)
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.