Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Discrepancy between the reports Post Reply Post New Topic
Author Message
abhi81
Newbie
Newbie


Joined: 11 Jan 2007
Location: Canada
Online Status: Offline
Posts: 38
Quote abhi81 Replybullet Topic: Discrepancy between the reports
    Posted: 17 Jan 2007 at 7:03am
Hello,
My report has a page header b section which i am using to display the headers for the detail section if it is page 2 or more. I also have 2 subreports on which i want to suppress it that comes at the end of the report.
 
I am using the formula described below for suppressing the section. This works as desired in the CR viewer without any code but when i fire the report using an ASP page passing the order nums required the suppression formula fails and it prints it on every page except the fist page.
 
Please advise.
 
if (not isnull({ReportView1.HasPers})) and (isnull({ReportView1.internalcomments}) or {ReportView1.internalcomments}="") then
 if pagenumber=1 or pagenumber=totalpagecount then
  true
 else
  defaultattribute
else if (not isnull({ReportView1.HasPers})) and (not isnull({ReportView1.internalcomments}) or {ReportView1.internalcomments}<>"" )then
   if pagenumber=1 or pagenumber=totalpagecount or pagenumber=totalpagecount-1 then
      true
    else
       defaultattribute
else if isnull({ReportView1.HasPers})and (isnull({ReportView1.internalcomments}) or {ReportView1.internalcomments}<>"" )then
 if (pagenumber=1) then// or (pagenumber <>1 and pagenumber <= totalpagecount) then
  true
 else
  defaultattribute
else if isnull({ReportView1.HasPers})and (not isnull({ReportView1.internalcomments}) or {ReportView1.internalcomments}<>"" )then
    if pagenumber=1 or pagenumber=totalpagecount or pagenumber=totalpagecount-1 then
        true
   else
        defaultattribute
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.