Generating .swf files at runtime sounds like a terrible security nightmare waiting to happen.
A better solution might be to create an empty .swf file which expects data from a fixed data source such as a text file which also gets embedded into the .ppt (not sure if this might be possible, but hear me out) and picking up data from it at runtime. Alternatively, it might be possible to pass data to the ActiveX through the use of the FlashVars property. If none of these methods work and you have to fall back on creating .swf files at runtime, the specifications are open if you want to roll your own, or you can use the Flex compiler and its associated Ant task to do the job for you. To make things easier, make sure that you don't generate code at runtime. Extract data from the data source and save it into plain text or XML. Embed this into the .swf while compiling it. .p On Mon, May 30, 2011 at 4:48 PM, prasad AWARE <[email protected]> wrote: > I'm embeding a chart (.swf) in webpage which reads data from an database by > using webservice and draw the chart. Once the page is loaded the Chart will > get displayed. Upto that I'm comfortable. > > I want to give an option for embeding the chart to a ppt. > That means I want to create an instance of exiting chart and embed it in > powerpoint. I don't want to read the data from an database by using > webservice and draw the chart in powerpoint again. Because ppt may be viewed > offline also. Reading and drawing the chart was done onload of the webpage. > And the chart may differ depending on webservice data. I want to embed the > same chart as displayed in webpage to powerpoint. > something like creating a .swf runtime for embeding in powerpoint. > Or generating the source code of .swf file.... > can anybody help me > > > Best Regards > Prasad Aware > +91-9860015984 > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

