Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 4 Monaten, 2 Wochen
Letzter Beitrag:
vor 4 Monaten, 2 Wochen
Beteiligte Autoren:
Aad Gouka, Al, Fabrice Harari

Use iPrintReport(Reportname) without printing.

Startbeitrag von Aad Gouka am 09.03.2018 14:18

Hi all,

I have a report with a lot of calculations (who hasn't). I'd like to run the report but don't want to print it. I know I can use iDestination, but is there a way to run the report without any file or print output, because it slows down the process on a network when generating 100 reports in a loop.
I only need the calculations.

Thanks for any advice.

Best regards.



Hello Add

Could you modify your code to write the lines that would normally go to the report into a memory table instead ?


von Al - am 09.03.2018 20:55
Hi Al,

Thank you for your reaction. Can you give a hint how to do such ?

Best regards,


von Aad Gouka - am 10.03.2018 10:04
Hello Aad

Create a memory table on the window that calls the report.
In the report, at each "After Printing Block Body" event add a row to the memory table with TableAddLine(Windowname.Tablename,reportbodyfield1,reportbodyfield2)

You can also capture any total and subtotal rows in the same manner at the end of the breaks.


von Al - am 10.03.2018 10:31
Hi Al,

Great idea. I'm going to make it happen.

Best regards,


von Aad Gouka - am 10.03.2018 10:50
Hi Al,

I still have the problem that iPrintReport tries to print or write to disk. Can this be undone ??
Just want to run the report without any output.

Thanks Al.

Best regards,


von Aad Gouka - am 10.03.2018 12:05
Hi Add

it's not possible... You'll have to extract your calculations from the report and redo it in pure code, without the iprintreport.

Best regards

von Fabrice Harari - am 10.03.2018 13:11
Thanks Fabrice,

I was afraid of that because I couldn't find anything about it.
Thanks for your reaction.

Best regards,


von Aad Gouka - am 10.03.2018 13:23
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.