Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Crystal Reports sub-report is blank

Posted on 2014-09-30
5
Medium Priority
?
237 Views
Last Modified: 2015-01-14
I have a Crystal Report that passes parameters to a SQL Server dataset and extracts the data. This works as intended but I need to add two sub-reports (1) a set of notes to be added to every report & (2) company details to be added to every report.

For the notes I have a data set in Visual Studio 2013 that extracts and previews the data. I added this to a separate Crystal report which is then added as a sub-report to the main report.

The dataset contains the notes (data) but they never appear in the sub-report so what do I need to do to get the data into the sub-report?

Thanks
0
Comment
Question by:Paul-Brooks
[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
5 Comments
 
LVL 35

Expert Comment

by:James0628
ID: 40354212
Does the separate report with the notes show the notes when you run it by itself?

 I would assume that you have some parameters in the notes report, to control which notes are included in the report.  Do you have those parameters linked to something (usually a field) in the main report?  if so, are you sure that the links are correct?


 FYI, there is a CR topic here, under Database > DB Reporting Tools.  It's my understanding that you can't change the topics for a question, so I've submitted a request to the mods that they add the CR topic to this question (so that more CR experts are likely to see it).

 James
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 40354563
DO you pass the dataset to the subreport in your code?

mlmcc
0
 

Accepted Solution

by:
Paul-Brooks earned 0 total points
ID: 40371050
In the end I used parameters to pass the data because I realised I had one dataset containing data for the specific invoice and I needed to add two other sets of non-specific data albeit that they would be in sub-reports. This appeared to mean three datasets for each invoice.

It is a heap of parameters, around 20, but it is working.

Thanks for your interest.
0
 

Author Closing Comment

by:Paul-Brooks
ID: 40548541
I was unable make any of the other suggestions work  and my own comment describes the solution I used.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

705 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