Page 2 of 3
Silverlight Databinding at runtime
Posted: Mon Apr 25, 2011 6:28 pm
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?
Silverlight Databinding at runtime
Posted: Tue Apr 26, 2011 12:40 am
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.
Silverlight Databinding at runtime
Posted: Wed Apr 27, 2011 2:49 pm
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.
Silverlight Databinding at runtime
Posted: Thu Apr 28, 2011 12:39 am
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.
Silverlight Databinding at runtime
Posted: Thu Apr 28, 2011 5:01 pm
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
Silverlight Databinding at runtime
Posted: Mon May 02, 2011 2:18 am
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.
Silverlight Databinding at runtime
Posted: Thu May 05, 2011 3:21 pm
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"?
Silverlight Databinding at runtime
Posted: Fri May 06, 2011 12:56 am
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.
Silverlight Databinding at runtime
Posted: Sat May 07, 2011 8:34 am
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
Silverlight Databinding at runtime
Posted: Tue May 10, 2011 8:04 am
by Andrew
Hello,
We have made some changes into the project. Please see the changes.
Thank you.