Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET 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 March 12th, 2004, 02:47 AM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CrystalDecisions.CrystalReports.Engine.DataSourceE

i am using dataset(xsd)(only one Table) is the report source of Crystal Reports in .net. it is working fine.

in xsd i created more than one table and accessing 1 st is Main report and 2nd is for subreport.

remember i created datatable in Dataset file (xsd) is temp Tables that it is not draged from DataBase

the code is

dim report as new CristalReportViewer1
.....
...created DataTable and inserting data into Table
and assign to dataSet


Dim subReport as New ReportDocument
subreport = report.OpenSubreport("subreport name")

report.DataBase.Tables(0).setDataSource(ds)
'''''' ds dataset is for main report

subreport.DataBase.Tables(0).setDataSource(ds1)
''' ds1 dataset is for Subreport


crMain(my Crystal Report in aspx page).ReportSource = report



The Error i am getting is
CrystalDecisions.CrystalReports.Engine.DataSourceE xception Query Engine Error.c:\docume~1\suresh\aspnet\locals~1\temp\temp _a2e7dda7-6191-41d8 9ec3-6570788e320d.rpt

can u please respond my question






 
Old June 28th, 2004, 04:29 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yup, anyone out there can help us out. i am also facing this trouble.
I cannot create a crystal report in VS2003 (version 1.1) using MORE than 1 table. With 1 table its totally fine.

I get the following error:
CrystalDecisions.CrystalReports.Engine.DataSourceE xception: Query Engine Error: 'C:\DOCUME~1\.......................temp_7e93dc03-3a7e-4533-be71-9d75ffcda3fb.rpt'

Please help

Quote:
quote:Originally posted by suresh_mogrampalli
 i am using dataset(xsd)(only one Table) is the report source of Crystal Reports in .net. it is working fine.

in xsd i created more than one table and accessing 1 st is Main report and 2nd is for subreport.

remember i created datatable in Dataset file (xsd) is temp Tables that it is not draged from DataBase

the code is

dim report as new CristalReportViewer1
.....
...created DataTable and inserting data into Table
and assign to dataSet


Dim subReport as New ReportDocument
subreport = report.OpenSubreport("subreport name")

report.DataBase.Tables(0).setDataSource(ds)
'''''' ds dataset is for main report

subreport.DataBase.Tables(0).setDataSource(ds1)
''' ds1 dataset is for Subreport


crMain(my Crystal Report in aspx page).ReportSource = report



The Error i am getting is
CrystalDecisions.CrystalReports.Engine.DataSourceE xception Query Engine Error.c:\docume~1\suresh\aspnet\locals~1\temp\temp _a2e7dda7-6191-41d8 9ec3-6570788e320d.rpt

can u please respond my question






 
Old July 5th, 2004, 12:19 PM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I see your problem.

In order to run a report on multiple tables those tables must exist in the same dataset. Create a data adapter for each table

*** VB.NET
Dim da1 as New OleDbDataAdapter()
Dim da2 as New OleDbDataAdapter()

da1.fill(ds)
da2.fill(ds2)

** C#
OleDbDataAdapter da1 = new OleDbDataAdapter();
OleDbDataAdapter da2 = new OleDbDataAdapter();

da1.fill(ds);
da2.fill(ds2);






Similar Threads
Thread Thread Starter Forum Replies Last Post
CrystalDecisions.CrystalReports.Engine.InternalExc hkodituw BOOK: Professional Crystal Reports for VS.NET 0 June 16th, 2006 03:38 AM
CrystalDecisions.CrystalReports.Engine.LogOnExcept narendra_patil Crystal Reports 0 May 11th, 2006 01:06 AM
CrystalDecisions.CrystalShared.dll ISSUE Joko Purnomo .NET Web Services 0 March 22nd, 2005 01:19 AM
CrystalDecisions.CrystalReports.Engine.DataSourceE vineee BOOK: Professional Crystal Reports for VS.NET 0 September 8th, 2004 02:03 AM
CrystalDecisions.CrystalReports.Engine.LogOnExcept vineee Crystal Reports 0 September 6th, 2004 04:53 AM





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