<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Stop printing of Blank Pages</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_reporting?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 08 Sep 2014 20:44:17 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-09-08T20:44:17Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6711955?tstart=0#6711955</link>
      <description>&lt;!-- [DocumentBodyStart:40775be9-7dbf-4ec4-b90f-32d203f578b6] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;As I said in my first reply, you want to use your SQL query to prevent data from reaching your report that you don't want to print. That way you won't have to decide whether or not to print something in the definition of the report itself. In other words, the report can assume that any data it receives are data that must be printed.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Remove the grouping from your query and add a condition that will only return records where the transaction amount is at least $20. Something like this:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;SELECT tmptract.soc_sec, tmptract.p_bal, tmptract.bal, tmptract.semester, tmptract.sch_yr, tmptract.due_date, tmptract.asofdate, name.last_name, name.first_name, name.mi, address.st_addr, address.add_addr, address.add_add2, address.city, address.state, address.zip, address.add_rid,&amp;nbsp; address.salutation, sysvar.title, sysvar.schaddr1, sysvar.schaddr2, sysvar.schaddr3,'' as invoice_no, transact_prebill.ref_id, &lt;strong&gt;transact_prebill.amt_1&lt;/strong&gt;, transact_prebill.offered, transact_prebill.loan_fees, transact_prebill.date, '' as check_no, transact_prebill.transact_rid, tcodes.act_code, 2 as bill_type&lt;/p&gt;
&lt;p&gt;FROM tmptract, name, address, transact_prebill, tcodes, sysvar&lt;/p&gt;
&lt;p&gt;WHERE tmptract.soc_sec = name.soc_sec&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND address.soc_sec = name.soc_sec&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.soc_sec = tmptract.soc_sec&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND tcodes.tcodes = transact_prebill.tcodes&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND sysvar.school_id &amp;lt;&amp;gt; tmptract.soc_sec&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND address.labels2 = 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND tmptract.token = '#session.token#'&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND tcodes.inc_bill = 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.posted = 0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.exclude_from_bill = 0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.accept not in('n','v')&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.date &amp;lt;= tmptract.asofdate&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.semester = tmptract.semester&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.sch_yr = tmptract.sch_yr&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WHERE NOT tmptract.soc_sec IN&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; SELECT transact_prebill.soc_sec&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; FROM transact_prebill&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; GROUP BY transact_prebill.soc_sec&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; HAVING (SUM(transact_prebill.amt_1) &amp;lt; 20)&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;ORDER BY name.last_name, name.first_name, name.mi, tmptract.soc_sec,address.add_rid, bill_type desc, act_code, transact_prebill.date&lt;/p&gt;

