Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRViewer & ColdFusion?

Status
Not open for further replies.

bobbyr

Programmer
Nov 30, 2000
66
US
Anybody know how to use the Crystal Reports ActiveX Crviewer together with ColdFusion? I can display the reports fine using <cfreport>, but would like to display the report in the ActiveX Viewer.

Thanks,
Bobby
 
example:
one way to call your report is like this:
<script language = &quot;JavaScript&quot;
var MyWin;
function OpenReport()
{
MyWin=window.open(&quot;MyReport.rpt?init=act_x&quot;,&quot;&quot;,height = 600, width = 800&quot;);
}
</script>

This will open the report in a new window. You may have to pass it some parameters after the act_x such as:
...act_x&amp;user0=<cfoutput>#user#</cfoutput>&amp;password0=<cfoutput>#password#</cfoutput>...
 
There is a wonderful product called &quot;Recrystalize&quot; which intergrates the Crystal viewer and programs such as CF. Using a wizard interface, you can create pages which call the viewer with any number of user specified parameters.

Check out for more.

Also, you can use the wizard to create the calling page, then modify it, subsituting form variables for user input, for example.

Great product!!

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top