Report Generator Problem

Moderator: Rathinagiri

Post Reply
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Report Generator Problem

Post by sudip »

Hello Master Roberto,

I found one problem with Report Generator using Array.

When number of rows is 1, it shows nothing.

Please check following code, derived from \HMG\Samples\Report.Advanced.8
Demo.zip
(1.55 KiB) Downloaded 478 times
Thanks in advance.

With best regards.

Sudip
With best regards,
Sudip
User avatar
gfilatov
Posts: 1057
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Report Generator Problem

Post by gfilatov »

sudip wrote:Hello Master Roberto,

I found one problem with Report Generator using Array.

When number of rows is 1, it shows nothing.

Please check following code, derived from \HMG\Samples\Report.Advanced.8
Demo.zip
Hello Sudip,

I confirm this problem with one element array in your sample :o

Take a look for two changes in your demo.rmg as workaround:

Code: Select all

...
	* Report Data Environment *************************************

	BEGIN DATA
		ITERATOR	i++
		STOPPER		i == len(aRows) +1  //20 <-- (1)
	END DATA
...

	* Summary Band ************************************************

	BEGIN SUMMARY

		BANDHEIGHT	50

		BEGIN TEXT
			EXPRESSION	'Total Records: ' + Str(--i) // <-- (2)
...
I hope that helps :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Report Generator Problem

Post by sudip »

Thanks a lot Grigory :)
It saved my day's work :) (I am working on an add on project with HMG for my old VFP app)
With best regards.
Sudip
Last edited by sudip on Thu Nov 05, 2009 1:42 pm, edited 1 time in total.
With best regards,
Sudip
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Report Generator Problem

Post by Roberto Lopez »

Sudip, Grigory,

Thanks for the report and sample.

I'll take a look at it ASAP.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply