Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2005, 01:00 PM
Authorized User
 
Join Date: Jul 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal report in Web form

Is there a quick way to generate a Crystal report from the dataset of an adhoc query at run time?

 
Old January 20th, 2005, 01:53 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

   there is no "'Quick" way when it comes to Crystal Reports. It is kind of a pain to implement in ASP.NET. I created a class to set up variables etc that needto be done. If you are interested, i can post the code.

 
Old January 20th, 2005, 02:22 PM
Authorized User
 
Join Date: Jul 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Post the code please. I need to generate a Crystal report from an adhoc query user specify at run time, and export it to different formats.
Thanks.

 
Old January 20th, 2005, 03:05 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

This is what you need.. Exporting is another issue.. I have a class for that..


   Dim crDatabase As CrystalReports.Engine.Database
        Dim crTables As CrystalReports.Engine.Tables
        Dim crTable As CrystalReports.Engine.Table

        crDatabase = crReportDoc.Database
        crTables = crDatabase.Tables
        For Each crTable In crTables
            crTable.SetDataSource(DsCommonReport_rpt1)
        Next
        crvAssess1Comp.ReportSource = crReportDoc --ReportViewer







Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report on Web shamee_banu Crystal Reports 0 March 28th, 2007 02:20 AM
Crystal Report on the Web shamee_banu Crystal Reports 0 March 19th, 2007 03:34 AM
Printing a Crystal Report from the Web acebookend Crystal Reports 0 July 1st, 2005 06:46 AM
How can I use Crystal Report On web using ASP? sachinbashetti Classic ASP Professional 0 May 2nd, 2005 12:00 AM
crystal report in web app gives problem teo.landgraf Crystal Reports 0 January 13th, 2005 03:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.