FR server prints only 5 pages

We have an installation problem. We have reinstalled in a clean box twice an the problem persists.

1. Fast report server WORKS FINE when invoked through a URL redirect
for example :
Response.Redirect("http://192.168.1.7:8010/result?report=1.Basic reports/r2.fr3&rec=sbrocco&format=PDF");

2. Fast report DOES NOT WORK and will only print 5 pages when called form a ASP page using your own example code :

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FastReport;

public partial class _Default : System.Web.UI.Page
{
protected TfrxReportClass frx;
protected System.IO.MemoryStream ms;
protected System.IO.StreamReader sr;
protected IfrxBuiltinExportsEx exports;

protected void Page_Load(object sender, EventArgs e)
{
// Create report object
frx = new TfrxReportClass();

// Load report template
frx.LoadReportFromFile(@C:\Program files\FastReports\FastReport Studio\Reports\1.Basic reports3.Nested groups.fr3);
// Disable message boxes
frx.EngineOptions.SilentMode = frxSilentMode.simSilent;
// Disable progress window
frx.ShowProgress = false;
// Build report
frx.PrepareReport(true);
// Create a memory stream object
ms = new System.IO.MemoryStream();
// Query extended export interface
exports = frx as IfrxBuiltinExportsEx;
// Do export
exports.ExportToHTML(ms, true, true, false, false, true, false);
// Set memory stream position to begin
ms.Position = 0;
// Create tream reader by a memory stream
sr = new System.IO.StreamReader(ms);
// Write result to the user's browser
Response.Write(sr.ReadToEnd());
sr = null;
ms = null;
}
}

Comments

  • FRNLFRNL Hoogeveen - Netherlands
    edited 3:25PM
    I Wonder: you use the FRServer version that you bought from FastReport or a FastReport Dealer I suppose?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.