home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / cfreport.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  1.0 KB  |  32 lines

  1. <!--- This view-only example shows the use of CFREPORT --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>CFREPORT Example</TITLE>
  5. </HEAD>
  6.  
  7. <BODY>
  8. <H3>CFREPORT Tag</H3>
  9. <P>CFREPORT allows reports from the Crystal Reports Professional 
  10. report writer to be displayed through a Cold Fusion interface.  
  11. The CFREPORT tag requires the name of the report to run; 
  12. CFREPORT can also pass information to the report
  13. file being displayed to change the output conditions.
  14.  
  15. <P><i>CFREPORT is used in Windows NT only. It is not available under UNIX.</i>
  16.  
  17. <P>This view-only example would run a report called 
  18. "monthlysales.rpt" and pass it an optional filter condition to 
  19. show only the information for a certain subset of the report.
  20.  
  21. <CFOUTPUT>#HTMLCodeFormat("
  22. <CFREPORT REPORT='/reports/monthlysales.rpt'>
  23.           {Departments.Department} = 'International'
  24. </CFREPORT> ")#
  25. </CFOUTPUT>
  26.  
  27. <P>Substitute your own report files and filters for this code 
  28. and CFREPORT can place your existing Crystal Reports into web pages.
  29.  
  30. </BODY>
  31. </HTML>       
  32.