Click here to Skip to main content
15,905,558 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming19-Nov-18 7:50
mveRichard Deeming19-Nov-18 7:50 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper20-Nov-18 10:18
simpledeveloper20-Nov-18 10:18 
QuestionWhat technique can be used for printing ALL PAGES from crystal report? Pin
Member 1405550514-Nov-18 23:09
Member 1405550514-Nov-18 23:09 
AnswerRe: What technique can be used for printing ALL PAGES from crystal report? Pin
Member 1405668818-Nov-18 17:27
Member 1405668818-Nov-18 17:27 
QuestionWCF Service is giving faulted Exception Pin
simpledeveloper13-Nov-18 7:10
simpledeveloper13-Nov-18 7:10 
AnswerRe: WCF Service is giving faulted Exception Pin
Ali Al Omairi(Abu AlHassan)14-Nov-18 6:05
professionalAli Al Omairi(Abu AlHassan)14-Nov-18 6:05 
GeneralRe: WCF Service is giving faulted Exception Pin
simpledeveloper14-Nov-18 8:56
simpledeveloper14-Nov-18 8:56 
QuestionGenerating Reports using ReportViewerForMVC tool Pin
simpledeveloper6-Nov-18 7:49
simpledeveloper6-Nov-18 7:49 
Hi, I am generating reports in my ASP.Net MVC Web application by using ReportViewerForMvc tool, I am able to generate them locally on my machine by using the code below.

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(900);

    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();
}


To run it on the Server I have used the following change but the report generation fails locally as well on my machine:
reportViewer.LocalReport.ReportPath = Request.ApplicationPath + @"/Reports/LegalEntityReport.rdlc";


Any help would very greatly helpful, please need some help as it is urgent, thanks in advance.
AnswerRe: Generating Reports using ReportViewerForMVC tool Pin
Richard Deeming6-Nov-18 8:13
mveRichard Deeming6-Nov-18 8:13 
QuestionIs it possible re-cycle an IIS Pool using code ? Pin
Member 140445425-Nov-18 5:13
Member 140445425-Nov-18 5:13 
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 
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 

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.