&lt;/blockquote&gt;&lt;p&gt;Your SQL engine syntax may differ, but you can adjust it as necessary. &lt;strong&gt;You will &lt;em&gt;also&lt;/em&gt; need to add your other criteria to the sub-query, for "posted" and "exclude_from_bill" etc.&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:40775be9-7dbf-4ec4-b90f-32d203f578b6] --&gt;&lt;img src='/beacon?t=1415918181691' /&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:39:43 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6711955?tstart=0#6711955</guid>
      <dc:date>2014-09-08T20:39:43Z</dc:date>
      <clearspace:dateToText>2 months 5 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6711805?tstart=0#6711805</link>
      <description>&lt;!-- [DocumentBodyStart:bf4d90fa-5cc9-4817-bdcc-004cea66fb97] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;This is a student's bill. For this version of the bill we do not want to print bills where the balance due is less than $20.00.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:bf4d90fa-5cc9-4817-bdcc-004cea66fb97] --&gt;</description>
      <pubDate>Mon, 08 Sep 2014 20:18:43 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6711805?tstart=0#6711805</guid>
      <dc:date>2014-09-08T20:18:43Z</dc:date>
      <clearspace:dateToText>2 months 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6711818?tstart=0#6711818</link>
      <description>&lt;!-- [DocumentBodyStart:c9af0d2d-664f-45a0-ae73-a30eb42a5395] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Okay, so your report shows quite a lot of detail.&lt;/p&gt;&lt;p&gt;Why are you summing amt_1 in your SQL query? Surely you want to show the &lt;em&gt;actual &lt;/em&gt;amount of &lt;em&gt;each&lt;/em&gt; transaction next to the transaction and have a total at the &lt;em&gt;bottom&lt;/em&gt; of the transactions.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c9af0d2d-664f-45a0-ae73-a30eb42a5395] --&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:50:48 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6711818?tstart=0#6711818</guid>
      <dc:date>2014-09-08T19:50:48Z</dc:date>
      <clearspace:dateToText>2 months 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6711796?tstart=0#6711796</link>
      <description>&lt;!-- [DocumentBodyStart:fc995d63-dcb7-4035-81d8-0d210f630546] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The address.add_rid &amp;amp; transact.transact_rid are not shown on the report.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fc995d63-dcb7-4035-81d8-0d210f630546] --&gt;</description>
      <pubDate>Mon, 08 Sep 2014 19:43:27 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6711796?tstart=0#6711796</guid>
      <dc:date>2014-09-08T19:43:27Z</dc:date>
      <clearspace:dateToText>2 months 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6711148?tstart=0#6711148</link>
      <description>&lt;!-- [DocumentBodyStart:f8a7ecbf-e19f-440a-b06d-8dd081cdb903] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It depends on what fields you need to show in the report.&lt;/p&gt;&lt;p&gt;Do all the fields in your select clause get printed in the report?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f8a7ecbf-e19f-440a-b06d-8dd081cdb903] --&gt;</description>
      <pubDate>Mon, 08 Sep 2014 17:00:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6711148?tstart=0#6711148</guid>
      <dc:date>2014-09-08T17:00:09Z</dc:date>
      <clearspace:dateToText>2 months 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6701651?tstart=0#6701651</link>
      <description>&lt;!-- [DocumentBodyStart:45bbd21c-9d6c-45b1-b233-44118ad06bbe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I'm having trouble with the query. I think I have to GROUP BY all the fields I am selecting, because the data is not the same for each record it is not summing the amount field. Here is my query:&lt;/p&gt;&lt;p&gt;SELECT tmptract.soc_sec, tmptract.p_bal, tmptract.bal, tmptract.semester, tmptract.sch_yr, tmptract.due_date, tmptract.asofdate, name.last_name, name.first_name, name.mi, address.st_addr, address.add_addr, address.add_add2, address.city, address.state, address.zip, address.add_rid,&amp;nbsp; address.salutation, sysvar.title, sysvar.schaddr1, sysvar.schaddr2, sysvar.schaddr3, &lt;/p&gt;&lt;p&gt;'' as invoice_no, transact_prebill.ref_id, SUM(transact_prebill.amt_1), transact_prebill.offered, transact_prebill.loan_fees, transact_prebill.date, '' as check_no, transact_prebill.transact_rid, tcodes.act_code, 2 as bill_type&lt;/p&gt;&lt;p&gt;FROM tmptract, name, address, transact_prebill, tcodes, sysvar&lt;/p&gt;&lt;p&gt;WHERE tmptract.soc_sec = name.soc_sec&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND address.soc_sec = name.soc_sec&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.soc_sec = tmptract.soc_sec&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND tcodes.tcodes = transact_prebill.tcodes&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND sysvar.school_id &amp;lt;&amp;gt; tmptract.soc_sec&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND address.labels2 = 1 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND tmptract.token = '#session.token#' &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND tcodes.inc_bill = 1 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.posted = 0 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.exclude_from_bill = 0 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.accept not in('n','v')&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.date &amp;lt;= tmptract.asofdate&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.semester = tmptract.semester&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND transact_prebill.sch_yr = tmptract.sch_yr&lt;/p&gt;&lt;p&gt;GROUP BY tmptract.soc_sec, tmptract.p_bal, tmptract.bal, tmptract.semester, tmptract.sch_yr, tmptract.due_date, tmptract.asofdate, name.last_name, name.first_name, name.mi, address.st_addr, address.add_addr, address.add_add2, address.city, address.state, address.zip, address.add_rid,&amp;nbsp; address.salutation, sysvar.title, sysvar.schaddr1, sysvar.schaddr2, sysvar.schaddr3, &lt;/p&gt;&lt;p&gt;transact_prebill.ref_id, transact_prebill.offered, transact_prebill.loan_fees, transact_prebill.date, tcodes.act_code&lt;/p&gt;&lt;p&gt;ORDER BY name.last_name, name.first_name, name.mi, tmptract.soc_sec,address.add_rid, bill_type desc, act_code, transact_prebill.date&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The transact_prebill.ref_id, transact_prebill.transact_rid, transact_prebill.offered, transact_prebill.loan_fees, transact_prebill.date, tcodes.act_code can all contain different data. Is it possible to group on just the tmptract.soc_sec?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:45bbd21c-9d6c-45b1-b233-44118ad06bbe] --&gt;</description>
      <pubDate>Thu, 04 Sep 2014 19:05:07 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6701651?tstart=0#6701651</guid>
      <dc:date>2014-09-04T19:05:07Z</dc:date>
      <clearspace:dateToText>2 months 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6548412?tstart=0#6548412</link>
      <description>&lt;!-- [DocumentBodyStart:6eb2ccc8-7da0-451a-a55e-185a68006856] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;As I mentioned in your other thread about this scenario, if you prevent your report query from returning records that meet those conditions then you don't have to worry about handling them in the report itself.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6eb2ccc8-7da0-451a-a55e-185a68006856] --&gt;</description>
      <pubDate>Mon, 14 Jul 2014 13:11:49 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6548412?tstart=0#6548412</guid>
      <dc:date>2014-07-14T13:11:49Z</dc:date>
      <clearspace:dateToText>4 months 15 hours ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Stop printing of Blank Pages</title>
      <link>https://forums.adobe.com/message/6542594?tstart=0#6542594</link>
      <description>&lt;!-- [DocumentBodyStart:26d81c87-7ce2-4765-bff8-050bff0774a2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Each section on a Bill is checked for a specific condition in the 'Print When Condition'. This can cause blank pages to be created and printed, it there a way to not print blank pages?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I use CF10&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:26d81c87-7ce2-4765-bff8-050bff0774a2] --&gt;</description>
      <pubDate>Fri, 11 Jul 2014 16:02:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6542594?tstart=0#6542594</guid>
      <dc:date>2014-07-11T16:02:09Z</dc:date>
      <clearspace:dateToText>4 months 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

