How to Open Crystal reports in ASP (Using Classical ASP not the .Net )

How to Open Crystal reports in ASP (Using Classical ASP not the .Net )
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

nirojexpertConnect With a Mentor Commented:
try to follow these pseudo steps

1. create a active-x dll project in vb6
add crystal report viewer
create a method such as OpenReport(fileName, exportFormat, ExportDestination)
'this method should open the filename, and save in the exportFormat to the desintation
'you can automate this several ways

2. create the object from asp as
set myCRPT = server.CreateObject("")
myCRPT.OpenReport("C:\inetpub\wwwroot\file1.rpt", "html", "C:\inetpub\wwwroot\temp\file1.html")
'redirect the user to the report so that is is displayed
response.redirect "temp\file1.html"

can you try.
you can write a active-x control which will open the crystal reports and export to the required format and display to the user
asp-active-x dll-crystal reports-export-output file-web browser

this can be achieved from the traditional asp.
arunkumarmanasAuthor Commented:
Hi nirojexpert,

Can I have the sample code to write this asp-active-x dll.

Thanks for your response.
I believe my comment should have provided information to resolve the issue.  Not sure this is worthy of a PAQ

All Courses

From novice to tech pro — start learning today.