1 person found this helpful
i am currently working on a similar project that will allow document previews...the best way i have found so far that we are working on is to utilize Print2Flash (they have a Flex API as well)...www.print2flash.com
The problem is that it only runs on a Windows server, no Linux...and our app is on Linux...so we have a simple basic Windows server that once a user uploads a file (Word Doc, PowerPoint, Excel, etc.), it sends the file to the Windows server, calls the command to convert the file to a SWF, sends it back to our server and we utilize it for display.
hope that helps.
PS - you can also look into Scribd...they have an API you could use in Flex for SWF file document previews.
Thanks for your detailed answer DHTVP. I am not sure how well Print2Flash will go with the senior developers...if only there were something like it for free/open source. Scribdb would have worked if this were a personal proejct, but our clients would be using it - so we can't send their files to a 3rd party server.
But these are two alternatives I didn't know of
I am not sure if that is what I want. Since from what I heard, the OLE call gets made to one of our servers, which generates and sends the preview back. But I am not 100% sure how it works, so let me check on that.
Thanks for your reply.
Thanks for the answer.
Well, I am only developing for IE but I think the following should work in any Browser:
var wdApp = new ActiveXObject("Word.Application");
as long as Word is installed.