Solved

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

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

Expert Comment

by:mlmcc
ID: 18857456
0
 
LVL 6

Expert Comment

by:nirojexpert
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.
0
 

Author Comment

by:arunkumarmanas
ID: 18916438
Hi nirojexpert,

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

Thanks for your response.
0
 
LVL 6

Accepted Solution

by:
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("CrptWriter.report")
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.
0
 
LVL 100

Expert Comment

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

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

726 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