Sign In  Sign Up Live-Chat

rendering chart as swf in .aspx page

Last post 05-22-2008, 4:21 AM by scharbel. 7 replies.
Sort Posts: Previous Next
  •  05-14-2008, 4:45 AM 126864

    rendering chart as swf in .aspx page

    hi,

    I need to render a chart in .aspx page  in swf (macromedia flash format).

    Can you help me in doing this


    Saravana Kumar M.R
     
  •  05-14-2008, 8:20 AM 126914 in reply to 126864

    Re: rendering chart as swf in .aspx page

    Hi,

    Please use Chart.SaveToSwf() method for your requirement.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  05-20-2008, 2:35 AM 127798 in reply to 126914

    Re: rendering chart as swf in .aspx page

    Hi,

    Can you tell me how to save the swf chart into memory stream and embed it in aspx page.


    Saravana Kumar M.R
     
  •  05-20-2008, 1:36 PM 127898 in reply to 127798

    Re: rendering chart as swf in .aspx page

    Hi,

    Could you try as:

    //Save the chart image into a memory stream.
       MemoryStream ms = new MemoryStream();
       chart.SaveToSwf(ms);

       //Save the chart image from the memory stream to the response.
       Response.Clear();
       Response.ContentType = "image/png";
       Response.OutputStream.Write(ms.ToArray(), 0, (int)ms.Length);

     

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  05-20-2008, 1:38 PM 127900 in reply to 127898

    Re: rendering chart as swf in .aspx page

    And for further reference, please check the thread:

    http://www.aspose.com/community/forums/thread/122914/swf-files.aspx

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  05-22-2008, 1:46 AM 128179 in reply to 127900

    Re: rendering chart as swf in .aspx page

    I'm interested in doing the same thing (SWF in an aspx page)
    i downloaded your example and seen that you use a graph.swf in which you generate your graph before showing it in the "Object".
    what i will be interested to do is to show dynamically the stream without saving the swf in a file on the server.
    is there any objects able to show swf stream ??
    is the SaveToSwf  method able to show live stream in other languages ?
    any help would be very useful
    Thank you

     
  •  05-22-2008, 4:01 AM 128201 in reply to 128179

    Re: rendering chart as swf in .aspx page

    Attachment: Present (inaccessible)

    Hi,

    Using Html I don't find a way to show streaming swf in an page directly but object tag.  The attachment is a simple sample for showing flash. "CreateSwfStream.aspx" create a swf stream and then is show in "ShowSwf.aspx" by object tag that does not need to save a swf file on web server.


    Roger Mo
    Developer
    Aspose Nanjing Team
    Contact Us
     
  •  05-22-2008, 4:21 AM 128205 in reply to 128201

    Re: rendering chart as swf in .aspx page

    It worked
    i thought it would be sthg more complicated
    Thank You for u Reply
     
View as RSS news feed in XML