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

Comments

  • edited January 2010
    wrote:
    when i Export this report ToHTML (by frx.ExportToHTML...)
    What parameters of frx.ExportToHTML() do you use? Can you provide more information and code?
  • edited 2:23AM
    please see this code i describe my problem in it...


    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
  • edited 2:23AM
    Do you have pictures in report? Try to use export Pictures option, use frx.ExportToHTML(ExportTo, true, true, false, true, false, false);
    Another idea, try to use Multipage option, use frx.ExportToHTML(ExportTo, false, true, true, true, false, false);
  • edited 2:23AM
    hi Oleqk,
    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
  • edited 2:23AM
    wrote:
    string report =" code of my report ";
    Are you sure that it is a correct report?
  • edited 2:23AM
    yes i sure that "my code of teport" is correct because when i used from "frx.DesignReport();" , fast report is poened and then i click on previw button of it an see all of 1000 page...
  • edited 2:23AM
    What is your version of FastReport Studio?
  • edited 2:23AM
    File version: 4.6.98.0
    product version : 4.6.98.0
  • edited 2:23AM
    Try latest version 4.8.67

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.