• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Report Type for pdf and Excel

Engaged ,
Aug 26, 2014 Aug 26, 2014

Copy link to clipboard

Copied

I have following code to generate the report for pdf format.

I would like to let users to choose report type 'pdf' or 'excel'

I need pass the user select from user interface to <cfreport format= "PDF" or "Excel".

Can you please advise how I can pass the user select Report Type from lsReportType to my cfReport?

Your help and information is great appreciated,

Regards,

Iccsi

<cfstoredproc procedure="spGetReportType">

   <cfprocresult name="rsReportType" resultset="1">

</cfstoredproc>

<cfreport format = "PDF" template= "MyReport.cfr" query="#myQuery#">

   </cfreport>

<td><select width="50" name="lstReportType" id="lstReportType">

      <cfoutput query="rsReportType">

         <option value="#rsReportType.ReportTypeID#" <cfif (isDefined("form.ReportTypeID") AND form.ReportTypeID EQ rsReportType.ReportTypeID)>selected="selected"</cfif>>#rsReportType.ReportType#</option>

       </cfoutput>

     </select></td>

TOPICS
Reporting

Views

414

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Sep 02, 2014 Sep 02, 2014

Change format="PDF" to format="#VariableName#" where VariableName contains the text "PDF" or "Excel".

Votes

Translate

Translate
Advocate ,
Sep 02, 2014 Sep 02, 2014

Copy link to clipboard

Copied

LATEST

Change format="PDF" to format="#VariableName#" where VariableName contains the text "PDF" or "Excel".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation