DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Need Help about Progress Bar !

  1. #1
    Join Date
    Jun 2006
    Posts
    4

    Thumbs down Need Help about Progress Bar !

    Hello Dear,

    In my Web Application I have to export Reports to PDF for printing purpose.
    This task takes long time. And I want to have a progress bar that will show the current progress of exporting to PDF.

    Can Any Body help me implementing that progress bar
    Thanks
    Irfan Mirza

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    webapplication?
    are you using a swing frontend or shall teh progressbar be written in javascript?

  3. #3
    Join Date
    Jun 2006
    Posts
    4

    Progress Bar Problem !

    Mr. Graviton

    it should be better to have that progress bar in javascript. Any how if not possible than i will not hesitate using swing frontend just to display that progress bar.

    Thanks
    Irfan Mirza

  4. #4
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    ok. when you generate a pdf, this is done in a servlet, i guess.
    so you have to think about 2 things:
    1. how can you determine the progress?
    if you use a pdf api, you will have to find out, how you can determine the progress.
    2. how can you update a website / a websites progressbar with data from the server
    for this, you have multiple choices:
    - use ajax, a javascript framework, that can connect to a java server method via xml (soap) and make queries every minute about the progress
    - use a frame or another reloadable object in html and let it refresh every second with the url of a servlet that knows the progress.

    you see, in both cases it's not that easy.
    perhaps you first should think about getting the progress information from the pdf generator.

  5. #5
    Join Date
    Jun 2006
    Posts
    4
    Well Graviton, thanks for showing me the right direction. I am sure you are aware of concept of "Indeterminate" progress bar where we dont need exact statistics of a task.
    I want to create that sort of thing for my application. I don't know much about implementation issues( how to do .) for this progress bar. Of the two ways you told, I want to use second way (refreshing frames). Can you provide me any implementation guidelines.

    Thankx
    Irfan Mirza

  6. #6
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    i understand.
    so try to find out something about the server puhsing technology,
    eg
    http://www.javaworld.com/jw-03-2000/jw-03-pushlet.html
    or
    http://www.google.de/search?q=java+servlet+push+example
    i think the first one is a good guide. but you also will have to learn something about java, servlets, javascript and html.

Similar Threads

  1. Replies: 4
    Last Post: 01-22-2008, 02:04 PM
  2. Progress bar which doesn't progress
    By a7n9 in forum VB Classic
    Replies: 3
    Last Post: 08-30-2005, 12:34 AM
  3. Replies: 1
    Last Post: 07-18-2002, 10:48 AM
  4. Replies: 0
    Last Post: 07-29-2001, 12:46 PM
  5. Progress bar on COM
    By Jeff Aziz in forum Enterprise
    Replies: 3
    Last Post: 07-27-2000, 02:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center