[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.9

Yet another custom ColdFusion/Excel question

Asked by douetja in ColdFusion Application Server, Microsoft Excel Spreadsheet Software, Cold Fusion Markup Language

Tags: ColdFusion, Excel, cfcomponents, CFX_Query2Excel, CFX_Excel2Query

I am using the custom CFX_Query2Excel and CFX_Excel2Query tags to write and read data from and to Excel. That's fine when value placement is fairly trivial (consecutive rows and columns). However, I have a customer who has a highly customized Excel file that is used as a form rather than a spreadsheet. Data is truly "shotgunned" all over the place.

My need then is to take (say) field0.value and put it in cell b6, field1.value in cell g19, etc. I suspect one way to do this is to write a lot of XML code. Another seems to be this: I found a nice component called cfHSSF at http://cfhssf.riaforge.org/ that is promising. It makes use of POI to create and modify Excel workbooks and sheets. I'm not having success. Code snippet from the component:

-------------------
      <cffunction name="createSheet" returntype="any" output="no" hint="I create a new sheet">
            <!---
            Sheets need to be created before the workBook creation!
            --->
            <cfargument type="any" name="workbook" default="wb">
            <cfargument type="string" name="sheetName" required="Yes">
            <cfreturn workbook.createSheet(sheetName)>
      </cffunction>
-------------------

My calling code:
-------------------
<cfinvoke component="cfHSSF" method="createSheet" returnvariable="XLSheet" workbook="TestWB" sheetName="TestSheet"></cfinvoke>
-------------------

And finally, the IE8 output:
-------------------
The createSheet method was not found.  
Either there are no methods with the specified method name and argument types, or the createSheet method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that matched the provided arguments. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.  
 
The error occurred in C:\websites\a4kxhc\SSL\cfc\cfExcel.cfc: line 46
 
44 :             <cfargument type="any" name="workbook" default="wb">
45 :             <cfargument type="string" name="sheetName" required="Yes">
46 :             <cfreturn workbook.createSheet(sheetName)>
47 :       </cffunction>
48 : <!---
-------------------

I have contacted the author, but he seems to be busy, hence I'm here. Have also contacted the hosting company (Hosting.com), but no answers so far.

Regards.
[+][-]11/04/09 11:31 AM, ID: 25742959Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 11:41 AM, ID: 25743054Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/18/09 03:19 PM, ID: 25856105Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: ColdFusion Application Server, Microsoft Excel Spreadsheet Software, Cold Fusion Markup Language
Tags: ColdFusion, Excel, cfcomponents, CFX_Query2Excel, CFX_Excel2Query
Sign Up Now!
Solution Provided By: _agx_
Participating Experts: 2
Solution Grade: A
 
[+][-]11/18/09 03:19 PM, ID: 25856109Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/19/09 06:34 AM, ID: 25860695Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/19/09 06:38 AM, ID: 25860722Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/19/09 01:40 PM, ID: 25865334Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625