[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

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 )
0
arunkumarmanas
Asked:
arunkumarmanas
  • 2
  • 2
1 Solution
 
nirojexpertCommented:
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
 
arunkumarmanasAuthor Commented:
Hi nirojexpert,

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

Thanks for your response.
0
 
nirojexpertCommented:
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
 
mlmccCommented:
I believe my comment should have provided information to resolve the issue.  Not sure this is worthy of a PAQ

mlmcc
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now