Type 'StiReport' is not marked as serializable.

Stimulsoft Reports.WPF discussion
Post Reply
dinhhuong193
Posts: 3
Joined: Mon Feb 17, 2014 9:28 am

Type 'StiReport' is not marked as serializable.

Post by dinhhuong193 »

Hi,
I would like to know how to solve a problem I have often in my reports:
Please download Wpf Project http://forum.stimulsoft.com/download/fi ... ew&id=4102 was attached to this topic.
1. I start the project, then I press "First Button" to load Stimulsoft Report like the image below:
http://forum.stimulsoft.com/download/fi ... ew&id=4103
2. After that I click on "Second Button", I get error:
Type 'Stimulsoft.Report.StiReport' in Assembly 'Stimulsoft.Report, Version=2014.1.1802.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' is not marked as serializable.
3. Could you help me to fix this error?

Thanks in advance
Đinh Hương
Attachments
ReportWpfApp.rar
(18.39 KiB) Downloaded 299 times
Capture.PNG
Capture.PNG (33.48 KiB) Viewed 3509 times
Last edited by dinhhuong193 on Tue Feb 18, 2014 9:04 am, edited 1 time in total.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Type 'StiReport' is not marked as serializable.

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Please check the load report. We get the followinng error by click on First button:

Thank you.
Attachments
Capture.PNG
Capture.PNG (25.88 KiB) Viewed 3501 times
dinhhuong193
Posts: 3
Joined: Mon Feb 17, 2014 9:28 am

Re: Type 'StiReport' is not marked as serializable.

Post by dinhhuong193 »

1. I use these .Dll in the "bin" directory of project:
Stimulsoft.Base.dll
Stimulsoft.Base.xml
Stimulsoft.Report.dll
Stimulsoft.Report.Wpf.dll
Stimulsoft.Report.Wpf.Office2013Theme.dll
Stimulsoft.Report.Wpf.xml
Stimulsoft.Report.WpfDesign.dll
Stimulsoft.Report.WpfDesign.xml
Stimulsoft.Report.xml

with File version: 2014.1.1802.0
2. I open project with Microsoft Visual Studio Professional 2013 Version 12.0.30110.00 Update 1 and Framework 4.0 on Windows 8.1 Professional 64bit Edition.

3. Please use this code to avoid the error "is not a valid value for property 'Width'"

Code: Select all

Imports Stimulsoft.Report

Class FirstPage

    Private Sub Page_Loaded(sender As Object, e As RoutedEventArgs)       
        Dim report As New StiReport
        ViewerControl.Report = report
    End Sub
End Class
4. I click First button to load report and I still get the error when I click Second button:
Type 'Stimulsoft.Report.StiReport' in Assembly 'Stimulsoft.Report, Version=2014.1.1802.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' is not marked as serializable.
Please help me to solve this error.

Thanks for quick reply.
Đinh Hương.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Type 'StiReport' is not marked as serializable.

Post by Alex K. »

Hello,

Unfortunately, we do not support a work with a Frame component.

Thank you.
dinhhuong193
Posts: 3
Joined: Mon Feb 17, 2014 9:28 am

Re: Type 'StiReport' is not marked as serializable.

Post by dinhhuong193 »

Which Frame component can you support me? I will send another project to you soon.
Thank u very much.
Đinh Hương.
Last edited by dinhhuong193 on Wed Feb 19, 2014 3:03 am, edited 1 time in total.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Type 'StiReport' is not marked as serializable.

Post by Alex K. »

Hello,

Can you please describe your task in more details.

Thank you.
Post Reply