Interactive Chart

RamyaRamya cbe
edited 6:20AM in FastReport .NET
Hi,

I tried to create an interactive chart in my application.

I followed the sets as given in the fast report demo.

Created a chart in the first page. In the second page I created a page with only a parameter.

In the hyperlink of the chart, I give the page name as Second Page and the parameter to the created parameter.

But I could not able to click the chart and view the sub page. (Could not find the link mouse pointer at the chart)

I am using the asp.net web application

Please help.

Thank you.

Regards.

Ramya

Comments

  • edited 6:20AM
    Hello,

    Sorry, interactive features are not supported in asp.net.
  • RamyaRamya cbe
    edited 6:20AM
    Hi Alex,

    Thank you for letting me know.

    I need two more clarification in the fast report charts. Please clarify.

    1. I have a button in my aspx page above the "Webreport" object. On clicking that, I have to copy the chart as an image so that I can paste the chart image in a word file. How should I do that. Please let me know the command to do that.

    2. For my chart, I have given a data source and from that data source, it will apply the grouping and will draw the chart. I need to print the grouped values below the chart. How can I do that.

    Please help me.

    Thanks in advance.

    Regards,

    Ramya
  • edited 6:20AM
    1) Use the following code to get the chart image:
                ReportPage page = WebReport1.Report.PreparedPages.GetPage(0);
                ComponentBase chart = page.FindObject("MSChart1") as ComponentBase;
                Bitmap bmp = new Bitmap((int)chart.Width, (int)chart.Height);
                using (Graphics g = Graphics.FromImage(bmp))
                {
                    chart.Draw(new FastReport.Utils.FRPaintEventArgs(g, 1, 1, WebReport1.Report.GraphicCache));
                }
    

    2) Use group header/data bands to print the data. You can see this in the demo.exe, "Charts/Microsoft Chart Sample" report.

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.