NetTalk Central

Author Topic: Progress Indicator for a Report  (Read 4350 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Progress Indicator for a Report
« on: October 31, 2013, 02:55:11 AM »
Hi Bruce

Is there an example for a progress Indicator for a report?

Regards
Johan

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Progress Indicator for a Report
« Reply #1 on: October 31, 2013, 07:24:25 AM »
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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Progress Indicator for a Report
« Reply #2 on: October 31, 2013, 10:01:23 PM »
Thanks to Ura - that was a good post.
Examples 13 and 14 also have progress bars.

cheers
Bruce

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: Progress Indicator for a Report
« Reply #3 on: November 01, 2013, 01:22:27 AM »
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

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Progress Indicator for a Report
« Reply #4 on: November 01, 2013, 05:58:29 AM »
Your welcome Bruce and johanco123 :)

johanco, are you trying to make one big report or to append different reports to one PDF?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Progress Indicator for a Report
« Reply #5 on: November 01, 2013, 07:34:24 AM »
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

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: Progress Indicator for a Report
« Reply #6 on: November 04, 2013, 09:06:34 PM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Progress Indicator for a Report
« Reply #7 on: November 05, 2013, 01:16:57 AM »
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