Automate print2flash from flex

Publishing Print2Flash Documents embedding them in Flex applications
Post Reply
psunniaitec
Posts:15
Joined:Tue Jan 22, 2008 5:09 am
Automate print2flash from flex

Post by psunniaitec » Wed Jan 23, 2008 2:33 am

i am now building an application in flex. i need to automate print2flash from my application. is it possible in flex or i need to do it in php or vbscript and to call that appln from flex, if it is like that then please help in doing that.

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Automate print2flash from flex

Post by staff » Thu Jan 24, 2008 12:08 am

Do you want to convert documents to Flash from Flex? If so, it cannot be done directly from Flex as Flex does not allow executing external programs from it. The solution is to send a file to convert to an external server, make it convert the file and get the converted file back from the server. For example, this can work as follows:
1. Flex application sends a request to a web service (using WebService Flex components) running on a server and sending it the original document to convert
2. Web service running on ASP.NET converts the document and sends back the resulting Flash file
3. Flex application receives the file
Print2Flash SDK includes a sample of such a web service in ASP.NET (which is located in Automation\Samples\ASP.NET folder of SDK archive)

Post Reply