Matt,

>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);

Try using this instead:           


// get a handle to the workbook file
file = createObject("java", "java.io.File").init("C:\invoice.xls");

// create the workbook and load the file
workbook = createObject("java","jxl.Workbook");

//get a writeable workbook
writable = createObject("java", "jxl.write.WritableWorkbook");
writable = workbook.getWorkbook(file);

-Dan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:280476
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to