Suppress printing of blank records

This should be simple, but I have tried everything I can think of, and trolled through the archives, without finding an answer.  Please don't chastise me for asking a question which has already been answered, too simple, in the wrong section, or any of the other sins you regularly accuse us of...
I am printing a series of form letters which are selected on the basis of a couple of criteria.  I want to exclude records with blank fields.  (My database supports null values, but these field entries are blanks, not nulls.  The fields are string (alphanumeric) values. My selection criteria (for the 1 month letter) are below.  The first two criteria work fine; it is in the third line that I am trying to exclude the blank records.  I have tried: {LetterEnt.Gr_LastName}<>"",  {LetterEnt.Gr_LastName}<>" ", and then I got clever and tried the entry below.  None of these work.
{LetterEnt.Letter1} = "X" and
{LetterEnt.Site} = "Q" and
Length({LetterEnt.Gr_LastName})>0

+Message: AFAIK, if there are no records, there are no detail sections, so
your report must show text from other sections.+
(Is AFAIK some sort of "geek code" (in which case you have gone completely over my head), or are you addressing somebody by that name?  (My name is David).)
If there are no records, there are indeed detail sections - with blank address fields.  See my previous more detailed exposition of the exact nature of the problem.
+It is also not clear what "forces" a printout.  Are you using Crystal
Designer (my assumption since you are posing in the Crystal Report Design
forum) or something else (Crystal Enterprise)?  Crystal Designer doesn't
force printouts - a user must initiate the printout.+
Am I using Crystal Designer?  I don't know.  The program is called Crystal Reports XI in my computer.  Are you suggesting that I am in fact asking my question in the wrong forum? (I would have presumed that something called "Crystal Reports Design" deals with design issues in Crystal Reports, but if I am in error, I do apologise.  Perhaps you could direct me to the more appropriate resource.)
What "forces" a printout? You are correct insofar as the operator has to push the Print button (at least as presently functioning.  At one stage I had the letters printing out behind the scenes using an Active-X control.  This ran for 2 weeks, then fell apart and I eventually gave up trying to make it work; but that is another story.)  How does this happen?  Crystal is adding completely blank pages as the first page on some of the reports, so it is not always immediately apparent to the operator that there is a letter sitting there with a blank address.  (And this, too, is a separate issue.  I have gone through all the instructions in the knowledge base as to how to get rid of the leading blank sheet.  None of the instructions have worked, and I eventually gave up trying.  Thinking about it, I have had an awful lot of frustration with this program.  Perhaps I am unreasonable, but if I can't get something to work after 3 or 4 hours' trying, I give it up as a bad job and live with the fault.)
+You can always suppress those other sections with a condition such as
IsNull({some field that is never Null).+
It is not clear to me what this means.  All the sections other than the detail section are blank - always.
+There are 3rd-party Crystal Reports tools that allow you to skip
processing (printing/exporting/emailing) if the report comes up with zero
records.+
Aha!  Am I interpreting this correctly, as saying that I cannot do what I want to do (suppress printing of letters with blank addresses) in Crystal Reports, and that to do this I need to get a third party add-on?

Similar Messages

  • Blank Page prints even though "Suppress Printing If No Records" option is t

    Blank Page prints even though "Suppress Printing If No Records" option is thicked.
    My environment:
    Crystal Report Developer Full version 11.5.11.1470
    Windows Server 2003 SP2 32-bit.
    We have a third party vendor application written in Java -let's call it "print deamon", but my company doesn't have access to the source code.
    The print deamon essentially listens to the core application which is located remotely, receive some print instructions such as label name, printer name, crystal reports version (8.5 or 11) and a few parameters that are passed to the crystal report template.
    When the version is Crystal Reports 11 and the template is open and query is executed (using Oracle JDBC) and if the template's query does not retrieve any rows, a blank page still prints even though the option to suppress printing is thicked.
    With Crystal Reports 8.5 version, we have no issues.
    recycling the blank page is not an option in our high volume print environment, these paper and labels are wasted big time, third party vendor says this is an issue with crystal reports XI api.
    These are some of the libraries the Print Deamon uses:
    09/25/2009  10:29 AM         2,055,844 cecore.jar
    09/25/2009  10:29 AM           211,919 celib.jar
    09/25/2009  10:29 AM           830,301 corbaidl.jar
    09/25/2009  10:29 AM           371,142 CRDBJavaServerCommon.jar
    09/25/2009  10:29 AM           121,413 CRDBXMLServer.jar
    09/25/2009  10:29 AM           670,312 CrystalCharting.jar
    09/25/2009  10:29 AM             2,162 CrystalCommon.jar
    09/25/2009  10:29 AM            94,290 CrystalContentModels.jar
    09/25/2009  10:28 AM           110,657 CrystalDatabaseConnectors.jar
    09/25/2009  10:29 AM           686,963 CrystalExporters.jar
    09/25/2009  10:29 AM            67,807 CrystalExportingBase.jar
    09/25/2009  10:29 AM           581,270 CrystalFormulas.jar
    09/25/2009  10:29 AM           330,909 CrystalQueryEngine.jar
    09/25/2009  10:29 AM         2,271,217 CrystalReportEngine.jar
    09/25/2009  10:29 AM           453,829 CrystalReportingCommon.jar
    09/25/2009  10:29 AM         1,985,441 ebus405.jar
    09/25/2009  10:29 AM    <DIR>          external
    09/25/2009  10:29 AM           227,996 jrcadapter.jar
    09/25/2009  10:29 AM             9,988 jrcerom.jar
    09/25/2009  10:29 AM            94,180 keycodeDecoder.jar
    09/25/2009  10:29 AM           448,627 MetafileRenderer.jar
    09/25/2009  10:29 AM           380,520 rasapp.jar
    09/25/2009  10:29 AM           843,544 rascore.jar
    09/25/2009  10:29 AM           283,131 ReportPrinter.jar
    09/25/2009  10:29 AM           793,445 ReportViewer.jar
    09/25/2009  10:29 AM            95,382 rpoifs.jar
    09/25/2009  10:29 AM            40,545 Serialization.jar
    09/25/2009  10:29 AM             3,777 URIUtil.jar
    Let me know if there's anything we can do before engaging our third party vendor to produce their source code.
    Thank you - Kleber

    It's not relavent now is it? Do what ever works in CR XI.
    Also you may want to upgrade to CR XI R2. Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    Once updated you can then go to the Keycode site and get a XI R2 keycode to enable oll of the features.
    Thank you
    Don

  • Suppressing printing of blank page

    Dear all,
    My report consists of 3 distinct sub reports. The first two sub reports should be printed as portrait on A-4 sheet while the third one should be printed as landscape A-4 . I have put the first two sub reports layout in the main section with orientation as portrait while the third one is placed in trailer section with orientation as landscape. The printing of subreports 2 and 3 is conditional. There may be case when first two sub reports get printed while we do not have third report as there is no data in the database for the same. In this case , I am still getting a blank page corresponding to the third sub report in the final report. How do I suppress this?
    Regards,
    Ranjit

    Hey dareys,
    Per PCWIZARD's suggestion in another thread,
    It may be the printer's power supply is dropping the power to the printer when it is off.  You can reset the power supply by unplugging it from both the wall and the printer for 5 minutes.
    Help the community by marking this post as a solution if it solved your issue!.
    If my post helped you in any way, please click the blue KUDOS star under my name! It would mean a great deal.

  • How to print blank records after the detail records in a masterdetail report

    Hi,
    Developing a report for time and attendance record. In this report I am printing all the employees in a department, limiting the no. of records per page to 10.
    I need to insert blank lines at the end of all of the detail records in a page that has less than 10 employee records so that the no. of records displayed on a page can always be 10(these blank lines will facilitate the management to note down the temporary employees who worked for the department but are not part of the department).
    I am using a tabular form with group above layout.
    The report layout is as follows:
    Department : FINANCE & ADMINISTRATION
    Employee Name | Employee Number |
    1 Jim | 1234 | _________________
    2 John | 5678 |__________________
    3 blank
    4 blank
    5
    6
    7
    8
    9
    10 balnk
    Supervisor's Sign:______________________
    Note: the no. of blank lines should be inserted dynamically based on the no. of emp. records being printed on the page.
    Any help is greatly appreciated.
    Thanks in advance.
    Kavita.

    Your solution works when I am not limiting the no. of records per page for a department to 10 records and when I want to print blanks lines for the depts that has fewer than 10 employees in it.
    Exactly in my report I have several dept's that has more than 10 emp's. In such cases I'll be printing first 10 in one page and the rest in the next page. Now I want to dynamically print the blank lines in the second page depending on the no. of emp's on that page. I tried to acheive this by using a CS column that reset's at page level but, REPORTS is not letting me use CS column that reset's at page level in a format trigger. I also tried to copy the CS value into a parameter and or to a Place holder column and did not help.
    Any more work around ideas to acheive this?? please help.
    Thanks alot
    Kavita.
    Hi
    Create a column called Serial_No in ur emloyee query like this
    select 1 , empno ,ename from emp;
    Create a summary column on the serial column with the function SUM
    and resetting it to Page
    Display the column in the report by using the text color as white
    so it doesn't display in the report
    I think this should help u i believe
    Sri
    Hi,
    Developing a report for time and attendance record. In this report I am printing all the employees in a department, limiting the no. of records per page to 10.
    I need to insert blank lines at the end of all of the detail records in a page that has less than 10 employee records so that the no. of records displayed on a page can always be 10(these blank lines will facilitate the management to note down the temporary employees who worked for the department but are not part of the department).
    I am using a tabular form with group above layout.
    The report layout is as follows:
    Department : FINANCE & ADMINISTRATION
    Employee Name | Employee Number |
    1 Jim | 1234 | _________________
    2 John | 5678 |__________________
    3 blank
    4 blank
    5
    6
    7
    8
    9
    10 balnk
    Supervisor's Sign:______________________
    Note: the no. of blank lines should be inserted dynamically based on the no. of emp. records being printed on the page.
    Any help is greatly appreciated.
    Thanks in advance.
    Kavita.

  • How to suppress Blank records

    Hi All,
    I am having a tab delimeted .txt file which contains blank records which need to be supressed otherwise i get empty XML tags in the output as shown below.
    - <Header>
      <PERNR />
      <BEGDA />
      <ENDDA />
      <SCHKZ />
      </Header>
    Actually i am getting a tab in PERNR field. I tried the createif function but its not working .Can anyone help me out in this

    Hi,
    The following way is one way if you are using sender file with content conversion.
    NameA.fieldContentFormatting
    &#9679;     Specify trim to remove all the leading and subsequent blanks for a value found. This is the default.
    &#9679;     Specify nothing to ensure that the value remains unaltered.
    The second way is..
    if target structure is 0..unbound then
    source -- exists-- createIf -- target node
    or write UDF to handle input string is null then return
    ResultList.SUPPRESS in you UDF.before that the target parent node/node should be having occurrences 0..unbound/0..1
    please clarify
    Regards
    Chilla..

  • How to suppress printing blank pages?

    Hi all,
    I work with reports 6i and I need a tip.
    I have to build a report with two sections (main and trailer section).The main section is always filled with data, but the trailer section does not always receive data.
    When I print the report without data in the trailer section there is a blank last page. How can I suppress printing the trailer section when there is no data in it.
    Thank you for your help.
    Thomas

    Hello,
    You can test to use the parameter : BLANKPAGES
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/bld_blnkpgs.htm
    Regards

  • How to get blank records at the start of report output for label sheet?

    Hello -
    What is the best way to get an arbitrary # of blank records at the start of report output?
    I am writing a report that will be printed out on label sheets -- some of which might already be used. For example, there might be 3 labels per page but the first 2 have been used the last time the report was run.. so the report needs to display 2 blank records first so that the first record that gets printed on a label is in the 3rd position on the page. (the user would indicate - through a parameter - what the starting postion would be)

    Hi Scott
    Create a user parameter that reads in the number of blanks you need to 'print' before starting the actual printing.
    In the Format trigger of the outermost frame of your report write code using SRW.SET_BEFORE_PRINTING_CODE.
    Loop this method based on the user parameter and call this method with skip-line-command of your printer as its argument.
    Regards
    Sripathy

  • To Filter Blank Records In Bex

    Hello,
    We are developing a DashBoard On Bi Aging report. Data is matching with BI aging report, so no data issue.
    In Bi Query we have used Suppress Zero Records but In Dashboard all material are passed i.e Suppress Zero records is not working while data fetch to DashBoard
    For Eg: in Bi report with "Suppress Zero" records we have 500 records
    and Bi report without "Suppress Zero" records we have 3000 records.
    So It has decreased the performance of Dashboard as we need handle large numbers of records in Dashboard.
    how can we filter blank record in Bi report?

    Hi,
    Either you want to hide single kfg which contains zero records or for all kfg's?
    Have you checked data in RSRT after Suppress Zero Records ?
    and one more thing suppress result rows applied in Bex won't work in dashboard clearly mentioned in below doc:
    http://www.mastering-sap-and-businessobjects.com/sap-businessobjects-bi-4-service-pack-05-support-for-bex-query-elements…
    Try with conditions in Bex query itself and check either expectyed data is coming or not as suggested by Yasemin.
    if not in Dashboard itself try as below :
    Re: Ignore blank rows inbetween in Xcelsius
    Thanks.

  • Suppress Printing

    How could I suppress exporting report if no records are loaded using sdk? If setting options in report to suppress i get blank page in pdf when exporting, is there a way to evaluate if fields have data or not? Is there a way to retrieve sql statement sent to database from report evaluate the statement and see if there are rows returned. Help!!!

    You can use RAS InProc to find out how many records are in your result set. This works if you are using Crystal Reports XI R1 SP2 (or something newer).
    This does not work with: Crystal Reports 9, 10, or any of the bundle editions of Crystal Reports (9.1, 10.2, 10.5).
    Here is a sample.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace ras115_get_row_count
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    ReportDocument boReportDocument = new ReportDocument();
    ISCDReportClientDocument boReportClientDocument = null;
    RowsetController boRowsetController;
    RowsetCursor boRowsetCursor;
    int rows;
    boReportDocument.Load(Application.StartupPath + "\\..\\..\\CrystalReport1.rpt");
    boReportDocument.Refresh();
    boReportDocument.SetParameterValue(0, 12);
    boReportClientDocument = boReportDocument.ReportClientDocument;
    boRowsetController = boReportClientDocument.RowsetController;
    boRowsetCursor = boRowsetController.CreateCursor(new GroupPath(), new RowsetMetaData(), 0);
    rows = boRowsetCursor.RecordCount;
    MessageBox.Show(rows.ToString());
    boReportDocument.Close();

  • Suppress printing the last two pages

    I have created a form that has the last two pages of the form screen only visible. Saved the form and printed it but the last two pages print blank. Is there any way to suppress printing the last two blank pages. If I was the only person using the form I just wouldn't print the last two pages but this is going into a production environment where seeing the last two pages is important but printing the last two pages isn't.
    Thanks.

    Take a look at the script produced by the "Print Button".
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    The doc for print is available at http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/001735.html
    Steve

  • Suppress embedded field blank lines in Crystal Reports XI is not working

    Hi,
    We have a text box in a Crytal Reports XI report which has address information in it as follows:
    These are individual fields from the database. We check the  "suppress embedded field blank lines" option for the text box and preview it in the designer and the suppression works as expected in that when the unit field is blank the whole address line isn't suppressed. However when we run this report using the Report Viewer control in a VB.NET 2005 application the whole address line is suppressed when the unit field is blank.
    This appears to be a bug in the suppression logic when the Report Viewer is used to view a report. While yes we can embed a formula into the address line this adds extra maintenance and confusion which is not necessary as it works as expected in the report designer.
    I have seen others which are having a similiar issue and the only suggestions are to create your own suppression using formulas, etc. which is only a bandaid and is not the best solution as the suppression works as stated in the designer but not in the viewer embedded in an application. Please indicate if this is a known bug and if this issue has been addressed and fixed in a new merge module.
    We are running Crystal XI 11.5.0.313 for the report designer and have deployed the needed dlls to run the reports with our application using the CrystalReports11_5_NET_2005.msm merge module.
    Thanks in advance for any assistance in resolving this issue!

    Hello,
    Moved to .NET SDK forum.
    Upgrade to XI R2 SP 6, you are using the original release:
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    And the distribution files are for Visual Studio version of Cr, not R2 build.
    https://smpdl.sap-ag.de/~sapidp/012002523100013451312010E/crxir2_fp64_server_ins.zip
    Or
    https://smpdl.sap-ag.de/~sapidp/012002523100013451332010E/crxir2_fp64_net_mm.zip
    Don

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • BI Publisher - if page number is not divisible by 2 then print a blank page

    Hi,
    I have an BI Publisher rtf word template. I want to be able to print a blank page if the page number is not divisible by 2. Does any body know how this can be done? Your input is greatly appreciated and thank you so much in advance.
    MT
    Edited by: user11177994 on Mar 29, 2010 8:19 AM

    Hi Dominic,
    Thank you for the link. The problem that I have is when the job specification last page prints on the front of the page, and the next job specification prints on the back of that page. There is no way I can control what page it is going to print on. This is depending on how much description the user puts in. Any suggestion is greatly appreciated.
    I do have another issue too, and you maybe able to help me with this. Below is a list of form fields on my template. When the job specification is printed on more than one page, I could not get the fk_job_title to print on the continuous pages. Is there a way I can code this fk_job_title to print on all of it's continuos page? I have tried many different ways but could not get it to print. I also posted this in the forum, but didn't get any respond.
    ** form fields **
    CLASS TITLE: F fk_job_title PAY GRADE: p_grade
    JOB CODE: job_code SALARY RANGE: s1 - s2
    LOCATION OF WORK: work_location
    GENERAL DESCRIPTION: general_descr
    ESSENTIAL WORK TASKS: work_task
    KNOWLEDGE, SKILLS, AND ABILITIES: knowledge_skill
    EDUCATIONAL AND EXPERIENCE: education_exp
    SUBSTITUTIONS: sub
    CERTIFICATIONS/LICENSES: certification_license
    OTHER JOB ASPECTS: job_aspect E
    PB
    Thank you so much,
    MT

  • My HP LaserJet 1018 has started printing only blank pages.

    My HP LaserJet 1018 has started printing only blank pages. 
    Help?
    Using Windows XP (Home Version)
    Product # CB419A

    Could be a number of issues.  First could be a bad or not connecting transfer rollers which moves the toner from the drum to the paper.  Only way to test is a half test by putting paper on the manual tray and printing a self test.  When the back edge enters the printer, open the toner door to stop printing.  Remove the toner and flip back the cover over the toner drum to see if there is any image on the drum.  If image is present then it could be transfer roller issues.  Use the service manual and look under engine diagnostics in the index and it will direct you to a page that shows how to perform an engine test.  Do the test to see if you get a sheet of paper with lines on it.  If you get lines, then the issue could be the formatter.  If no lines and the shutter has been removed then I would think you are having high voltage issues.  You may have to bring the printer in for service.

  • Import: Ignore blank records

    Hi Team,
    While automatic import, I am getting few blank records from the source system (All the fields are blank)
    These records are getting imported in MDM.
    Please suggest on how to ignore importing them.
    Thanks,
    Priti

    Hi,
    Incase you want to skip certain records from being imported you can in the Import Manager, Matching records right click on every individual record in the bottom source records pane and select skip record while allowing update all mapped fields for the other record.
    In order to skip records having null values during the auto import you can set the null value handling to ignore.
    Its important to note that multiple null entries can be there in a unique column in the MDM table as MDM treats it as a incomplete record.
    If the file is being transfered via PI to MDM distribution folder you can have this check put in PI as well to remove these entries in the xml file that is being generated.
    Regards,
    Aditya.

Maybe you are looking for