Results 1 to 6 of 6

Thread: Print photos and text very slow spooling

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Posts
    78

    Print photos and text very slow spooling

    Hi guys,
    I'm making a program that will print jpeg's.
    The way i have it is I have lots of forms with buttons and when you click a button it prints the photo and a databound label with a line of text.
    The problem is that i want the user to be able to click one and then click another button right after, to print another one, but as soon as i click one, the program freezes until the photo starts printing so the user cant click to print another one right away.
    Each picture is around 4 mb.
    Is there away to make it go faster?
    Thanks!

    P.S. The pictures i'm printing are from a pdf file with text and images in it that were converted to jpg. Each page is another jpg. Is it possible to print directly from the pdf and would it be faster since the words are 'text' and not a 'photo'?


    Any Help Is greatly appreciated!

  2. #2
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    384

    Re: Print photos and text very slow spooling

    Stupid suggestion. I'd load all the images etc. into memory first, then print them

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Posts
    78

    Re: Print photos and text very slow spooling

    Thanks for the suggestion, but that would'nt do me any good as i have around 300 photos.
    Any other help?

  4. #4
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: Print photos and text very slow spooling

    Use a BackgroundWorker to run the print process asynchronously..

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Posts
    78

    Re: Print photos and text very slow spooling

    How do i do that?
    Can you please give me an example in code?
    Thanks!

  6. #6
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,605

    Re: Print photos and text very slow spooling

    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width