Error loading preview of the report in silverlight

Stimulsoft Reports.Silverlight discussion
Locked
eduardo.agostinho
Posts: 2
Joined: Tue Jan 08, 2013 11:00 am

Error loading preview of the report in silverlight

Post by eduardo.agostinho »

Good morning

I'm doing a report in silverlight code follows:

Code: Select all

try
                        {
                            System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();

                            //Carrega o arquivo de recurso referente ao modelo de relatório selecionado
                            StreamReader reader = reader = new StreamReader(a.GetManifestResourceStream(strArquivo));

                            StiReport report = new StiReport();

                            report.Load(reader.BaseStream);
                            reader.Close();
                            reader.Dispose();
                            report.CalculationMode = StiCalculationMode.Interpretation;
                            report.RegBusinessObject("Data", "Data", dataRelatorio);

                            report.Render();
                            report.Show();

                        }
                        catch (Exception ex)
                        {
                            C1MessageBox.Show(ex.ToString());
                        }
When processing the report the following error occurs:
Error
Error
erro_stimulsoft1.png (12.55 KiB) Viewed 2801 times
Can anyone help me?

Tanks
Eduardo Agostinho
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Error loading preview of the report in silverlight

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.
eduardo.agostinho
Posts: 2
Joined: Tue Jan 08, 2013 11:00 am

Re: Error loading preview of the report in silverlight

Post by eduardo.agostinho »

good morning

I managed to solve the problem; sufficed change ownership BUILD ACTION report already embedded in visual studio for EMBEDDED RESOURCE.

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Error loading preview of the report in silverlight

Post by HighAley »

Hello.

Great!
Let us know if you will have any problems else.

Thank you.
Locked