Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex: Export Graph to .NET?
    primarykey
    data
    text
    <p>I have a graph component in Flex and my end-user wants to be able to manipulate this control in Flex, and then export the result into Powerpoint. I don't have a problem exporting an Image to Powerpoint, but where I am running into a problem is with exporting the Flex component to a .NET web service. Here is the code I have come up with...</p> <p>The Web Service Declaration:</p> <pre><code>&lt;mx:WebService id="ws" wsdl="http://localhost:59228/CreateImageService.asmx?wsdl"&gt; &lt;mx:operation name="CreateImage" resultFormat="xml"/&gt; &lt;/mx:WebService&gt; </code></pre> <p>The Flex code:</p> <pre><code> private function btnCreateImage():void { var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(TeamChart); var imageByteArray:ByteArray = imageSnap.data as ByteArray; ws.CreateImage(imageByteArray); //swfLoader.load(imageByteArray); } </code></pre> <p>And the Web Service code:</p> <pre><code> [WebMethod] public void CreateImage(byte byteArrayin) { CreateImage createImage = new CreateImage(); createImage.byteArrayToImage(byteArrayin); } </code></pre> <p>I know the component is being converted successfully to a ByteArray because I can use SWFLoader() to make it reappear within the Flash canvas. If I try to send the bytearray to the .NET web servie, I get a SOAP errr. If I submit a 0 to the web service, this will at least hit the web service.</p> <p>I'm not quite sure where the problem is, but I fear it's something simple that I'm overlooking.</p> <h2>Much appreciated,</h2> <p>-Matt</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload