count of export page in fast report
Hi all ,
when i see report in previwe of Design page of fast report (by frx.DesignReport();)number of pages are 1000 , but when i Export this report ToHTML (by frx.ExportToHTML...) this count of this report is 100 page...
please say to my cause of this problem and solution of it .
thanks
when i see report in previwe of Design page of fast report (by frx.DesignReport();)number of pages are 1000 , but when i Export this report ToHTML (by frx.ExportToHTML...) this count of this report is 100 page...
please say to my cause of this problem and solution of it .
thanks
Comments
void Biuld_query(string qmaster, string qdetail, int tagreport)
{
//-- Create report object
frx = new TfrxReportClass();
frx.ClearDatasets();
frx.ClearReport();
//-- Create ADO database object
TfrxADODatabaseClass ado_database = new TfrxADODatabaseClass();
ado_database.ConnectionString = ConfigurationManager.AppSettings["ConStrGozareshAnbar"];
ado_database.LoginPrompt = false;
ado_database.Connected = true;
string report =" code of my report ";
//
//
frx.EngineOptions.SilentMode = frxSilentMode.simSilent;
//-- Create ADO query object
TfrxADOQueryClass ado_query = new TfrxADOQueryClass();
ado_query.DataBase = ado_database;
ado_query.Name = "PSDBReport";
ado_query.Query = qmaster;
frx.SelectDataset(true, ado_query as IfrxDataSet);
MemoryStream m = new MemoryStream(System.Text.Encoding.Default.GetBytes(report));
frx.LoadReportFromStream(m);
try
{
//-- Build report
//frx.DesignReport();//--> by this code i see fast report design that in preview it count of my report are 1000 page frx.PrepareReport(true);
}
catch (Exception e)
{
AlertByJava(e.Message);
}
//
//
exports = frx as IfrxBuiltinExportsEx;
//
//
////-- Do export
StrName ="name of html page of report";
ExportTo = Server.MapPath("exportfile" + "\\" + StrName);
frx.ExportToHTML(ExportTo, false, true, false, true, false, false);// i see in browser 100 page of 1000 page
//
//
frx.ClearDatasets();
frx.ClearReport();
//tbl_main.Visible = false;
}
regards
Another idea, try to use Multipage option, use frx.ExportToHTML(ExportTo, false, true, true, true, false, false);
At first, thanks for reply ...
i check both of solution that you suggested but my program problem didn't solve ,
please help me if can you!
regards
product version : 4.6.98.0