Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7070137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:31:48+00:00 2026-05-28T05:31:48+00:00

I have to implement a progressbar that show the progress of a report generation,

  • 0

I have to implement a progressbar that show the progress of a report generation, the problem is that i have to represent the percentage of the report progression based on event generated by the generation but without first knowing the total amount of event, so for example the report generation sends the following event(phase) :

 - Starting Report generation
 - Start Query execution
 - End Query execution
 - Start Report Rendering
 - End Report Rendering
 - End Report Generation

In this example there are in total 3 task and 6 events, i don’t know the total number of task but i know that the total number of events is twice respect the number of tasks.

I don’t know which events are present and how many they are , but i have to represent the progression with a progress bar so with a number between 0 and 100 .

How can it be calculated ? Whats the best way to represents the progression ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:31:49+00:00Added an answer on May 28, 2026 at 5:31 am

    Probably the best you can do is to abandon the idea of actual progress bar altogether, and sue some indeterminate progress indicator instead. A “marquee” or “bouncing” progress bar is typically used in this scenario on desktop systems.

    Another option – if you really want to show something progress-like – is to employ some heuristics and just (partially) fake it. You don’t really have many information here so it would have to be pretty clever, and require a lot of testing on real cases. Here’s some suggestions:

    • Increase the progress based on the nesting level of currently processed task. Basically, the idea is that the more fine grained the task is, the less it contributes to the overall progress. By task nesting I mean, of course, the hierarchy implied from bracketing of your Start and End messages.

    • Get a reasonable estimate of the maximum number of tasks you can expect, and adjust the speed of progress’ increase based on how close you might be to finishing. For example, if you expect no more than 500 tasks, and you have processed 300 but are already displaying 80% progress, you must seriously slow down any further increase. Similarly, if you are lagging behind, you should appropriate scale up you progress increments.

    • Avoid big jumps. Even if you need to rapidly catch up, as described in previous point, do so gradually and over time. To put up a concrete example: rather than incrementing once by 10% and then stand still for 10 seconds, make 10 increments of 1% each over the course of 10 seconds.

    There are probably many more techniques you could try to use. Overally, it’s quite an interesting UX- and math-related problem, but you should consider whether spending cognitive effort on it is worth the hassle. I expect that in most cases, the indeterminate progress would be absolutely fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried to implement the ProgressBar in my application that gets displayed when
I'm trying to implement my own progress bar. I have a constructor, that inits
I have found that I often have to implement some sort of a scheduler
Let's say I have to implement a piece of T-SQL code that must return
I have a WSDL file defining a service that I have to implement in
Possible Duplicate: How to implement file upload progress bar on web? Hello I have
I have several LINQ queries that will churn records (up to a million) based
I have just implemented an Ajax File Upload control that uses a progress bar.
I have some code that moves files around and would like to implement a
I'm attempting to implement a progress bar with a textbox on top that also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.