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

Stimulsoft Reports.NET discussion
Post Reply
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

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

Post 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

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

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

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

patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

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

Post 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()
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

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

Post by Vital »

Hello Pat,

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

Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

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

Post 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
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

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

Post 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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

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

Post by Vital »

Hello,

Sorry for delay. It will be available today.

Thank you.
Post Reply