Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

exporting data to Word with Coldfusion

$
0
0

Saw the link at

http://www.irt.org/articles/js154/index.htm which explains how to do it.

 

But, my need is a bit more than what is shown.

 

I have to run a query and based on results of it decide what should be a row title, then display its value. Something like

 

<cfquery name="getDepartments" datasource="#Application.ds#">
                    SELECT *
                    FROM departments
                    WHERE deptID = '#form_data.deptID#'
                </cfquery>

 

then

 

<table width="100%" border="1" rules="all" cellpadding="5px" cellspacing="0px" style="width:100%; font-family:Arial, Helvetica, sans-serif; font-size:12px;">
                            <tr>
                                <td style="font-family:Arial; font-size:12px;"><b>

 

<cfif getDepartments.DEPT_TYPE is 'AP'>
                                        Corporate
                                    <cfelse>
                                        Retail
                                    </cfif>
                                    :</b>
                                    <br>

 

This does not work using the method shown at the link http://www.irt.org/articles/js154/index.htm

 

How can I achieve what I want?

 

Any advice would be welcome.


Viewing all articles
Browse latest Browse all 38309

Trending Articles