Report empty in Silverlight
Posted: Thu Jun 14, 2012 9:55 am
Hi
I have a solution in Visual Studio consisting of two projects. The first is a forms application where I call the designer. The second is a silverlight project where I consume the cs file I saved when I set up the report in the designer (from the forms application).
The report is populated when I select silverlight preview in the designer. However, when the report is opened in the silverlight viewer, nothings shows up. Only a blank page.
Does anyone have an idea of what can cause this?
Some code:
MainPage.xaml:
MainPage.xaml.cs:
private void buttonRunReport_Click(object sender, RoutedEventArgs e)
{
var report = new Reports.Report();
report.RegBusinessObject("WebInnsyn", "Naboliste", new NeighborListData());
report.Render();
report.Show();
}
The NeighborlistData class contains definitions of my objects (lists within lists) and the test data defined within it shows up correctly in the designer preview.
Thanks
I have a solution in Visual Studio consisting of two projects. The first is a forms application where I call the designer. The second is a silverlight project where I consume the cs file I saved when I set up the report in the designer (from the forms application).
The report is populated when I select silverlight preview in the designer. However, when the report is opened in the silverlight viewer, nothings shows up. Only a blank page.
Does anyone have an idea of what can cause this?
Some code:
MainPage.xaml:
MainPage.xaml.cs:
private void buttonRunReport_Click(object sender, RoutedEventArgs e)
{
var report = new Reports.Report();
report.RegBusinessObject("WebInnsyn", "Naboliste", new NeighborListData());
report.Render();
report.Show();
}
The NeighborlistData class contains definitions of my objects (lists within lists) and the test data defined within it shows up correctly in the designer preview.
Thanks