Wrongly interpreted xmls

Stimulsoft Reports.NET discussion
Post Reply
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

Wrongly interpreted xmls

Post 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.
Attachments
example.rar
(396.83 KiB) Downloaded 166 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Wrongly interpreted xmls

Post by Alex K. »

Hello,

Please try to set the EngineVersion property to EngineV2.

Thank you.
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

Re: Wrongly interpreted xmls

Post 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)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Wrongly interpreted xmls

Post 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.
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

Re: Wrongly interpreted xmls

Post by mikry »

It helped and also reported bug is solved - thanks.
What is the reason to have two rendering engines?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Wrongly interpreted xmls

Post 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.
Post Reply