I'm trying to use the jExcel java utility to read an Excel template,
replace an image (logo) and save it with a new name. I am having
trouble on the first step - reading the excel template. I am able to
create a new, blank workbook, so I believe the jar file is installed
correctly (placed in c:\CFusionMX7\lib).

The method to read a book is
public static Workbook getWorkbook(java.io.File file)

However, when I call getWorkbook, I get an error saying that method
cannot be found. Here is what I have that will throw that error.

workbook = createObject("java","jxl.Workbook");
file = createObject("java","java.io.File").init("C:\invoice.xls");
workbook = workbook.getWorkbook(file);

Looking for any ideas here as I have run out myself.

-- 
Matt Williams
"It's the question that drives us."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280465
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to