how to run .frx file directly

protected void Button1_Click1(object sender, EventArgs e)
{



int count = 1;
using (FastReport.Report report = new FastReport.Report())
{
report.Load(@C:\one.frx);
report.Prepare();

foreach (PageBase item in report.Pages)
{
string fileName = string.Format("myReport_{0}.png", count);
report.Export(new FastReport.Export.Image.ImageExport() { PageRange = PageRange.Current, CurPage = count }, fileName);
count++;
}
}

but not show ing anything
any other way i can run .frx file from my aspx application.

pls. help me.

saul

Comments

  • DesignsbyrayDesignsbyray Ohio, USA
    edited 5:24AM
    Does your code create the png files you have exported to your fileName location? I would think they should be visible on your local system. Once you verify the files are being created you need to make sure your web application is using the right location for the images.

    It is possible your application is outputting your images to an unexpected location.
  • edited 5:24AM
    Thanks for your reply.

    can you pls. give me a solution that i can run .frx file from my laptop directly run and load in aspx webform page.

    also, i want to make parameter from webform that should go to fast report.

    pls. help me and give code.

    savool

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.