Page 1 of 1

Method : [FormatError] Input string was not in a correct format.

Posted: Fri Aug 01, 2008 4:03 am
by patwolf
Hi,

While rendering a page of my report in the standalone designer (page 321 in this case) I get the following error message:

Method : [FormatError]
Input string was not in a correct format.


Are there any tips how to debug this please? Considering that it only appears after a few hundred pages it doesn't seem so easy to track down.

Thanks a lot,
Patrick


Method : [FormatError] Input string was not in a correct format.

Posted: Fri Aug 01, 2008 12:20 pm
by Edward
Hello, Patrick.

This error is connected in the most cases with a Formating procedure. Did you use a custom format strings?

Please check it.

If still no luck, please send test project to support[at]stimulsoft.com, we will try to help you with it.

Thank you.


Method : [FormatError] Input string was not in a correct format.

Posted: Tue Aug 05, 2008 8:37 pm
by patwolf
Hi,

Ok I got the stack trace and it looks like a faulty image or a null image caused the exception as I use images from the database:
at Stimulsoft.Report.Components.StiImage.GetImageFromDataColumn()
at Stimulsoft.Report.Components.StiImage.GetImageFromSource()

This shouldn't really cause the report to stop printing though but it should rather skip the faulty image and continue. This happens in V1 & V2 by the way

Thanks,
Patrick

---------------------------

at System.Text.StringBuilder.FormatError()
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at System.String.Format(String format, Object arg0, Object arg1)
at Stimulsoft.Report.Components.StiImage.GetImageFromDataColumn()
at Stimulsoft.Report.Components.StiImage.GetImageFromSource()
at Stimulsoft.Report.Engine.StiViewV1Builder.InternalRender(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiImageV1Builder.InternalRender(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.InternalRender(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiComponentV1Builder.Render(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiComponentV1Builder.Render(StiComponent masterComp, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
at Stimulsoft.Report.Engine.StiContainerV1Builder.InternalCoreRenderContainer(StiContainer masterContainer, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiContainerV1Builder.InternalRenderContainer(StiContainer masterContainer, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiContainerV1Builder.RenderContainer(StiContainer masterContainer, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiContainer.RenderContainer(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.RenderItem(StiDataBand masterDataBand, Boolean& breaked, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.InternalRender(StiDataBand masterDataBand, StiComponent& renderedComponent, StiContainer outContainer, Boolean value)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.InternalRender(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.Render(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiComponentV1Builder.Render(StiComponent masterComp, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.RenderDetails(StiDataBand masterDataBand, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.RenderItem(StiDataBand masterDataBand, Boolean& breaked, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.InternalRender(StiDataBand masterDataBand, StiComponent& renderedComponent, StiContainer outContainer, Boolean value)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.InternalRender(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiDataBandV1Builder.Render(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiComponentV1Builder.Render(StiComponent masterComp, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
at Stimulsoft.Report.Engine.StiContainerV1Builder.InternalCoreRenderContainer(StiContainer masterContainer, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiContainerV1Builder.InternalRenderContainer(StiContainer masterContainer, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiContainerV1Builder.RenderContainer(StiContainer masterContainer, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiPageV1Builder.InternalRender(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.RenderComponent(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.InternalRender(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiComponentV1Builder.Render(StiComponent masterComp, StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiComponent& renderedComponent, StiContainer outContainer)
at Stimulsoft.Report.Engine.StiComponentV1Builder.Render(StiComponent masterComp, StiContainer outContainer)
at Stimulsoft.Report.Components.StiComponent.Render(StiContainer outContainer)
at Stimulsoft.Report.Engine.StiRender.GetNextPage()
at Stimulsoft.Report.Engine.StiRenderProviderV1.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
at Stimulsoft.Report.Engine.StiRenderProviderV1.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV1Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
at Stimulsoft.Report.StiReport.Show(Form parentForm, IWin32Window win32Window, Boolean dialogForm)
at Stimulsoft.Report.StiReport.Show(Form parentForm, Boolean dialogForm)
at Stimulsoft.Report.StiReport.Show()

Method : [FormatError] Input string was not in a correct format.

Posted: Thu Aug 07, 2008 9:22 am
by Vital
Hello Pat,

Problem fixed. Patch will be available in build from 8 August.

Thank you.

Method : [FormatError] Input string was not in a correct format.

Posted: Thu Aug 07, 2008 4:39 pm
by patwolf
Vital wrote:Hello Pat,

Problem fixed. Patch will be available in build from 8 August.

Thank you.
Thanks I'm looking forward to it.
Patrick

Method : [FormatError] Input string was not in a correct format.

Posted: Mon Aug 11, 2008 11:58 am
by patwolf
Vital wrote:Problem fixed. Patch will be available in build from 8 August.
Would you know when it will be available please?

Thanks,
Patrick

Method : [FormatError] Input string was not in a correct format.

Posted: Mon Aug 11, 2008 12:40 pm
by Vital
Hello,

Sorry for delay. It will be available today.

Thank you.