Click here to Skip to main content
15,885,985 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Is it possible re-cycle an IIS Pool using code ? Pin
F-ES Sitecore5-Nov-18 6:20
professionalF-ES Sitecore5-Nov-18 6:20 
AnswerRe: Is it possible re-cycle an IIS Pool using code ? Pin
sriyanssharma5-Nov-18 21:56
sriyanssharma5-Nov-18 21:56 
GeneralRe: Is it possible re-cycle an IIS Pool using code ? Pin
Member 140445426-Nov-18 5:05
Member 140445426-Nov-18 5:05 
QuestionHow to Allow/Deny access to Web page using Active Directory credentials Pin
CareConsulting5-Nov-18 4:20
CareConsulting5-Nov-18 4:20 
QuestionCSS for Ajax Tab on disabled TabPanel Pin
lti20003-Nov-18 7:09
lti20003-Nov-18 7:09 
QuestionUnable to read data when it comes as wrapper collection object from API Pin
Member 140403571-Nov-18 4:18
Member 140403571-Nov-18 4:18 
QuestionWant to create a grouped report using rdlc any help would be greatly helpful Pin
simpledeveloper31-Oct-18 11:50
simpledeveloper31-Oct-18 11:50 
QuestionreportViewer.Height is not setting the height of the report Pin
simpledeveloper31-Oct-18 7:31
simpledeveloper31-Oct-18 7:31 
Hi,

I created a report and getting it displayed using ReportViewerForMvc, but I want to set its height, I tried in the below way by trying to set in the code of the Controller Action method but still its height is not set to the limit I want to set it to. Any help would be greatly helpful, thanks in advance.
Controller:
public ActionResult ShowLegalEntityReport(string legalEntityNumber, string lENumOperator, string legalEntityName, string lENameOperator
    , string taxId, string taxIdOperator, string submittingCounty, string submCountyOperator, string legalEntityCity, string lECityOperator)
{
    ReportViewer reportViewer = new ReportViewer();
    reportViewer.ProcessingMode = ProcessingMode.Local;
    reportViewer.SizeToReportContent = true;
    reportViewer.Width = Unit.Percentage(900);
    reportViewer.Height = Unit.Percentage(700);

    DataRetrieveServiceClient drsc = new DataRetrieveServiceClient();

    DataTable dt = CommonFunctions.ToDataTable(drsc.GetLegalEntityReport(legalEntityNumber, lENumOperator, legalEntityName, lENameOperator, taxId, taxIdOperator
        , submittingCounty, submCountyOperator, legalEntityCity, lECityOperator));

    reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reports\LegalEntityReport.rdlc";
    reportViewer.LocalReport.DataSources.Add(new ReportDataSource("LegalEntityDataSet", dt));

    ViewBag.ReportViewer = reportViewer;


    return View();
}

The reportviewer cshtml has the following:
@using ReportViewerForMvc; 
@{
    ViewBag.Title = "Show Legal Entity Report";
    Layout = "~/Views/Shared/_LayoutFinal.cshtml";
}

@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)


modified 31-Oct-18 14:35pm.

AnswerRe: reportViewer.Height is not setting the height of the report Pin
Richard Deeming31-Oct-18 9:16
mveRichard Deeming31-Oct-18 9:16 
GeneralRe: reportViewer.Height is not setting the height of the report Pin
simpledeveloper31-Oct-18 11:41
simpledeveloper31-Oct-18 11:41 
QuestionWhy my code only read one row? Pin
NerakSeven29-Oct-18 12:02
NerakSeven29-Oct-18 12:02 
AnswerRe: Why my code only read one row? Pin
User 41802541-Nov-18 3:19
User 41802541-Nov-18 3:19 
QuestionASP.NET Website Template or CMS for Database-driven site? Pin
Member 1214932324-Oct-18 23:10
Member 1214932324-Oct-18 23:10 
AnswerRe: ASP.NET Website Template or CMS for Database-driven site? Pin
Afzaal Ahmad Zeeshan25-Oct-18 2:29
professionalAfzaal Ahmad Zeeshan25-Oct-18 2:29 
AnswerRe: ASP.NET Website Template or CMS for Database-driven site? Pin
sriyanssharma5-Nov-18 21:58
sriyanssharma5-Nov-18 21:58 
QuestionASP.NET Website Template or CMS for Database-driven site? Pin
Member 1214932324-Oct-18 23:10
Member 1214932324-Oct-18 23:10 
AnswerRe: ASP.NET Website Template or CMS for Database-driven site? Pin
Afzaal Ahmad Zeeshan25-Oct-18 2:36
professionalAfzaal Ahmad Zeeshan25-Oct-18 2:36 
GeneralASP.NET MVC dependency injection Pin
Dwayne Barsotta24-Oct-18 19:32
Dwayne Barsotta24-Oct-18 19:32 
GeneralRe: ASP.NET MVC dependency injection Pin
Nathan Minier25-Oct-18 1:21
professionalNathan Minier25-Oct-18 1:21 
QuestionRadGrid hierarchy parentID using command-template Pin
jsegreti9-Oct-18 18:03
jsegreti9-Oct-18 18:03 
AnswerRe: RadGrid hierarchy parentID using command-template Pin
Vincent Maverick Durano11-Oct-18 11:28
professionalVincent Maverick Durano11-Oct-18 11:28 
Questioncreate dynamic textBoxes Pin
Member 933127825-Sep-18 3:30
Member 933127825-Sep-18 3:30 
AnswerRe: create dynamic textBoxes Pin
Dar Brett25-Sep-18 4:55
Dar Brett25-Sep-18 4:55 
AnswerRe: create dynamic textBoxes Pin
F-ES Sitecore26-Sep-18 22:43
professionalF-ES Sitecore26-Sep-18 22:43 
QuestionHow to Complete Angular/Typescript-Based Web Development Workflow in Restricted Environment Pin
Christopher Koeber23-Sep-18 10:36
Christopher Koeber23-Sep-18 10:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.