By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

Crystal Report Problem

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a

"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 discussion thread is closed

Replies have been disabled for this discussion.