Page 1 of 1

Wrongly interpreted xmls

Posted: Mon Jul 30, 2012 8:16 am
by mikry
Hello
we have the same data in two xmls, only language is diferent. Everything is displayed correctly except some sums - some of them are moved into other section/group

cz.xml - data with czech language
en.xml - data with english language
template.mrt - the template
template.xsd - xsd
cz.jpg - example with incorrect sum
en.jpg - the same part of pdf with correct sum

Thanks for help

M.

Re: Wrongly interpreted xmls

Posted: Tue Jul 31, 2012 6:44 am
by Alex K.
Hello,

Please try to set the EngineVersion property to EngineV2.

Thank you.

Re: Wrongly interpreted xmls

Posted: Tue Jul 31, 2012 7:32 am
by mikry
Hello
when we switched it, we received following error during rendering:

Collection was modified; enumeration operation may not execute.
at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
at Stimulsoft.Report.Engine.StiRenderProviderV2.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)

Re: Wrongly interpreted xmls

Posted: Tue Jul 31, 2012 11:50 am
by Alex K.
Hello,

Try to change the following code on:

Code: Select all

if (Invoice_Type.dts != "Y")
{
	if (this.Pages.Contains(Page4))
		this.Page4.Enabled = false;
}

if (Phone_number.fixed_number == "" && Phone_number.mobile_number == "")
{
	if (this.Pages.Contains(Page4))
		this.Page4.Enabled = false;

	if (this.Pages.Contains(Page3))
		this.Page3.Enabled = false;
}
Thank you.

Re: Wrongly interpreted xmls

Posted: Tue Jul 31, 2012 12:11 pm
by mikry
It helped and also reported bug is solved - thanks.
What is the reason to have two rendering engines?

Re: Wrongly interpreted xmls

Posted: Tue Jul 31, 2012 1:48 pm
by Alex K.
Hello,

You need to set the EngineVersion property to V2, because version 1 is the old version and now we do not make fixes for it.

Thank you.