Progressbar Help!!!
-
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.
-
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.
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
-
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.
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 -
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, 2008TRUE THAT!
-
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, 2008Dave 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:
-
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:
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