ASP.NET MVC VS2010 Crystal Reports Beta 2 cannot print, export, scale, or modify pages

I just upgraded to Crystal Reports Beta 2 for Visual Studio 2010, and I cannot print, export, scale, or change pages when using a web control in an ASP.NET MVC application.

I can get a report to run and display on a web page. All buttons have images, and the report data looks the same as on the page.

In VS2010, looking at .rpt, I can click on “Preview Report” and get the report to run and print, export, scale, etc ... it seems to use the Windows control to render the report, not online control. Thus, I believe that my report file is valid.

When I’m on a web page viewing a report in the Crystal Reports viewer, I get different functionality when I try each of the buttons:

  • Printing: press the “Print” button once, the report will return to the web server, run the report again, and then return to the web page and do nothing. Click it again, and on this new tab a new tab will open with the same message.
  • Export: Export opens a dialog box asking what format I would like to export. As soon as I make a choice, it performs the same printing functions as at the back end, and then nothing. Pressing the export again opens a new tab with the message in it.
  • Page scaling / zooming - both of these options appear using the dialog box, the counter, and then freezing the page.

, , (IE, Chrome, Mozilla), .

Chrome, :

  • JobHistory: 59 [HTML, , script.] . .
  • JobHistory: 59 [HTML, , script.] . .

, :

  • Crystal Reports
  • , ​​- 2 Crystal Reports
  • , 2008 .
  • Crystal Reports beta 2.

, , .

+2
1

Crystal Report Reporter , , MVC. , , , , , .

ASP.NET MVC 1, Visual Studio 2008 Crystal Reports, VS2008. VS2010 , - Crystal Reports 2010, Report Viewer aspx, MVC.

, : - , , , VS2010 CrystalReports 2010: fooobar.com/questions/1023245/...

  • ,

List<JobSummaryBody> body = model.GetJobSummaryBody(jobId, startDate, endDate);

  • :

JobSummaryByDate summary = new JobSummaryByDate();

. JobSummaryByDate - , Crystal Reports, , . , .

  • , .

summary.SetDataSource(body);

  • , Response.Redirect aspx, Crystal Reports

Session["ReportData"] = summary; Response.Redirect("~/CrystalReports/JobSummaryByDateView.aspx");

. "CrystalReports", URL-.

  • JobSummaryByDateView.asp , Crystal Report, :

    <CR:CrystalReportViewer ID="ReportViewer" runat="server" AutoDataBind="true" EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ToolPanelView="None" HasDrilldownTabs="False" HasDrillUpButton="False" HasSearchButton="False" HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False" ReuseParameterValuesOnRefresh="True" />

  • , , , ReportViewer.ReportSource , :

protected void Page_Init(object sender, EventArgs e) { ReportViewer.ReportSource = Session["ReportData"]; }

+2

All Articles