NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanco123 on October 31, 2013, 02:55:11 AM
-
Hi Bruce
Is there an example for a progress Indicator for a report?
Regards
Johan
-
Hi johanco
I modify the example web72 from Bruce and added a report using the progress bar. I think Bruce have a webinar showing the progress with a report.
I am using the Soft Velocity Report to PDF Global Template to generate the PDF (included in Clarion Enterprise) but if you are using PDF Tools is all about the same.
Let me know if its works.
The example includes the app dtc and some tps to generate the report. Was made in Clarion 6 to keep compatibility.
[attachment deleted by admin]
-
Thanks to Ura - that was a good post.
Examples 13 and 14 also have progress bars.
cheers
Bruce
-
Tanks Ura
I did try it but I cannot find any code to let the progress indicator start working, I need to see how I can use it with a big report.
Johan
-
Your welcome Bruce and johanco123 :)
johanco, are you trying to make one big report or to append different reports to one PDF?
-
did you check out the docs here;
http://www.capesoft.com/docs/NetTalk7/NetWebReports.htm#ReportProgressBars
The progress position is taken from the progress position of your report procedure. So the accuracy of that progress translates directly into the accuracy of the web progress bar.
cheers
Bruce
-
Hi Bruce
Tanks for the help on the report. It is running now, just one problem, the web progress indicator is going directly from 1% to 99% and stays on 99% for about 4 minutes (400 pages)while i can see the progress indicator on the server is creating the pdf document.
The code : p_web.SetProgress(loc:ProgressName,xxx)
which embed point on the report must I use to slow the progress down while the report is being created
I use NT77.26 and Tracker PDFtools V4.1
Any suggestions
Regards
Johan
-
any report goes through two phases.
a) the WMF files are generated
b) the WMF files are converted to PDF.
Unfortunately there's no "hook" into the WMF-To-PDF part, so that bit takes as long as it takes. With really large reports, it's going to take a bit of time. And it's a bit of a closed part of the process, so not much you can do about it unfortunately.
cheers
Bruce