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

Posted on 2007-04-05
Last Modified: 2013-12-23
How to Open Crystal reports in ASP (Using Classical ASP not the .Net )
Question by:arunkumarmanas
  • 2
  • 2
LVL 100

Expert Comment

ID: 18857456

Expert Comment

ID: 18912981
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.

Author Comment

ID: 18916438
Hi nirojexpert,

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

Thanks for your response.

Accepted Solution

nirojexpert earned 500 total points
ID: 18916920
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.
LVL 100

Expert Comment

ID: 19060951
I believe my comment should have provided information to resolve the issue.  Not sure this is worthy of a PAQ


Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
noX challenge 17 77
Text Transformation using ActionScript 3 5 83
pairs challenge 5 45
Modify a small python script 19 54
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now