In order to determine whether or not it is a CF problem or actually a
problem with that method, could you try referencing it from Vbscript instead
via ASP.


> -----Original Message-----
> From: Tim Blair [mailto:[EMAIL PROTECTED] 
> Sent: 17 March 2004 12:48
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] iText PDF Tables - setWidths()
> 
> 
> 
> Ello all...
> 
> We're having issues with iText and creating PDF tables...  
> There's a function in com.lowagie.text.pdf.PdfPTable called 
> setWidths(int[]
> widths) which just isn't playing ball.  It just doesn't seem 
> to recognise the method signature and keeps coming back with 
> "method not found".
> 
> CF arrays are actually java Vectors so we've tried using 
> .toArray() to convert it to a java array.  We've also tried 
> explicitly casting each array item to a java int, but still not joy:
> 
> <cfscript>
> colSizes = "4,9,9,9,9,9";
> widthArr = arraynew(1);
> i = 1;
> for(i=1; i LTE listlen(colSizes); i=i+1) {
>     arrayappend(widthArr, javacast("int", listgetat(colSizes, 
> i))); } PDFTable = createObject("java", 
> "com.lowagie.text.pdf.PdfPTable").init(6);
> PDFTable.setWidths(widthArr.toArray());
> </cfscript>
> 
> Everything we try just results in "The selected method 
> setWidths was not found"...  Anyone managed to use this in a 
> sensible fashion?  Or has any other ideas about how to go about it?
> 
> Cheers,
> 
> Tim.
> 
> --
> -------------------------------------------------------
> <CF_CodingContest mode="judging" newentries="false">
> Maze Solver - http://tech.badpen.com/cfcontest/
> -------------------------------------------------------
> RAWNET LTD - Internet, New Media and ebusiness Gurus.
> WE'VE MOVED - for our new address, please visit our
> website at http://www.rawnet.com/ or call us any time
> on 0800 294 24 24.
> -------------------------------------------------------
> This message may contain information which is legally 
> privileged and/or confidential.  If you are not the intended 
> recipient, you are hereby notified that any unauthorised 
> disclosure, copying, distribution or use of this information 
> is strictly prohibited. Such notification notwithstanding, 
> any comments, opinions, information or conclusions expressed 
> in this message are those of the originator, not of rawnet 
> limited, unless otherwise explicitly and independently 
> indicated by an authorised representative of rawnet limited.
> -------------------------------------------------------
> 
> -- 
> These lists are syncronised with the CFDeveloper forum at 
> http://forum.cfdeveloper.co.uk/
> Archive: 
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>  
> CFDeveloper Sponsors and contributors:-
> *Hosting and support provided by CFMXhosting.co.uk* :: 
> *ActivePDF provided by activepdf.com*
>       *Forums provided by fusetalk.com* :: *ProWorkFlow 
> provided by proworkflow.com*
>            *Tutorials provided by helmguru.com* :: *Lists 
> hosted by gradwell.com*
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 


--
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to