Silverlight Databinding at runtime

Stimulsoft Reports.Silverlight discussion
nitinkumarv
Posts: 10
Joined: Mon Apr 18, 2011 3:26 pm
Location: India

Silverlight Databinding at runtime

Post by nitinkumarv »

Hi,

I have analysed my sample application and was able to figure out the problem - it turned out to be an issue with database and not with the report generator/designer.

However, there is one final issue which I am not able to resolve. In your sample application, in MainPage.Xaml.cs, you have used StreamReader to get datasource information. Below is the code line:
StreamReader sr = new StreamReader(assembly.GetManifestResourceStream("WCF_SLDesigner.Reports.DrillDownSorting.mrt"));

I understand that a .mrt file is being read from "Reports" folder.

But my question is - How do I generate these .mrt files to begin with?

Could you please guide me on this?
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Silverlight Databinding at runtime

Post by Andrew »

Hello,

What do you mean under "How do I generate these .mrt files to begin with?".
You can manually create a report from code or load it from a file.
As a result you need to pass StiReport to the designer.Report property.

If you do not know how to create a report from code please, see samples delivered in the installation pack.

Thank you.
nitinkumarv
Posts: 10
Joined: Mon Apr 18, 2011 3:26 pm
Location: India

Silverlight Databinding at runtime

Post by nitinkumarv »

HI Andrew,

Thanks for your patience in answering my queries.

I want to load the report from file - that is, .mrt file.

I have attached the file you have used in the sample.

I want to know how can I generate this file?

I intend to store this file and use it to load as datasource further.

Thank You.
Attachments
946.DrillDownSorting.mrt
(13.42 KiB) Downloaded 209 times
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Silverlight Databinding at runtime

Post by Andrew »

Hello,
I want to know how can I generate this file?
What do you mean under this? Could you, please clarify your question.

Thank you.
nitinkumarv
Posts: 10
Joined: Mon Apr 18, 2011 3:26 pm
Location: India

Silverlight Databinding at runtime

Post by nitinkumarv »


DrillDownSorting.mrt contains information about the datasource for report.

How do I generate DrillDownSorting.mrt file so that I can use it further for report's datasource?

Thanks
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Silverlight Databinding at runtime

Post by Andrew »

Hello,

If we understand you correctly, then select the "Action" Dictionary menu -> "Save Dictionary As ..."
Then you can load the ready list of Data Sources into the other reports, for generating reports.

Thank you.
nitinkumarv
Posts: 10
Joined: Mon Apr 18, 2011 3:26 pm
Location: India

Silverlight Databinding at runtime

Post by nitinkumarv »

Andrew wrote:Hello,

If we understand you correctly, then select the "Action" Dictionary menu -> "Save Dictionary As ..."
Then you can load the ready list of Data Sources into the other reports, for generating reports.

Thank you.
HI Andrew,

Thanks for the response. I now understand how to save Data Sources for other reports.

however, I am hitting a strange issue -> I am not getting any menu items in "Dictionary -> Action". Niether "Save" or "New SQL Connection" as you suggested once before in this thread.

Tried everything - not sure why menus are not turning up. Could you please let me kow why menu items are missing - especially "New Connection" and "Save Dictionary As"?
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Silverlight Databinding at runtime

Post by Andrew »

Hello,

The "Dictionary - Action - Save Dictionary As" menu item is available in all versions of the designer (please see the attached image).
The "New Connection" menu item is available only in the Client/Server version, or in a version using the WCF server.

Thank you.
Attachments
982.1.png
982.1.png (16.76 KiB) Viewed 2690 times
nitinkumarv
Posts: 10
Joined: Mon Apr 18, 2011 3:26 pm
Location: India

Silverlight Databinding at runtime

Post by nitinkumarv »

Hi Andrew,

I think I have my application all set to give me these options. However, I am still not getting the two options.

I have attached the sample for your reference.

Could you please run the application and let me know where I am going wrong?

Thanks,
Nitin
Attachments
994.StimulsoftReportDesigner (2).zip
(8.44 MiB) Downloaded 232 times
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Silverlight Databinding at runtime

Post by Andrew »

Hello,

We have made some changes into the project. Please see the changes.

Thank you.
Attachments
1002.StimulsoftReportDesigner_Change.zip
(2.72 MiB) Downloaded 286 times
Locked