Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Progressbar Help!!!

Progressbar Help!!!

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasedesignhelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saam_cse
    wrote on last edited by
    #1

    In my VB.net Programme I generate a PDF using crystal report which retrieves data from database containing about 700 to 1000 pages. Each page contain so many amount of fields, so takes 2 or 3 minutes depending upon machine. So I like add a progressBar .But how to develop it. Please anybody me to design he code.

    A D 2 Replies Last reply
    0
    • S Saam_cse

      In my VB.net Programme I generate a PDF using crystal report which retrieves data from database containing about 700 to 1000 pages. Each page contain so many amount of fields, so takes 2 or 3 minutes depending upon machine. So I like add a progressBar .But how to develop it. Please anybody me to design he code.

      A Offline
      A Offline
      Anoop Brijmohun
      wrote on last edited by
      #2

      hi, you dont need to develop one, it comes in the tool box within vs. drop the control onto your form as you would for any other control. here's what i set on the controls properties... Maximum - The total number of pages you have. Minimum - should be zero use the step property to increment the progress bar until it the output... alt, you can set the pbar as a marquee which runs continuosly until you stop/hide it... hope this helps Anoop

      1 Reply Last reply
      0
      • S Saam_cse

        In my VB.net Programme I generate a PDF using crystal report which retrieves data from database containing about 700 to 1000 pages. Each page contain so many amount of fields, so takes 2 or 3 minutes depending upon machine. So I like add a progressBar .But how to develop it. Please anybody me to design he code.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        The only progress bar you can use to do this is one that doesn't progress. I mean you can show one that constantly scrolls. You cannot use a 0 to 100% progress bar because Crystal Reports, last I checked, does not expose any progress information. So, there's no way of knowing how far along it's gotten.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        A L 2 Replies Last reply
        0
        • D Dave Kreskowiak

          The only progress bar you can use to do this is one that doesn't progress. I mean you can show one that constantly scrolls. You cannot use a 0 to 100% progress bar because Crystal Reports, last I checked, does not expose any progress information. So, there's no way of knowing how far along it's gotten.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          A Offline
          A Offline
          Anoop Brijmohun
          wrote on last edited by
          #4

          TRUE THAT!

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            The only progress bar you can use to do this is one that doesn't progress. I mean you can show one that constantly scrolls. You cannot use a 0 to 100% progress bar because Crystal Reports, last I checked, does not expose any progress information. So, there's no way of knowing how far along it's gotten.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            there's no way of knowing how far along it's gotten

            if you were to know the final file size (say from an earlier run), and you are willing to use some native code to get to the current size of a file while it is being written, you could come up with a reasonable progress indication, at least something better than an "I'm at it" or "lets pretend I'm at it". :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            Fixturized forever. :confused:


            D 1 Reply Last reply
            0
            • L Luc Pattyn

              Dave Kreskowiak wrote:

              there's no way of knowing how far along it's gotten

              if you were to know the final file size (say from an earlier run), and you are willing to use some native code to get to the current size of a file while it is being written, you could come up with a reasonable progress indication, at least something better than an "I'm at it" or "lets pretend I'm at it". :)

              Luc Pattyn [Forum Guidelines] [My Articles]


              Fixturized forever. :confused:


              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              That's such a ghetto solution! I like it! :-D

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups