PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Reporting problem
Reporting problem
Débuté par Vijay Patel, 24 avr. 2015 14:36 - 1 réponse
Posté le 24 avril 2015 - 14:36
I am try to create report this datafile in 150 record included,

over reque. is all record print in report, but that is not possible me..

only print single record...


over code is...

IF HOut() = True THEN
// Stop printing the Body block
RESULT False
ELSE
// Print the Body block and run its processes
RESULT True
END

(pre body)

ITEM_CurrectAns..Value=QRY_StorePeparGet_Report.SP_CurrectAns
ITEM_SelectAns..Value=QRY_StorePeparGet_Report.SP_SelectAns
ITEM_AnsA..Value=QRY_StorePeparGet_Report.SP_AnsA
ITEM_AnsB..Value=QRY_StorePeparGet_Report.SP_AnsB
ITEM_AnsC..Value=QRY_StorePeparGet_Report.SP_AnsC
ITEM_AnsD..Value=QRY_StorePeparGet_Report.SP_AnsD
ITEM_Details..Value=QRY_StorePeparGet_Report.SP_DetailQuestion
ITEM_Questionname..Value=QRY_StorePeparGet_Report.SP_Name
HReadNext(QRY_StorePeparGet_Report)


(post body)


IF HOut() = False THEN
iPageEnd()
END
Posté le 24 avril 2015 - 23:55
Hello Vijay

Which product and version ?

The quality of the English in the comments is better that that used in the questions.
Do you write this code or just ask the questions ?

Bind the data directly to the query instead of using assignments
Set the query as the source of the report.

The BODY lineof the report should just show the current data supplied to it. It is not the place to be sequencing through a data set which is what it looks like you are doing. I suspect that your code simply prints the first record and then cycles through the data using your HreadNext() command

None of the code you sent should be required to print the report or even be in the report code segments.

Regards
Al