Use StimulReport In ASP Mvc

Stimulsoft Reports.WEB discussion
Post Reply
mahyar.net
Posts: 5
Joined: Sat Sep 01, 2012 7:49 am

Use StimulReport In ASP Mvc

Post by mahyar.net »

I'm trying to use stimulReport in my asp mvc project but I cant do it plz help me and guid me what must I do?
first I want to create a connection to sql server in design mode but there is no sql connection type (pic1)
so in controller i tried to add a data table in to report but there is no effect in my view
controller Code:

Code: Select all

public ActionResult GetReportTemplate()
        {
            
            StiReport report = new StiReport();
           
            DataTable dt = new DataTable("test");
            dt.Columns.Add("Id");
            dt.Columns.Add("Name");
            dt.Rows.Add("1", "Mahyar");

            report.RegData(dt);
            
            return StiMvcDesignerHelper.GetReportTemplateResult(report);
        }
View code:

Code: Select all

@Html.StiMvcDesigner(new StiMvcDesignerOptions()
{
ActionGetReportTemplate = "GetReportTemplate",
AllowModifyDataSources = true,
AllowModifyConnections = true,
Width = Unit.Percentage(100),
Height = Unit.Pixel(700)
})
Attachments
Pic1 Connection Type
Pic1 Connection Type
stimulReport1.jpg (241.77 KiB) Viewed 2011 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Use StimulReport In ASP Mvc

Post by Alex K. »

Hello,

Please check the last prerelease build.

Thank you.
Post Reply