Can not display data from .mrt template file
Can not display data from .mrt template file
load the mrt file , and preview,it is nothing on page,read nothing from the server.the mrt file contains sqlconnectionstring .
Can not display data from .mrt template file
Hello,
Please send us your report with sample data for analysis.
Thank you.
Please send us your report with sample data for analysis.
Thank you.
Re: Can not display data from .mrt template file
I have a same issue:
file .mrt attach bellow not display data
Code: Select all
_context = new ScreenContext();
_context.Load(_context.GetTable_1Query(), LoadBehavior.RefreshCurrent, true).Completed += (sender1, arg1) =>
{
var lstobj = (from p in _context.Table_1s select p).ToList();
report.RegBusinessObject("Table_1", "Table_1", _context.Table_1s);
report.Dictionary.SynchronizeBusinessObjects(3);
report.Render();
viewerControl.Report = report;
};
- Attachments
-
- OM_BaoCaoDSBanHangTheoHD.mrt
- (29.78 KiB) Downloaded 336 times
Re: Can not display data from .mrt template file
Hello.
To solve a problem rapidly we need the following information from you:
To solve a problem rapidly we need the following information from you:
- Product name and its version;
- Detailed description of the problem and how to reproduce it;
- Your operational system (98, ME, 2000, XP, Vista or NT), its version and localization, installed service-packs;
- Version the of Microsoft .Net Framework package installed and its localization;
- Name of your development framework and its version;
- Additional information that can help us to solve your problem.
Re: Can not display data from .mrt template file
Hi Aleksey,
I used to Stimulsoft Reports.Ultimate 2012.1
I development silverlight project with RIA Service.
In Init event of MainPage.xaml I code next:
In RIA Service code next:
I use Microsoft Visual Studio 2010, .Net Framework 4.0
Thanks and looking forward to your help.
I used to Stimulsoft Reports.Ultimate 2012.1
I development silverlight project with RIA Service.
In Init event of MainPage.xaml I code next:
Code: Select all
public Page2()
{
InitializeComponent();
StiReport report = new StiReport();
InitializeComponent();
using (Stream stream = this.GetType().Assembly.GetManifestResourceStream("HRApp.Report.OM_BaoCaoDSBanHangTheoHD.mrt"))
{
if (stream == null)
throw new Exception();
report.Load(stream);
}
_context = new ScreenContext();
_context.Load(_context.GetTable_1Query(), LoadBehavior.RefreshCurrent, true).Completed += (sender1, arg1) =>
{
var lstobj = (from p in _context.Table_1s select p).ToList();
report.RegBusinessObject("Table_1", "Table_1", _context.Table_1s);
report.Dictionary.SynchronizeBusinessObjects(3);
report.Render();
viewerControl.Report = report;
};
//report.Dictionary.Databases.Clear();
//report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Connection", @"Provider=SQLNCLI10.1;Persist Security Info=False;User ID=sa;Initial Catalog=eBiz4DApp;Data Source=TOANND-PC\TOANND;password=P@ssw0rd"));
// report.Dictionary.Restrictions.Add("sptest", StiDataType.DataSource, StiRestrictionTypes.DenyEdit);
//report.CompiledReport.DataSources["sptest"].Parameters["@opt"].ParameterValue = 1;
}
Code: Select all
public IQueryable<Table_1> GetTable_1()
{
return this.ObjectContext.Table_1;
}
Thanks and looking forward to your help.
Re: Can not display data from .mrt template file
Hello,
Please check the last prerelease build and let us know about the result.
Also if possible please send us a sample project which reproduce the issue for analysis.
Thank you.
Please check the last prerelease build and let us know about the result.
Also if possible please send us a sample project which reproduce the issue for analysis.
Thank you.