Report Generator Problem

Moderator: Rathinagiri

Post Reply
User avatar
sudip
Posts: 1444
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 4 times

Report Generator Problem

Post by sudip » Thu Nov 05, 2009 11:54 am

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 118 times
Thanks in advance.

With best regards.

Sudip
With best regards,
Sudip

User avatar
gfilatov
Posts: 517
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 7 times
Been thanked: 66 times
Contact:

Post by gfilatov » Thu Nov 05, 2009 12:37 pm

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: 1444
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 4 times

Post by sudip » Thu Nov 05, 2009 12:44 pm

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: 3900
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 136 times

Post by Roberto Lopez » Thu Nov 05, 2009 1:41 pm

Sudip, Grigory,

Thanks for the report and sample.

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

Roberto


(Veritas Filia Temporis)

Post Reply