in a rush

experience is everything

in a rush header image 2

Dynamic FlashPaper

April 28th, 2008 · No Comments

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.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati

Tags: ColdFusion

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment