Conditional report printing on diff pages

Hi,
I have following requirement :-
There are 2 sections in the report.
First section is a list. Second section is a form.
List content may vary based on no items to be shown (e.g. sometimes 2 line items , sometimes 10 line items. This is of least concern).
If there is enough space to accommodate section 2 on page 1 , it should be printed on page 1.
If there is enough space to accommodate section 2 on page 2 (just after section 1 is over) it should be printed on page 2 else on the next page and so on.
How can I achieve this requirement?
Thanks.

Is your report style tabular or Group (left or above)?. If it is tabular, then make this to group left report. Customer name field will be in one group and addresss field will be in second group. In customer name repeating frame, change 'Maximum Records per Page' from 0 to 1. So it will display one customer addresses on one page or if there are more address for one customer it will go to second page. And any new customer will start from new page.
Hope this helps.
Message was edited by:
fs

Similar Messages

  • My report prints on multiple pages

    My report which shows change requests by categories I setup and sort on prints across multiple pages.  I do not want that.  It is starting a new page for every catgegory.  Where can I check to see what setting I have made (unknowingly) that tells it to start a new page for each category?
    Thx

    Assuming that you are grouping on Category, there are two places where it is possible to set this.
    1.  Right-click in the gray area to the left of the group header and select "Change Group".  Go to the Options tab and verify that "New Page After" is not turned on.  Close.
    2.  Right-click in the gray area to the left of the group footer and select "Section Expert".  Go to the Paging tab and verify that "New Page After" is not turned on.  You might also want to check other sections and verify that there is no paging set up elsewhere.
    -Dell

  • Report printing only 1 page

    Hi folks,
    I have a report, but I run it only the first page is displayed. (query returns enough data for displaying more then 1 page).
    I checked every repeat frame and also normal frame within repoirt and it's "Print Object On" property (it's setup for "All pages") and also Base Printong On = Enclosing Object.
    What else should I check?
    Thanks,
    Tomas

    If you have repeating frame and 'Print Object On' is set to 'All Pages' then change to 'First Page'.
    If you have repeating frame and it is enclosed by another frame then change both frames 'Print Object On' property to 'First Page'.
    Hope this helps.

  • Double sided printing, adding blank page after two different groups

    Post Author: adepper
    CA Forum: General
    I have created a report that is structured as such:
    Group 1 - Based on formula, groups by type
    Group 2 - Based on formula, groups by use
    Group 3 - use (pulled directly from Database)
    Group 4 - ID
    I have the report printing an extra page after group 3.  I used this formula in the Section Expert - New Page After
    remainder(pagenumber,2)=0
    I also use that formula to reset the page number
    What I would like to do is print a second blank page if group 2 does not start on the top of the page, meaning I do not want either group 3 or group 2 to start on the back of a page, so that this report can be placed in a binder, with dividers.
    I have group 3 giving me a blank page with no issues, it is just group 2.
    Any help and/or suggestions would be appreciated.  If I did not give enough details, I am sorry.
    Thanks!

    Post Author: adepper
    CA Forum: General
    After a lot of blood, sweat and tears, not to mention a lot of curse words directed at the computer, I was able to get this to work.  Now I just have to do it for three groupings instead of two (deliver the impossible to your bosses, and they turn around and move the brass ring right out of reach again!)
    In case anyone is interested in how I was able to manage this (I found many sites where people asked this question, but not one complete answer), this is what I did:
    In the footer section:
    Group 4 - ID (database field)
    Group 3 - PrimeUse (database field)
        3a - Contains data
        3b - Contains data
        3c - New Page After, Keep Together, and Reset Page Number After are all checked.  In the condition for Reset Page Number After I also have this formula:
        remainder(pagenumber,2)=0
        3d - New Page After, Keep Together, and Reset Page Number After are all checked.  In the condition for New Page After I have this formula:
        remainder(pagenumber,2)=0
    Group 2 - Suppressed
    Group 1 - Grouped by Store Type -
        1a - Suppressed, New Page After and Keep Together are all checked.
        1b - New Page After and Keep Together are checked.  In the condition for New Page After I have to following formula:
        remainder(totalpagecount,2)=1
    If anyone sees any errors, or if you think you can get it so that I get another page blank, after Group 1, if the Group starts on an even numbered page, I would appreciate the help.
    Thanks!

  • Need to print a report that has two pages but based on condition

    Hi
    Can someone help me. I have a report that has 2 pages and I need print it but not boths pages at the sametime.
    I have code ( the conditions)like this
    If (A=Y) then
    print Page 2
    else print page 1
    end if;
    Note: Where would I put the code. Please
    Thank you

    Some folks have written JavaScripts for such needs, but for only 6 pages I would simply do the following. 1. Crop all pages to show 1 and 4. Then print to a new PDF (not optimum, but will do the job). 2. Repeat for 2 and 5. 3. Repeat for 3 and 6. Now open one of them in Acrobat and the use insert pages to insert the other two files. Now rearrange the pages using the Pages display and save. That should do the job.

  • Print a report adapted a single page.

    Hi,
    I have a report in Answer that is printed on two pages.
    I wish that when I choose to print the report in pdf, it is adapted a single page.
    Is it possible from OBIEE?
    Thanks
    Sara

    Thanks, I was afraid that the answer was "Publisher".
    Unfortunately you can decrease the font size in the cell of the report ....
    You can not edit the xml report to adapt it to the page?
    If there are no official answers to this problem .... thanks a lot.
    Sara

  • 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

  • Print, Export and Page Navigation Buttons in the Report

    When I view a report through CR4E, the generated report has 3 buttons namely Print, Export and Page Navigation buttons. But when I click on either of the buttons I get a 'null pointer exception'. This is a critical error as I am unable to navigate past the first page. Do I have to add code to these buttons? If not, why am I getting an error? Kindly solve my problem as soon as possible.

    <p>Looking at your code it appears that you are storing the ReportSource in session prior to passing in the ResultSet. This will create a problem when a postback is made on  the viewer page (which all of the viewer actions do). If you look at the sample code which is generated when you use the JSP Page Wizard you will notice that the ResultSet is passed to the ReportClientDocument object prior to it being stored in session. Then, when the page is called again this object is retrieved and the ReportSource is used by the viewer. You can quickly run the test using one of our sample reports to see what I am talking about. The code below was generated using the Consolidated Balance Sheet.rpt and did not experience any problems doing any of the viewer actions.</p><%@page import="com.businessobjects.samples.JRCHelperSample,<br />com.crystaldecisions.report.web.viewer.CrystalReportViewer,<br />com.crystaldecisions.reports.sdk.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement"%><%<br /><br /><br />    try {<br /><br />        String reportName = "Sample Reports/Consolidated Balance Sheet.rpt";<br />        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br />        if (clientDoc == null) {<br /><br />            clientDoc = new ReportClientDocument();<br />            <br />            // Open report<br />            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br />  <br />            {<br />                // **** POPULATE MAIN REPORT ****<br />                {<br />                     // Connection Info for fetching the resultSet<br />                    String connectStr = "jdbc:derby:classpath:/Xtreme";<br />                    String driverName = "org.apache.derby.jdbc.EmbeddedDriver";<br />                    String userName = "dbuser";        // TODO: Fill in database user<br />                    String password = "dbpassword";    // TODO: Fill in valid password<br /><br />                    String query = "SELECT CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = &#39;Australia&#39;";<br /><br />                    <br />                    String tableAlias = "FINANCIALS";        // TODO: Change to correct table alias<br /><br />                     <br />                    JRCHelperSample.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),<br />                        tableAlias, "");<br />                }<br /><br /><br />            }<br />        <br />            // Store the report document in session<br />            session.setAttribute(reportName, clientDoc);<br /><br />        }<br /><br /><br />            {<br />                // Create the CrystalReportViewer object<br />                CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br />                //    set the reportsource property of the viewer<br />                IReportSource reportSource = clientDoc.getReportSource();                <br />                crystalReportPageViewer.setReportSource(reportSource);<br /><br />                // set viewer attributes<br />                crystalReportPageViewer.setOwnPage(true);<br />                crystalReportPageViewer.setOwnForm(true);<br /><br />                // Process the report<br />                crystalReportPageViewer.processHttpRequest(request, response, application, null); <br /><br />            }<br />            <br /><br />    } catch (ReportSDKExceptionBase e) {<br />        out.println(e);<br />    } <br />    <br />%><%!<br />// Simple utility function for obtaining result sets that will be pushed into the report.  <br />// This is just standard querying of a Java result set and does NOT involve any <br />// Crystal JRC SDK functions. <br /><br />    private static ResultSet fetchResultSet(String driverName,<br />            String connectStr, String userName, String password, String query) throws SQLException, ClassNotFoundException {<br /><br />        //Load JDBC driver for the database that will be queried    <br />        Class.forName(driverName);<br /><br />        Connection connection = DriverManager.getConnection(connectStr, userName, password);<br />        Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br /><br />        //Execute query and return result sets<br />        return statement.executeQuery(query);<br /><br />}%><p>Try using the code generated from the wizard to see if it works for you as well. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • How to print a report or a form page from application?

    Hi Forum,
    Thanks for the various contributions that are helping my experience with oracle. My current problem is what procedure should I follow to print a form or a report from the application page?
    Sincerely,
    Godis-Tei

    See Viewing Pages in Printer Friendly Mode and Selecting a Printer Friendly Template for an Application
    Thanks,
    Vikram

  • SSRS 2008 R2 report prints empty spaces for html content till end of page

    Hi
    I need to display records containing long html content say each record of different size ranging from 5 lines to 3-5 pages.
    Issue observed is:
    When a record complete is printing say half the page and subsequent record is bigger then half a page, the subsequent record is printed on the next page rather than continue immediately after the previous record is completed.
    Is their any property or any other solution to resolve the issue. Print on next page is not set.
    Nikesh Shah

    Hi Nikesh,
    As per my understanding, I think the issue is caused by the blank space in the report body. In order to get rid of the blank space when print the report, please refer to the following steps:
    Click on Report > Report Properties > Layout tab
    Make a note of the values for Page width, Left margin, Right margin
    Close and go back to the design surface
    In the Properties window, select Body
    Click the + symbol to expand the Size node
    Make a note of the value for Width
    Please check the Page Break settings on all your report items and make sure the Body Width + Left margin + Right margin less than or equal to Page width, just like the equalities below:
    (Body Width + Left margin + Right margin) <= (Page width)
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can you print a single page of a multipage report.

    I am using Office 2003 pro, the LabVIEW Report Gen Toolkit, LabVIEW 7.0, and Windows 2000. I have created a lengthy report with the first page being a summary. I would like the user to be able to select; print the entire report, or just the first page. Any ideas?

    There are two ways you could go about doing this. They both are somewhat straight forward.
    1) Calling a macro from LabVIEW in Word.
    You could create a macro that would let you just print the first page and call this from LabVIEW when the user so desires. There is an example of how to call a macro if you use the example finder. Goto
    Toolkits and Modules>>Report Generation for Microsoft Office>>Run Macro on Word Table
    2) You can actually modify the print VI that comes shipped with LabVIEW. For Microsoft Word it is called Work_Print.vi and it is located with in the exclsub.llb. This can be found at..
    ..\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons\_office\_exclsub.llb
    You can also find this by digging through the Print Report.vi
    Inside this VI you will see an Invoke node that has the fields To and From. If you specify the start and end page here, by connecting integer controls or constants, this will let you specify the pages to be printed out.
    NOTE: If you modify the Work_Print.vi you may want to save it outside of this library and locally to your application directory. Therefore make sure any report VI you are using within your app. now dynamically references this local version of Word_Print not the one in the report library.
    Please don't hesitate to let me know if you need more information or a more descriptive explanation.
    Have a great day!
    Allan S.
    National Instruments
    Applications Engineering

  • Unable To Print or Access Page Setup in Crystal Reports 2008

    I have Win 7 32 bit, and installed Crystal Reports 2008 last week (v12.0.0.683 from the Help window).
    Every time I open a report, and from the Preview tab clicking File -> Print, or File - > Page Setup, I immediately receive a Windows message that "Crystal Reports has stopped working".  After a few seconds, another Windows message displays "Crystal Reports has stopped working - a problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available".  Then Crystal completely closes.
    I downloaded sample reports from the BO website, and still receive the error, so I don't think it's the report.
    When I view the Event Log, I see the following:
    Faulting application name: crw32.exe, version: 12.0.0.683, time stamp: 0x47c8be9a
    Faulting module name: ntdll.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdadb
    Exception code: 0xc0000374
    Fault offset: 0x000c283b
    Faulting process id: 0x94
    Faulting application start time: 0x01cc1fc304e98ecd
    Faulting application path: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crw32.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: 3cfc99e6-8bb8-11e0-b8ef-00248122792c
    I have uninstalled and reinstalled CR 2008 multiple times and continue to receive the same error.  I tried updating to SP1 (Version 12.1.0.892 Incremental) but I receive the following error: "A BusinessObjects product at a lower patch level is detected.  The installation cannot continue.  Please update all installed products to the SP1 patch level, then restart this installation".
    Need to print my reports - any ideas?

    Sorry busy on Support cases and they take precedence over this community forum.
    Very interesting....
    In a test application I use I have this routine to get the local printers:
    private void frmMain_Load(object sender, System.EventArgs e)
         if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
              foreach(String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters )
                   cboCurrentPrinters.Items.Add(myPrinter);                         
              cboCurrentPrinters.SelectedIndex = 0;
         else
              rdoCurrent.Enabled = false;
              EnableDisableCurrentControls(false);
         //For printers exposed to System account as per MS Kbase
         //http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
         //Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
         Microsoft.Win32.RegistryKey mySystemPrinters =
              Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
         foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
              cboDefaultPrinters.Items.Add(defaultPrinters);
         if (cboDefaultPrinters.Items.Count > 0)
              cboDefaultPrinters.SelectedIndex = 0;
         else
              rdoDefault.Enabled = false;
    Note the MS Kabse on where the printer registry is. Now the odd part is on one of my test development PC's it won't populate the Default User Printer list, only the Local User Printers. I take this same app to another PC and it works just fine. The register keys are there but for some reason on my Windows 7 64 bit it won't show them, the other strange part is I have full access to both keys. I have not been able to figure out why this happens...
    I'm thinking this may be related to your issue.... But I don't have a solution, very strange... I've even gone into regedit32 and set full permissions on the various keys and it still doesn't work...
    I have other VM-ware images if I need to get past that part for testing so I never drilled into why, I believe it has to be some Windows/Firewall/Anti-virus configuration or something our IT department pushed into my local Profile.... What that is I don't know unfortunately.
    I'll do some looking and testing. You may want to post this on Microsoft forums as well.... Ask about printer permissions.
    Thanks
    Don

  • Report Displays in Viewer but Web Print produces blank pages

    I am using VS 2008 w CR 2008 SP2 in a web application deployed on Win2008. 
    I have set the report to display all pages so that the users can hit the print button on their browser (IE7).  When the report is shown in the report viewer it looks perfect.  When the print button on the browser is used blank pages with the url on top/bottom of each page print, but there is no report. 
    If I use the print preview and turn on the background layers, I can see that the report background is on two and half pages, which would be corect; but there is no report text or data.
    Any ideas?

    Hello,
    If you page through the report in the viewer is all the data visible?
    Have you handled the postback event so that the report is in session before you print?
    Look at the samples in the Crystal Reports Visual Studio .NET [Samples|http://www.sdn.sap.com/irj/boc/sdklibrary?rid=/library/uuid/d0bf8496-2a81-2b10-95ac-b1f48d5b63f5]. Go to the "ReportDocument_Object_Model_Tutorials" and look at the "RDObjMod_Session" sample.
    There are also different methods for printing from the web. Printing from the Print control on the viewer downloads an ActiveX print control to the local system. The user needs to have Administrator rights for it to install and register. For information on web printing options look at the article[ "Printing Web based reports with Crystal Reports for Visual Studio .NET"|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/600c24a3-ab1d-2b10-1bb4-c50562e353cb].
    Elaine

  • Reports: Object not printing on 'ALL PAGES' as specified in Property sheet,

    Oracle Reports 6.0.8.11.3
    Object not printing on 'ALL PAGES' as specified in Property sheet, 'PRINT OBJECT ON' property.
    page size orientation has been verified at main report layout node 'f4', it is set 11x8.5
    Thanks for your help.

    Got it.
    Problem:
    Heading included in Main body printing only on first page even though, PROPERTY, ‘PRINT_OBJECTS_ON’ for all objects are set to:
    ‘ALL PAGES.
    Solution: Select the parent frame of the objects that are printing on all pages and drag it down to include the frame that encloses the Heading information that is currently not printing.

  • Reports printing blank pages

    I am running oracle reports on my windows 2000 computer. When I send the reports to my screen, I can see everything fine. When I tell the program to print the report, either directly or after having previewed it, the report prints nothing but blank pages ( the correct number of blank pages also). When I tell it to turn into pdf, I likewise get nothing but blank pages. Any ideas?

    Dear All,
    I am facing the same problem of printing.
    If I send to screen it is shown properly. But if I direct the print to a printer, it does not print anything but skips the same number of pages as I have sent to print. Please if any one knows please reply to this as soon as possible as it is a bit urgent.
    Thanks in advance,
    waiting for your replies
    Padma S Bhat
    [email protected]

Maybe you are looking for

  • Help for F110

    Dear all, When we run transaction F110 we have something strange and that we do not understand. For a vendor A, we have 2 sum up for the same vendor which contain several FI documents. Exemple:      Is:           Proposal:                Vendor A:   

  • Want to design a generic custom Message

    I want to have a generic mechanism of showing custom messages. I have a common library where I want to keep most of code needed for that. Common library: public function customUserMessage(message:String, parent:Sprite):void var message1:String = "";

  • Error when configuring Desktop Software with Outlook 2007 Calendar

     Hello, I am trying to find some help for a problem I'm having with a Blackberry 8100. I would like to use the Desktop Software 5.0 in conjunction with Outlook 2007 (on Windows 7 64 bits) to sync the calendar between the device and the computer. Actu

  • Where do I put Camera Calibration Profiles?

    Running LR 4.2 64-bit on Windows 7 64-bit.  I"m shooting with a Nikon D300. When I look at an image, in Develop, I have a set of choices for "profiles".  These include Embedded, ACR4.3, ACR 4.4, Adobe Standard, Camera D2X mode 1,2,3, Camera Landscape

  • Service? How to handle this process in SAP?

    Hi, Ihave a problem The customer provide us his own material, In production process we add to it our own component. Than we have to pass it to our magazine with the same customer name but higher price. Is it a service? How to handle in SAP. Thanks in