I can't view other prepared pages in webreport

edited December 2014 in FastReport .NET
hi everyone.
I save my prepared reports in database . load from database and Show report if clients want to view report.
I have webReport as WebReport1 in my page.

my report load function is here. but only 1 page is Showing. but if export report to pdf, I can view all pages.

using (SqlConnection DBcon = new SqlConnection..
{
MemoryStream ms;

DBcon.Open();
using (SqlCommand cmd = new SqlCommand("Select REPORT from REPORTDB where IDX=41", DBcon))
{
var varArray = (Byte[])cmd.ExecuteScalar();
ms = new MemoryStream(varArray);
WebReport1.Report.LoadPrepared(ms);
WebReport1.ReportDone = true;
}

Comments

  • edited 12:26PM
    I found solution.

    DBcon.Open();
    using (SqlCommand cmd = new SqlCommand("Select RPT from TEMPRPT where IDX=@IDX";, DBcon))
    {
    cmd.Parameters.Add("@IDX";, SqlDbType.Int).Value = IDX;
    var varArray = (Byte[])cmd.ExecuteScalar();
    ms = new MemoryStream(varArray);
    WebReport1.CurrentTab.Report.LoadPrepared(ms);
    WebReport1.ReportDone = true;

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.