473,386 Members | 1,798 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,386 software developers and data experts.

Crystal Report Problem

I desingned a report with several subreports to use in my application. Normally each subreport have to start on a new page. I did this by making a diffrent section for each subreport and selecting the option "New page before" for each section.

When a subreport is blank, both the subreport and the section are suppressed but the new page isn't, so there are empty pages in my report.

Because the reportheaders of the subreports are suppressed, I tried to set the pagebreak before the groupheader of the subreports but this resulted in no pagebreak at all.

I also tried to use a shared variable on each subreport that is true when the report is blank so I could use a condition on the "New page before" option, but in the mainreport I never get the value of this variable.

Does anybody have any idea about how I can start each subreport on a new page without having empty pages when a section is suppressed?

Thanks
--------------------------------
From: Nadia Daems

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>4sGgaa9st0Od5+779VEgeA==</Id>
Nov 21 '05 #1
1 2111

"Nadia Daems via .NET 247" <an*******@dotnet247.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP10.phx.gbl...
I desingned a report with several subreports to use in my application. Normally each subreport have to start on a new page. I did this by making a
diffrent section for each subreport and selecting the option "New page
before" for each section.
When a subreport is blank, both the subreport and the section are suppressed but the new page isn't, so there are empty pages in my report.
Because the reportheaders of the subreports are suppressed, I tried to set the pagebreak before the groupheader of the subreports but this resulted in
no pagebreak at all.
I also tried to use a shared variable on each subreport that is true when the report is blank so I could use a condition on the "New page before"
option, but in the mainreport I never get the value of this variable.
Does anybody have any idea about how I can start each subreport on a new page without having empty pages when a section is suppressed?
Thanks
--------------------------------
From: Nadia Daems

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>4sGgaa9st0Od5+779VEgeA==</Id>


Hi Nadia,

are you closing and opening the report between prints? If so, it might be
that the report doesn't get cleared out of memory. When the form closes, set
the report object to Nothing and call GC.Collect() to force garbage
collection.

Greeting

Thomas
Nov 21 '05 #2

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

Similar topics

13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
4
by: Grant Stanley | last post by:
I'm developing an application in VS.Net 2003 using C#, which uses Crystal Reports. When creating each report, crystal asks where the database to use is, so I specify our SQL server using the ADO...
2
by: GC | last post by:
HI, I'am using Crystal Report with visual Studio .NEt 2003 When i make a report using a store procedure, I can not see all the fields of the store proc and i'm suppose to see those fields. I'm...
6
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel...
3
by: Deasun | last post by:
I need some help please! Crystal is driving me nuts. Heres my code so far, see below. Problem: On the .export() line it comes back with error #5 Login failed! I know the login info is good so...
3
by: Milan Todorovic | last post by:
Hello, I need help. I have experience in ASP.NET programming, but this is my first dealing with Crystal Reports. I'm trying to make the most basic report purely for testing purposes: connect to...
19
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
17
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're...
3
by: FeveZ | last post by:
I've been stuck on a problem now for ages and i'm about ready to pack my project in because of it lol. OK here is my scenario. I have an existing Crystal Report, which I have added to my...
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.