Page 1 of 1

Report Generator Problem

Posted: Thu Nov 05, 2009 11:54 am
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 515 times
Thanks in advance.

With best regards.

Sudip

Re: Report Generator Problem

Posted: Thu Nov 05, 2009 12:37 pm
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:

Re: Report Generator Problem

Posted: Thu Nov 05, 2009 12:44 pm
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

Re: Report Generator Problem

Posted: Thu Nov 05, 2009 1:41 pm
by Roberto Lopez
Sudip, Grigory,

Thanks for the report and sample.

I'll take a look at it ASAP.