How to read a data file in a report

Startbeitrag von John Fligg am 20.02.2017 10:36

Hi, I have a really basic question about reports.

I want to handcode the report and what to do something like this:

HReadFirst(PrintFile)
WHILE HOut() = False
ITEM_Type = PrintFile.Type
ITEM_Company = PrintFile.Company
ITEM_Name = PrintFile.FirstName + " " + PrintFile.LastName
ITEM_EMail = PrintFile.EMail
HReadNext(PrintFile)
END

I am assuming I set the Items in the Body of the report. But where do I put the code to loop round and read the data file?

Thx.

Antworten:

All sorted. I EVENTUALLY found it in the help file. As ever trying to find something you do not know in Help is just about impossible

von John Fligg - am 20.02.2017 11:51
As a relative newcomer to the WinDev world (I'm in the middle of my 3rd project), I can sympathize with your frustration. I would be even more lost if it wasn't for this forum and the tutorials from people like Andy Stapleton, Glen Rathke, Pete H., and many others.
Garry
PS If I had searched for this topic and found your posting I might have been disappointed that you didn't mention WHERE you found the answer!

von Garry Allen - am 22.02.2017 15:22
Hi here it is:

http://doc.windev.com/en-US/?1011034&name=Report_on_a_programmed_data_source

HTH

John

von John Fligg - am 22.02.2017 22: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.