473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Crystal Subreports

tg
I am displaying a report in a CrystalReportViewer. I use the code shown
below. That part works fine. However, I cannot figure out how to display
the report once I've added a subreport to it. I get a Crystal report error
when I try. Can someone please help?

thanks
tg

------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Rpt As New CM
Dim Ds As New DataSet
Dim Ds2 As New DataSet

OracleDataAdapter1.Fill(Ds)
'OracleDataAdapter2.Fill(Ds2)

Rpt.SetDataSource(Ds)
'Rpt2.SetDataSource(Ds2)

CrystalReportViewer1.ReportSource = Rpt
OracleConnection1.Close()
End Sub
Nov 21 '05 #1
10 3010
Whats the error on the sub report?
"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:Hi*****************@fe2.texas.rr.com...
I am displaying a report in a CrystalReportViewer. I use the code shown
below. That part works fine. However, I cannot figure out how to display
the report once I've added a subreport to it. I get a Crystal report error
when I try. Can someone please help?

thanks
tg

------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Rpt As New CM
Dim Ds As New DataSet
Dim Ds2 As New DataSet

OracleDataAdapter1.Fill(Ds)
'OracleDataAdapter2.Fill(Ds2)

Rpt.SetDataSource(Ds)
'Rpt2.SetDataSource(Ds2)

CrystalReportViewer1.ReportSource = Rpt
OracleConnection1.Close()
End Sub

Nov 21 '05 #2
Whats the error on the sub report?
"tg" <tg*******@pop-server.houston.rr.com> wrote in message
news:Hi*****************@fe2.texas.rr.com...
I am displaying a report in a CrystalReportViewer. I use the code shown
below. That part works fine. However, I cannot figure out how to display
the report once I've added a subreport to it. I get a Crystal report error
when I try. Can someone please help?

thanks
tg

------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Rpt As New CM
Dim Ds As New DataSet
Dim Ds2 As New DataSet

OracleDataAdapter1.Fill(Ds)
'OracleDataAdapter2.Fill(Ds2)

Rpt.SetDataSource(Ds)
'Rpt2.SetDataSource(Ds2)

CrystalReportViewer1.ReportSource = Rpt
OracleConnection1.Close()
End Sub

Nov 21 '05 #3
If you are adding a subreport does it point to the right database ? (e.g. try
verify database from the subreport). Also if it needs any parameters then
this needs to be added to the code.

I've used a Crystal Report with 7 subreports and all works okay.

What's the error message you get ?

"tg" wrote:
I am displaying a report in a CrystalReportViewer. I use the code shown
below. That part works fine. However, I cannot figure out how to display
the report once I've added a subreport to it. I get a Crystal report error
when I try. Can someone please help?

thanks
tg

------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Rpt As New CM
Dim Ds As New DataSet
Dim Ds2 As New DataSet

OracleDataAdapter1.Fill(Ds)
'OracleDataAdapter2.Fill(Ds2)

Rpt.SetDataSource(Ds)
'Rpt2.SetDataSource(Ds2)

CrystalReportViewer1.ReportSource = Rpt
OracleConnection1.Close()
End Sub

Nov 21 '05 #4
If you are adding a subreport does it point to the right database ? (e.g. try
verify database from the subreport). Also if it needs any parameters then
this needs to be added to the code.

I've used a Crystal Report with 7 subreports and all works okay.

What's the error message you get ?

"tg" wrote:
I am displaying a report in a CrystalReportViewer. I use the code shown
below. That part works fine. However, I cannot figure out how to display
the report once I've added a subreport to it. I get a Crystal report error
when I try. Can someone please help?

thanks
tg

------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Rpt As New CM
Dim Ds As New DataSet
Dim Ds2 As New DataSet

OracleDataAdapter1.Fill(Ds)
'OracleDataAdapter2.Fill(Ds2)

Rpt.SetDataSource(Ds)
'Rpt2.SetDataSource(Ds2)

CrystalReportViewer1.ReportSource = Rpt
OracleConnection1.Close()
End Sub

Nov 21 '05 #5
Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)

Nov 21 '05 #6
Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)

Nov 21 '05 #7
Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)

Nov 21 '05 #8
Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)

Nov 21 '05 #9
Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)

Nov 21 '05 #10
Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)

Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sean G. | last post by:
Howdy, I have a series of crystal reports, some have subreports, that I need to put together in one file on one click form the user. So put I imported the separate rpt files as subreports into...
1
by: Mithun Verma | last post by:
Hello All, I have a Windows application that uses Crystal Reports 9 (bundled Version) developed using VS.NET 2003 on a windows server 2003 m/c. The application has to be deployed on the client...
1
by: Michael O'Donnell | last post by:
Hi All Am having major problem with crystal reports...Have designed my report no problem, its when I try to run and display ther report that I am getting a "Login Failed" message. At first I...
0
by: KartoffelKiffer | last post by:
Hello, i have to do a little Crystal Report task, where i need help. I have a mainreport in which are some subreports. The size of the subreports can vary so the subreport which could be bigger...
4
by: Stig | last post by:
I'm having two tables with no relation and I want to list them both in one report. How can I do this. I have tried to use sub report, but cant get it to work? can someone please help me. If I just...
12
by: Tony Ciconte | last post by:
We are evaluating the prospect of integrating and/or using Crystal Reports with some of our current products. Some of these are still in Access 97 and are running well. Since we cannot include the...
3
by: LataChavan | last post by:
I have tried to look for a solution to the problem of sending parameters to stored procedures through crystal report. Following is the code: Now what happens is that if i do not apply the logon...
0
by: brett | last post by:
Hi, I need to build a pdf report by using Crystal report which including several subreport. The problem is that the primary page orientation is portrait and some subreports' orientation is...
2
by: Franck | last post by:
Ok i have a problem. What do i need to change to make crystal show subreport within subreports ? So i have 3 layer The MainReport Multiple SubReport Attached in the MainReport Multiple...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.