Save a web report after the manual build event.

Anil PandeyAnil Pandey Mumbai, India
edited 4:17AM in FastReport 4.0
Hello:

I am trying to save a report wherein i am populating the data in the manual build event.

the code is:

protected void WebReport_StartReport(object sender, EventArgs e)
{
fr.Report FReport = CreateReport(); // creates a report dynamically
LoadTable(FReport, ReportId, FromTemp); // calls the manual build event after setting report properties
WebReport.Report = FReport;
FReport.Prepare();
if (!string.IsNullOrEmpty(SaveReportAs))
{
FReport.SavePrepared(@C:\AnilP\ + SaveReportAs + ".frx");
}
}

The problem here is my report gets saved before the report data is populated in the manual build event. [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Is there any other event where i can save the report?[/img]

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.