How to suppress a blank section in crystal report

how to suppress a blank section in crystal report. although i have set the property
"suppress blank section "=true ,still i m unable to suppress my section
please help me to cope up this issue.
thanks in advance

One recommendation I make, when troubleshooting suppression issues, is to put a visible border of the section, area or object to be suppressed, and borders for all objects contained in the section or area.  This will help isolate what's suppressed, and whether the section is truly blank or has content that's blank.
Furthermore, I recommend indicating which SDK and what version you're using when posting.
Sincerely,
Ted Ueda

Similar Messages

  • How to add a field object to group header section in crystal report document?

    Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName,                         CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,                         CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();                     fieldObject.DataSourceName = dbField.Name;                     fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai

    Hi Jaikumar
    As per the SCN Rules of engagement, one question per thread please.
    Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, consult the Developer Help Files:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Re. your second question, please create a new discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to fix the height of the details section in crystal reports.

    hi all
    How to fix the height of the details section in crystal reports.

    Thanks for your reply
    i didnt get the clear idea about your answer can you explain it once with example
    why iam asking is when i add a new details section according to you answer maintaining same height of the two details sections and i see the preview the iam getting gap between each record. this is so because one record from details section1 and another empty space from details section2
    like
    Details section A-contains records
    Details section B- no records
    Details section A-contains records
    Details section B-no records
    Then how will i solve my issue
    Thanks in advance

  • How to increase the width of the Crystal Report

    Hello All
    How to increase the width of the Crystal report template in the CR designer in .NET 2005 editor ?
    I need to design a report which has to accomodate more number of columns.So achieve that i need to redesign the report having more width.
    CrystalReports version 10.2.3600.0
    Thanks in advance
    Srivatsa

    HI Srivatsa,
    You can make a wider report by creating virtual pages. Virtual pages are the extra pages to the right of the main page that get created to accommodate cross-tabs that are wider than a single page. By inserting a cross-tab in a report then suppressing it, you can create a report that is multiple pages wide.
    Insert and Suppress a Cross-Tab
    1. On the 'Insert' menu, click 'Cross-Tab'.
    2. In the Cross-Tab Expert, click any field and move it into the 'Columns' box, and click any field and move it into the 'Summarized Fields' box. Do not move any fields into the 'Rows' box.
    3. Click the 'Customize Style' tab and select the following check boxes:
    " Suppress Empty Rows
    " Suppress Empty Columns
    " Suppress Row Grand Totals
    " Suppress Column Grand Totals
    4. Click the 'OK' button and then insert the cross-tab into the Report Header section.
    5. On the 'Report' menu, click 'Format Sections'. Click 'Report Header' and select the 'Underlay Following Sections' check box.
    When you run the report you will not see the cross-tab, but you will be able to scroll to the right and see multiple virtual pages.
    ====================
    NOTES:
    " As there are no rows to the Cross-Tab, it does not carry on to Page 2 and the virtual pages do not appear past the first page.
    " To increase or decrease the number of virtual pages do one of the following:
    - Limit the number of records for the field in the 'Column' box of the 'Cross-Tab Expert' using the 'Select Expert'.
    - Change the width of the 'Column' field in the Cross-Tab by moving the edges of the field.
    ====================
    How to Insert Fields on Virtual Pages
    You cannot drag-and-drop a field onto a virtual page, you can only do so on the main page. To get a field to appear on a virtual page:
    1. Insert the field on the main page.
    2. Click the 'Preview' tab.
    3. Drag the right edge of the field to the right, onto the virtual page.
    4. Drag the left edge of the field to the right, onto the virtual page.
    Hope this helps!!
    Regards,
    Shweta

  • How to add/create additional page in Crystal Report Layout SAP B1

    Hi,
    I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
    I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
    Pls help me to find the solution.
    Br,
    Thomas Marsetyo

    Hi,
    In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
    If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
         Check this Link
    http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
    Regards,
    Manish

  • How to use drill down option in Crystal Report

    Dear all,
            I want to know how to use drill down option in Crystal report 2008.  In below i have explained my screnario
    For example
       My scenario is.  In crystal report I have Purchase order like PO101,PO102.  Each purchase order have 5 line items.  If i drill down each purchase order it should display line item in crystal report. 
    Regards,
    Baskaran.

    hi,
    Create a Group on 'Purchase order'.
    Group Expert -> Select the Purchase Order and Click the arrow button such that it appears right side. Click ok.
    GH1 is inserted.
    Your detail section should include 'Line items' fields.
    Right Click 'Detail' section on left hand side,  Click 'Hide (Drill down Ok)'.
    Now you will see only 'Purchase order's in Group Headers.
    Now when you click on a particular order, you will see respective line items.
    Regards,
    Vamsee

  • How to use a connection ODBC in  crystal reports viewer?

    Hi Guys!
    I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in  crystal reports viewer?

    Hi Guys!
    I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in  crystal reports viewer?

  • How to build Table of Content in Crystal Reports

    Hi,
    Initially, I am looking for an article about how to build Table of Content in Crystal Reports in table-based approach----including how to write to DB table from report:
    http://support.businessobjects.com/library/kbase/articles/c2011950.asp
    However, the link above is invalid. I also searched through SDN articles, but no luck.
    Can someone please forward me the link if you happend to know?---does not have to link to this specific article, any working solution is just fine.
    I am aware of another approach which put the TOC to the end of the report(http://www.ml-consult.co.uk/cryst-05.htm), which probably does not satisfy the requirement.
    If you have other solutions, your share is greatly appreciated.
    Thanks a ton!

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

  • How to map ECC Infoset Query to Crystal Report

    Hi All,
    I am using 25 standard SAP crystal reports which have been mapped on the top of ECC system. Some of reports are working well but some are not working due to unable to find query. The name of the report is Controlling Dashboard report and it has CO_OM_CA_20_Q1 query which I was unable to map on ECC using Crystal Report. I do not knw how to map ECC table infoset to Crystal report.
    Can anybody assist me to get solution?

    Hi Efstratios,
    Hope you are well!
    I am experiencing the same issue:
    unable to get this infoset query CO_OM_CA_20_Q1 in Crystal Report which is made on the top of ECC
    I followed the BI quick guide as well, I am on EPH 4 and I am able to see both the Query Infoset CO_OM_CA_20_Q1 and its related Infoset /SREP/CO_OM_CCA_20.
    But unfortunately, it wouldn't let me update the connection approprietaly.
    Is this something you can assist me with?
    Thanks in advance
    Yann

  • How to view the History of a Crystal Reports iView in EP6?

    How to view the History of a Crystal Reports iView in EP6?
    Our Crystal reports are viewed via Crystal Enterprise and are both BW and non-BW Crystal reports.
    I have looked at the three supplied iViews from Business Objects (alert, folder and thumbnail) but I have only been able to access the last instance or run on demand a CR.
    Our users would prefer to see a listing of the past runs of the report and choose which report to view.  What parameters need set in the EP6 iView to see the history of a report?

    Hi Heather,
    it is correct that there is no sample iView that shows the History of Crystal Reports that are stored in Crystal Enterprise but there a sample codes on our web site and there are sample codes as part of the SDK documentation that show how to call the history and you should be able to take the code and create your own Java or ASP iView based on that.
    the link to our developer library :
    http://www.businessobjects.com/products/dev_zone/default.asp?intcmp=products12
    hope this helps
    Ingo

  • Form how to suppress a blank line

    hi
    i am printing a lable code
    its a encrypted format
    i need a code to suppress the blank line3 based on conditon if it is blank.
    so id line 3 is blank it should not diplay the blank line. that is my requirment.
    pls suggest
    regards
    Arora

    Try like this it will work
    IF TO_ADRS-LINE0 NE ' '
    STX><ESC>F0<DEL>&TO_ADRS-LINE0&<ETX>
    ENDIF.
    IF TO_ADRS-LINE1 NE ' '
    STX><ESC>F1<DEL>&TO_ADRS-LINE1&<ETX>
    ENDIF.
    IF TO_ADRS-LINE2 NE ' '
    STX><ESC>F2<DEL>&TO_ADRS-LINE2&<ETX>
    ENDIF.
    IF TO_ADRS-LINE3 NE ' '
    STX><ESC>F3<DEL>&TO_ADRS-LINE3&<ETX>
    ENDIF.
    IF TO_ADRS-LINE4 NE ' '
    STX><ESC>F4<DEL>&TO_ADRS-LINE4&<ETX>
    ENDIF.
    IF TO_ADRS-LINE6 NE ' '
    STX><ESC>F6<DEL>&TO_ADRS-LINE5&<ETX>
    ENDIF.
    Regards,
    SaiRam

  • Remove Blank Space from Crystal report

    Hello,
    i am new in crystal report work.
    recently, i have created one crystal report which display item and remaining other detail like tax detail,item grand total, Some extra remark,etc.
    But my scenario is that if i take three or more item then it take two page that's ok. on that case i have no problem,
    but if i  take only single item it will take two pages.
    how can i remove unnecessary area.
    i attached below image for better understanding.
    i also provide crystal report if required.
    if there is image not visible then i also attach below.
    Plz... Help me ASAP.
    Thanks,

    It seems like your tax detail section is another sub report please compact the subreport if attached.
    Right click on the object and select Format Object > checkbox "Supress Embedded Field Blank Lines"
    Right Click on the section and click "Fit Section"

  • How to show arabic data in to crystal reports ?How to aligh crystal report right to left

    <p>we are trying to make a crystal report for both english and arabic..All the arabic data is stored in data base tables.And for arabic screens we need tables and datas come right to left.. </p><p>1)How can we get the arabic data and right to left alignment in crystal reports? </p><p>2)Is thee any direct method to change the report alignments? </p><p>can u please send some sample codes. </p><p>we are using java version= 1.5 </p><p>database using =Oracle 9i </p><p>char set we are using for arabic= CP1256</p><p> Tomcat using=4.1 </p><p>we are using Crystal Reports11 </p><p>We are not having seperate rpt files for reports. we are making each Sections and adding this sections to FieldObjet to make the report dynamically. A sample Employee report in english is attached..Can u instruct how can i get this report in arabic assuming all datas are stored in database. </p><p><br />import java.awt.BorderLayout;<br />import javax.swing.JFrame;<br />import com.crystaldecisions.ReportViewer.ReportViewerBean;<br />import com.crystaldecisions.sdk.framework.CrystalEnterprise;<br />import com.crystaldecisions.sdk.framework.IEnterpriseSession;<br />import com.crystaldecisions.sdk.occa.managedreports.IReportAppFactory;<br />import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;<br />import com.crystaldecisions.sdk.occa.report.data.;<br />import com.crystaldecisions.sdk.occa.report.definition.;<br />import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;<br />import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;<br />import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;<br />public class ReportSample {<br /> ReportClientDocument rptDoc=null;<br /> int fldTop=0;<br /> int fldWidth=1440;<br /> int fldHeight=400;<br /> int pageWidth=11500;<br /> ReportSample(){<br />  try{<br />   IEnterpriseSession oEnterpriseSession= CrystalEnterprise.getSessionMgr().logon("Administrator", "","zzzza","secEnterprise");<br />   IReportAppFactory oReportAppFactory = (IReportAppFactory)oEnterpriseSession.getService("", "RASReportService");<br />   rptDoc = oReportAppFactory.newDocument(java.util.Locale.ENGLISH);<br />   Table oTable = new Table();<br />   oTable.setConnectionInfo(getConnectionInfo("zzzzz","zzzz","zzz", "zzz"));//Connectin to oracle database<br />   oTable.setName("EMP1");<br />   rptDoc.getDatabaseController().addTable(oTable, null);<br />         String[] columnName={"EMPNAME"};<br />       Section dtlSection=(Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br />   int fldLeft=100;<br />   for (int i=0;i<columnName.length;i+)<br />   {<br />    <br />    dtlSection= (Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br />     try{<br />     FieldValueType fldValueType = FieldValueType.stringField;<br />     String javaDataType="String";<br />      add_db_field(<br />      dtlSection, <br />     oTable.getName()"."columnName<i>, <br />     fldValueType,javaDataType,<br />     fldLeft, fldTop, fldWidth, fldHeight);<br />     }catch(Exception e){<br />      e.printStackTrace();<br />     }<br />    fldLeft = fldLeftfldWidth;<br />   }<br />   <br />       <br />   try { <br />          //Create and set up the window.<br />          JFrame frame = new JFrame("ReportsViewer");<br />          frame.setTitle( "Crystal Reports Viewer");<br />          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />          ReportViewerBean viewer = new ReportViewerBean();<br />          viewer.init( new String[0], null, null, null);<br />          IReportSource rptSource = rptDoc.getReportSource();<br />          viewer.setReportSource( rptSource );<br />          frame.getContentPane().add( viewer, BorderLayout.CENTER );<br />          frame.setSize( 700, 500 );<br />          frame.setVisible(true);<br />          viewer.start();<br />   }catch(Exception e)<br />    {<br />     e.printStackTrace();<br />    }</p><p>   }catch(Exception e)<br />   {<br />    e.printStackTrace();<br />   }<br /> }<br /> public ReportObject add_db_field(Section oSection, String field_name, <br />   FieldValueType oFieldValueType,String fldDataType,<br />   double x, double y, double w, double h)<br /> throws ReportSDKException<br /> {<br />  DBField oDBField = new DBField();<br />  oDBField.setName(field_name);<br />  oDBField.setType(oFieldValueType);<br />  FieldObject oFieldObject = new FieldObject();<br />  oFieldObject.setDataSource(oDBField.getFormulaForm());<br />  oFieldObject.setFieldValueType(oDBField.getType());<br />  IndentAndSpacingFormat indentSpacing = new IndentAndSpacingFormat();<br />  IStringFieldFormat stringFieldFormat = oFieldObject.getFieldFormat().getStringFormat();<br />  stringFieldFormat.setIndentAndSpacingFormat(indentSpacing);<br />  oFieldObject.getFieldFormat().setStringFormat(stringFieldFormat);<br />  rptDoc.getReportDefController().getReportObjectController().add(oFieldObject, oSection, -1);<br />  return oFieldObject;<br /> }<br />  public ConnectionInfo getConnectionInfo (String new_username, String new_password, String new_dsn, String new_database)<br /> {<br />  <br />      ConnectionInfo oConnectionInfo = new ConnectionInfo(); // Make a copy, don&#39;t change the original.<br />      PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();<br />      oPropertyBag1.put("QE_ServerDescription", new_database);<br />   oPropertyBag1.put("Database DLL", "crdb_oracle.dll" );<br />   oPropertyBag1.put("DSN", new_dsn);<br />   // Set new table logon properties attributes<br />   PropertyBag oPropertyBag2 = new PropertyBag();<br />   oPropertyBag2.put("Server", new_database);<br />   oPropertyBag1.put("QE_LogonProperties", oPropertyBag2);<br />   oConnectionInfo.setAttributes(oPropertyBag1);<br />   oConnectionInfo.setUserName(new_username);<br />   oConnectionInfo.setPassword(new_password);<br />   // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).<br />   oConnectionInfo.setKind(ConnectionInfoKind.CRQE);<br />   return oConnectionInfo;</p><p>  }<br /> public static void main(String[] args) {<br />  // TODO Auto-generated method stub<br />  new ReportSample();<br />  //String cmsName = "admin-42cdvir7e(2)";<br />  <br />  <br />  <br /> }<br /> </p><p>}<br /></p>

    <p>This issue can be  solved when you create the reports without needing to write any extra code.  I haven&#39;t tested this solution because I don&#39;t have any data to test it against.</p><p>First you want to make sure that you are using a UNICODE font which I&#39;m sure you are probably already doing.  Then to configure the "Right to Left" you can right click on any field and select "Format Text" or "Format Field".  You should see a "Paragraph" tab.  In there you can set the content to be "Left to Right" or "Right to Left".  The button on the right allows you to make this setting conditional on a parameter value or something like that.  I hope this helps. </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • How to enable show SQL Query in Crystal report tool

    Hi,
    How can we enable the show SQL Query under Database tab in crystal report...
    We have a requirement to modify the SQL query in Crystal reports.
    Thanks,
    Gana

    Gana,
    CR has an "Add Command" feature that will allow you to use hand-coded SQL as your data source.
    Look at Defining an SQL Command in CR's online help (F1).
    If a command was used in the original report creation, it's a simple matter to go in and edit that SQL.
    If the report was not originally built w/ a Command you may find it difficult to switch over. In most cases it easier to start over from scratch, creating a new, blank report, that uses the command.
    Jason

  • How to set database location in the crystal report X1 from the Source code.

    Dear All,
    I am using Crystal report X1 for report generation.Now I am setting the database location manually in the crystal report. How can I Set the database location from the Source code.
    Awaiting for your reply.
    Thanks in advance.
    Regards,
    Rahaneef T

    Here's a routine that also searches for subreports to set the log on info. Simply remove that aprt to set the main report logon info:
    IDatabaseTablePtr pTable;
    //get first table
    pTable = m_Report->Database->Tables->GetItem(1) ;
    long lTableCount = m_Report->Database->Tables->Count;
    for( long lTable=1; lTable<=lTableCount; lTable++ )
         pTable = m_Report->Database->Tables->GetItem(lTable);
         pTable->ConnectionProperties->DeleteAll();
         pTable->ConnectionProperties->Add("DSN", "Name of your DSN");
         pTable->ConnectionProperties->Add("Database", "Demo");
         pTable->ConnectionProperties->Add("Password", "sa");
         pTable->ConnectionProperties->Add("User ID", "1Oem2000");
    // Log on the tables of the subreports.
    long lSectionCount = m_Report->Sections->Count;
    for( long lSection=1; lSection<=lSectionCount; lSection++ )
         ISectionPtr pSection = m_Report->Sections->Item[lSection];
         long lSubreportCount = pSection->ReportObjects->Count;
         for( long lSubreport=1; lSubreport<=lSubreportCount; lSubreport++ )
              IReportObjectPtr pSubreportObject = pSection->ReportObjects->Item[lSubreport];
              CRObjectKind crObjectKind;
              pSubreportObject->get_Kind(&crObjectKind);
              if( crObjectKind == crSubreportObject )
                   ISubreportObjectPtr SubReportPtr = pSubreportObject;
                   IReportPtr pSubReport = SubReportPtr->OpenSubreport();
                   long lTableCount = pSubReport->Database->Tables->Count;
                   for( long lTable=1; lTable<=lTableCount; lTable++ )
                        pTable = m_Report->Database->Tables->GetItem(lTable);
                        pTable->ConnectionProperties->DeleteAll();
                        //pTable->ConnectionProperties->Add("DSN", "dwcb12003");
                        pTable->ConnectionProperties->Add("Database", "CrystalEport_DB");
                        pTable->ConnectionProperties->Add("Password", "sa");
                        pTable->ConnectionProperties->Add("User ID", "1Oem2000");
    If that doesn't work you need to tell us what is the error you are getting and paste in the code you are using.

Maybe you are looking for

  • Mapping Colums

    0 I have a requirement which is Member's relation code: subscriber = '18', Spouse = '01', Child = '19', Other Adult ='34' of which the Column to supply the information is RELATIONTOINSURED and the information on that Column is M-Man W-Woman S-Son D-D

  • Can someone help me access iNotes from my mac

    I have trouble accessing iNotes from my Mac. I can read my e-mail, but I can't send anything. I get the following message: "Domino Web Access has not been certified to work with this browser" I know of other people using the safari with their mac, an

  • Z68 G3 - Need help setting up RAID + Smart Response please.

    Ok, this is the first time I am going to be setting up RAID. I have two new 64 GB SSD's hooked up to SATA 1-2 (The first 2 white SATA 6.0). I go into BIOS, and I set the settings to RAID, and then I enable SATA 1 + 2. I save and reset, and during the

  • I have a white screen

    my ipod touch has been dropped. it has a chip in it but thats the least of my worrys. my ipods screen just randomly turned white Ive tried everything but its still white. what should i do?

  • Apple Support unproffesional

    I called Apple Support to resolve problem with Iphone and the support personal recommened me to go to Apple Store, so then they can decide the problem was created by user or it is the unit itself. I really what kind of proffesional tech support APPLE