jcs9000
03-18-2004, 11:49 AM
I am trying to build a web app that will allow a user to run and view a report that was made with Crystal Reports 8.5. I am using Cold Fusion MX as my Server Technology. I looked on Macromedia's website and found the correct usage of the cfreport tag, but I need more help than that. I have created a form that will pass the parameters for the report, but it seems that a destination page is required. I am pretty lost, please help.
Chris
<cfreport report="c:\new reports\Ogle-KPI Ogle Key Performance Indicators Report (historical update).rpt"
"start date" = #form.startDate#
"end date" = #form.endDate# >
</cfreport>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="/images/background.png">
<form name="form1" method="post" action="">
<table width="100%" border="0">
<tr>
<td><div align="right"><font color="#FFFFFF">Start Date:</font></div></td>
<td><input name="startDate" type="text" id="startDate"></td>
</tr>
<tr>
<td><div align="right"><font color="#FFFFFF">End Date:</font></div></td>
<td><input name="endDate" type="text" id="endDate"></td>
</tr>
<tr>
<td></td>
<td><input name="runButton" type="submit" id="runButton" value="Run!"></td>
</tr>
</table>
</form>
</body>
</html>
Chris
<cfreport report="c:\new reports\Ogle-KPI Ogle Key Performance Indicators Report (historical update).rpt"
"start date" = #form.startDate#
"end date" = #form.endDate# >
</cfreport>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="/images/background.png">
<form name="form1" method="post" action="">
<table width="100%" border="0">
<tr>
<td><div align="right"><font color="#FFFFFF">Start Date:</font></div></td>
<td><input name="startDate" type="text" id="startDate"></td>
</tr>
<tr>
<td><div align="right"><font color="#FFFFFF">End Date:</font></div></td>
<td><input name="endDate" type="text" id="endDate"></td>
</tr>
<tr>
<td></td>
<td><input name="runButton" type="submit" id="runButton" value="Run!"></td>
</tr>
</table>
</form>
</body>
</html>