查看文章 |
[转载]Dynamic FlashPaper
2007年10月21日 星期日 下午 02:55
I was recently trying to create a document collaboration tool for one of my clients. In order to make it a bit easier for the user, I decided I would use FlashPaper to display the uploaded documents they are discussing. It took a couple of hours to figure it out but its pretty simple in the end.
First, you have to have the FlashPaperConnect .dll. Contribute 3, and some other products comes with the FlashPaperConnect .dll that makes it all possible. Contribute also registers the dll on your system, so all you do is CFOBJECT the FlashPaperConnect2.object.2 component. Like so: <cfobject type="com" name="FlashPaper" class="FlashPaperConnect2.object.2" action="create">
The method you need to call is BeginConversion(). Its arguments are the source file, destination file; include outline; paper size; and something else. I'm still looking for documentation on this and if it violates the EULA. But until then... <cfset FlashPaper.BeginConversion('c:\temp\doc1.doc','c:\temp\doc1.swf',0,210,297)>
This seems to work. Good luck. 一些有用的连接:
FlashPaper2左上方ICON換置教學
|
最近读者: