Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren
Letzter Beitrag:
vor 3 Jahren
Beteiligte Autoren:
Allard, DerekT, Alexandre Leclerc

Reports windev

Startbeitrag von Allard am 10.02.2015 16:00


I have a report with a content page. This page displays the titels of the pages that follow.

For instance

Balans sheet
Profit and Loss

Ok Behind the title I want to print the pagenumber of the section where the title refers to. The report has internal reports. The pagenumber is displaye through the pagefooter of the mainreport

I am not able to get the value for itis generated based on the content of the report.

I tried this:

Item-page-balnssheet = mainreport.discriptionsubreport.pagenumsureport. But that gives me the value of 0 since the page has not been created when I print ( create ) the content page .

Anyone an I dea how to get this?




Hi nobody,

This should be possible ?

Please help me out



von Allard - am 11.02.2015 13:37
Hi Allard,

I have no experience in this, but I think of a few things:

1. Try to read the page numbers and position in the "End of document" block and do something with it (like building your index in that very block inside a RTF control, or a sub-report integrated in the end-block to which you pass the collected data. If at the end of the report you can get the page numbers, this could be possible to do it that way. http://doc.windev.com/en-US/?1011004&name=sequence_processes_associated_with_the_reports

2. Print your index at the end of your report, then at that point you should (?) have all the information desired to do that.

3. Print your report and collect data while doing so. Then print your report again including the index containing the data from the previous dry-run.

Since I never made that, I can't guaranty there is a better way. But hopefully something in the above could help you going forward.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 11.02.2015 14:38

Running the report twice is your only option to capture the number of pages each section has required.
Use iDestination() - Possibly to XML - You may be able to read the page() from this.
If not you will need to store this information - possibly an array.
Using iSequenceAdd() will ensure the order.

Now run the whole thing again but this time the first iSequenceAdd() will be for a report based on the collect page information.

Another thought.
Does this need to be report with preview etc or can it be produced as a pdf ?

If a pdf is acceptable then create run the report as normal to pdf, collect the info as above.
Generate a second a second pdf using this information and then use PDFMerge() to generate a single document.

von DerekT - am 11.02.2015 16:16
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.