Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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 July 2nd, 2012, 06:14 AM
Authorized User
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default Create instance of Crystal Report (.rpt)

I’m trying to use Crystal Reports with Linq to SQL in my web application. But couldn’t create the instance of the crystal report (CrystalReport1.rpt) itself, which I need to Set the Data Source. Here is the example what I’m trying to do.
' The report document is ‘CrystalReport1.rpt’
Dim report As New CrystalReport1
Dim results = (from obj in context.tSamples
select new with{ .Name = obj.Name, .Model = obj.Model, .Producer = obj.Producer }).ToList();
crystalReportsViewer1.ReportSource = report;

The web page is not allowing me to write the first line above, which is:
Dim report As New CrystalReport1

I would appriciate any help.
Thank you

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Create a new Dynamic Crystal Report ramk_1978 VB How-To 4 October 7th, 2008 10:39 PM
how to create a crystal report in asp.net 2.0 smartymca Crystal Reports 1 August 27th, 2007 05:27 AM
Create crystal report design dynamically. velmurugan Crystal Reports 0 September 9th, 2006 12:53 AM
How to create rpt file dynamically raghur Crystal Reports 0 August 25th, 2005 11:56 PM
Exporting Crystal Report 6 RPT file into PDF forma ravs1304 Crystal Reports 2 December 29th, 2004 12:48 PM

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