> Reference fails with: "Failed attempting to find "W"
> property/method on the object COM error 0x80020006. Unknown name."
>
> <cfSet g=CreateObject("COM","shotgraph.image")>
> ***other init stuff here ****
> <cfset w=0><cfset h=0>
> <cfset x=g.gettextdimensions("this is the string",w,h)>
> <cfoutput>w = #g.w#</cfoutput>
>
> If I fail to initialize w or h, then "Error resolving
> parameter W" occurs.
>
> The docs use VB examples, so my CF construct is different.
> The VB example: g.GetTextDimensions text,x,y
I suspect you will not be able to use this COM object directly from CF,
unless it has alternative properties and methods that you can directly
address from within CF. However, you could probably write a COM wrapper for
the object, and call that from CF. I've done that occasionally using Windows
Script Host.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239115
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54