-
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
-
webapplication?
are you using a swing frontend or shall teh progressbar be written in javascript?
-
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
-
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.
-
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
-
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
-
Replies: 4
Last Post: 01-22-2008, 02:04 PM
-
By a7n9 in forum VB Classic
Replies: 3
Last Post: 08-30-2005, 12:34 AM
-
By Robin in forum VB Classic
Replies: 1
Last Post: 07-18-2002, 10:48 AM
-
By Prasant in forum VB Classic
Replies: 0
Last Post: 07-29-2001, 12:46 PM
-
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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|