> to create a java object in coldfusion, you need to instantiate it *AND*
> call a valid constructor. Coldfusion "fakes" the constructor by
> creating an "init" method that you can call. When you create the
> object, you *SHOULD* already have access to its constants.. so this
> should work, assuming you knew the classpath for BaseFont. Which I don't.
>
> <!--- load object --->
> <cfset bf = createObject("java","class.path.BaseFont")>
> <!--- call constructor --->
> <cfset bf.init(bf.HELVETICA, bf.CP1252, bf.NOT_EMBEDDED)>
>
>
> Rick
....and the example I posted does it all in 1 line ;-)
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242652
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54