?
Solved

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

Posted on 2007-04-05
6
Medium Priority
?
609 Views
Last Modified: 2013-12-23
How to Open Crystal reports in ASP (Using Classical ASP not the .Net )
0
Comment
Question by:arunkumarmanas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 101

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 2000 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 101

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Simple Linear Regression
Suggested Courses

770 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