Error in printing data on first page

Hi
I'm trying to print following data in my smartform,
Country Code | City.
I have a internal table with above structure and i want to have a page break after country code changes.
For e.g my data is as follows,
Country Code | City
001               | City1
001               | City2
001               | City3
002               | City4
002               | City5
I have inserted a table loop and im looping the contents of internal table into wa , I have also defined an event of page break whenever country code changes.
I want to have my output as follows,
Country Code : 001
city1
city2
city3
Country Code: 002
city4
city5.
However it is printing as follows,
Country Code :
city1
city2
city3
Country Code: 002
city4
city5.
i.e. on the very first page it doesnt have the value of country code in wa.
Any idea how to solve above problem? Kindly help !

Hi mac,
In the main window --> loop : data tab --> use the event begin for the country code and in the text node drag and drop the field of the country and below the country text node create text node for the output text drag and drop the other fields.
Regards,
Sravanthi

Similar Messages

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • Forms that previously worked, print a blank first page.

    I have numerous forms that were created in LiveCycle Designer 8 that worked perfectly, but suddenly they all are printing a blank first page.  When I am in LiveCycle in the Design view, I am able to print both pages but when I go to the Preview PDF view, the first page is blank on print preview.  I'm stumped. There are no security settings around printing.  Any help would be greatly appreciated.

    This seemed to be a property that is causing an additional page to be printed.. If you can send the form to [email protected] , I can have a look at it..
    Thanks
    Srini

  • I use printopia to print from my iPad, trying to print out a 4 page credit card statement, but it only prints out the first page, please help

    I use printopia to print from my iPad, trying to print out a 4 page credit card statement, but it only prints out the first page, please help

    What version of iOS are you using?  Some people were having this problem before, and it was fixed when they updated to iOS 5.

  • How to: Print table on first page, use second page (back) for text only

    Hi, I am looking for a clear document on how to use pagination and the Odd and Even pages.
    We need to print a table over several pages, but only on Odd pages.
    On the back of each page we need to print "Terms and Conditions". Is that possible? Can it be done without scripting
    We are on ADOBE version 8.1
    In the file properties, double sided is switched on, and version set to 8.1 and higher.
    I created two Master pages, a FrontPage with ContentArea1and a BackPage with ContentArea2.
    FrontPage is used for uneven pages, BackPage is used for the even pages. The masterpages are printed correctly (alternating properly).
    Two pages were created for the content area's:
    ITEMS: contains item data (table with header and footer). Place is "On Odd Page". After "Goto page BackPage". And if the table needs to be paginated it goes to BackPage with overflow leader "Conditions".
    CONDITIONS: contains a textfield (Terms and Conditions). Place is "On Even Page". After "Goto page FrontPage". No overflow.
    What should happen is that on the front pages the item table is printed. If there are too many lines it should overflow to page number 3 then 5 etc. All the even pages should display the text.
    What actually happens is that the item table also gets printed in the content area for the Condition text...
    Also the "Conditions" are not printed on the last back page. But only once before it...
    Cheers,
    Edwin.

    Fixed it... After a lot of creating, deleting, playing around with pagination and the inevitable cursing...
    I have created 5 pages:
    1. FirstPage
         - Odd/Even: Odd (Front) Pages
         - Placement: First page (In page set)
    2. FrontPage (For Odd pages)
         - Odd/Even: Odd/Front Pages
         - Placement: Rest of Pages
    3. BackPage (For Even pages)
         - Odd/Even: Even (Back) Pages
         - Placement: Rest of Pages
    4. LastPage
         - Odd/Even: No Odd/Even Restrictions
         - Placement: Last page (In page set)
    5. DummyPage
         - Odd/Even: Blank pages
    The 'Terms and conditions' are located on the BackPage and LastPage (as a text).
    The table that is printed is (of course) located on a normal page (flowed subform).
    Pagination tab: Placement = Following previous, and After = "Continue filling parent". No overflow... Basically, it's all default.
    The table lines will now start on the first page and if there are more lines than can be printed on this page, it will continue in the next content area. That will be on the FrontPage.
    The trick is that each master page must have a content area (mandatory). Except for Blank pages, but these cannot be used... Blank pages would only be used once, after the first page.
    What I discovered is that you can drag a content area away from the Master page and attach it to a different master page.
    Logically, if there is no content area on a page, then data cannot be printed there. So, I created a Dummypage. On this page I dumped the content areas from the LastPage and the BackPage. As a result, content cannot be printed anymore on the back of pages. Only the standard text (a text field) is printed there. When the data from the table is overflowing, it will automatically overflow from the FirstPage to the next content area. Which is located on the FrontPages only.
    The DummyPage is NOT used anywhere.
    The result is that the records can only be printed on the content areas that exist on the First and Front pages. The back pages are now skipped.
    Duplex printing is now working correctly, and the text is printed on the back of all the pages.
    Cheers,
    Edwin.

  • HP 8500 A Plus only prints half of first page from my mac

    When I print wireless from my mac it only prints half of the first page (regardless of how many pages the document is) then stops.  This only happes with my computer.  If I make a copy or print from my phone everything works fine.  I've had this printer for about 2 years and this is a new issue that didn't used to happen.  I do not get any error messages when this happens.
    Any ideas?

    There is no full feature software and driver for your printer that is compatible with Yosemite @1Adam12 , so we know the issue is not the software. Let's try the following steps in order to resolve this;
    Reset Printing System
    Click the Apple icon (   ), and then click System Preferences.
    In the Hardware section, click Print & Fax/Scan. The Print & Fax/Scan  dialog box opens.
    Right-click (or  Ctrl  +click) in the left panel, and then click Reset printing system…
    Click OK to confirm the reset.
    Type the correct Name and Password.
    Click OK to reset the printing system. The Print & Fax dialog box shows no printer selected
    Note: This will remove all printers in the print and Fax/Scan, any printer removed can be re-added later by clicking the plus (+) symbol.
    Repair Disk Permissions
    On the Dock, click Applications, and then click Utilities.
    Double-click Disk Utility.
    Highlight your hard drive/partition on the left (by default this is "Macintosh HD").
    Click the Repair Disk Permissions button at the bottom of the window.
    Once the repair is complete, restart the computer and download and install the HP Printer Drivers for OS X.
    Now when you add the printer, you should have the HP driver to choose,
    Select Add other Printer or Scanner  
    Select the printer you are adding and next to 'Use' you can the printer driver 
     Please let me know if you can print a complete job now.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • How can I print only the first page of multiple PDF files at once in my PC?

    That is, without having to open each file individually.
    Thanks!

    Create an Action with the following JS command:
    this.print({bUI: false, nStart: 0});
    This will cause the first page of all the files you process with this Action to be sent to your default printer.
    If you need to specify more complex parameters, you'll need to use a more complex code...

  • Requirement to print data of first and second report of an ALV at once

    Hi,
    I have an interactive ALV report in which on double click of any of the record on first report, its details get displayed in second report. My requirement is to print all the data (of first and second report) at once.
    Kindly tell me how can I achieve this functionality.
    Regards,
    Seema Naharia

    Hi Seema,
    Try with this FM 'REUSE_ALV_HIERARCHICAL_LIST_DISPLAY'.   
    Regards,
    Sujatha B.

  • Cheque printing only on first page

    Hi,
    Iam a newbie in XML/BI Publisher. I am doing a AP Cheque printing. In the report I have to print the invoice lines and at the bottom of first page I need to print the cheque. I did all necessary stuffs for this in the RTF template.
    But now the cheque is getting printed in the second page if the lines comes to the second page or after printing the lines if there is no space for the cheque then its getting printed in the next page.
    Can anyone guide me how to print the cheque only in the first page bottom alone.
    The sample output which I needs is like this,
    page 1-
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    |..............................|
    | cheque print...........|
    page 2
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    thanks a ton in advance.

    Hmm,
    There is no way you can say fix that and show this only in first page.
    but you can achieve it.
    1st method.
    give enough space for the check in the first page, by reducing the no of lines in the first page, so that you can accommodate the cheque .
    for this, you can do like,
    if the position is less than 9 and mod of postion is zero , that means you are in 9 line, then call a sub-template and after that you can put a page-break. this condition is for first page only.
    now put an another if condition here, if the position is > 9 and position mod X is zero, then put a page break. x is no of lines to be displayed in 2nd, 3rd, 4th pages.
    2nd method.
    put the differnet header and footer for first pge.
    and cal the sub-template in footer of first page.
    in tht sub-template you have the check.

  • Total amount to be printed on the first page....

    Hi all,.. I have to print the total of all the line items on the first page o fthe cheque. The problem is when the line items exceed the main window of the first page , the total sum and the number in words in this case comes on the next page. What do i do????
    My Num 0971-501190837..

    Hi,
         Try to put the totals field in the BOTTOM and ENDBOTTOM.
    or
    Place Total tax and Total amount in separate footer window whose location is at the bottom of main window. Now write the code inside that window as given below.
    PF Total tax &<total_variable>.
    PF Total Amount &total_amount_variable&.
    Regards
    Krishna
    Edited by: Bala Krishna on Aug 7, 2008 5:29 PM

  • Printing fails when first page number not 1

    I am working on system 10.3.3, with an ibook G4, using Appleworks 6.2.9. I need to print some documents in succession, I don't want to merge them to one, because they are large, and anyway I prefer separate chapters to be separate documents.
    I went to "Format-Document-page numbering start at page", and changed to the proper number. When I try and print, I get only the first page and then it stops. I have tried it also on another computer, working with Tiger, same problem. I tried to see Preview - same thing, I only see the first page, same thing if I save as PDF from the print command. Any idea? I trashed preferences, and re-set them, so this is not the problem.
    Another issue, but I don't want to start yet another topic - is it possible to prepare a Table of Contents in appleworks, in the same manner that Word does it? i.e. ask it to create table of contents by choosing specific Heading styles, or through the outline menu? I have been trying this for a long time, and found no answer in any of the help topics.

    Welcome
    Using my epson stylus photo 830SU, the feature works perfectly.
    Two tracks:
    - 1 - corrupted preferences
    - 2 - driver running wrongly. It would be fine to tell us which printer is used.
    About the TOC feature, there is not such feature in AW.
    You may visit my temp iDisk yvan_koenig.
    it contains a script to do that, in a subfolder entitled "Tabledesmatières3 ƒ"
    It is also available in :
    http://homepage.mac.com/pldelise/FileSharing4.html
    Yvan KOENIG (from FRANCE dimanche 30 octobre 2005 21:10:03)

  • Printing issues with first page, only prints part of page

    I dont know if this is the right place to ask, but I figured i would give it a shot:
    I have a computer running parallels with an OSX supported (and windows supported) HP printer. When I am printing an email from Outlook Express, the first page gets cutoff, but all of the other pages are fine. the cutoff happens on the right hand side.
    I recently updated to SP3 and IE8, which I have heard controls the settings for Outlook.
    I have tried using a regular printer, and also tried CUTE PDF writer, which also "prints" the document in the same manner.
    Any thoughts would be appreciated or if you know where to go for support that would be great too
    Thanks!

    See if the solutions given in this article help: [http://kb.mozillazine.org/Problems_printing_web_pages#Does_not_print_entire_page_content Problems printing web pages]
    <BR><BR>For general information related to printing, see this article: [[Printing a web page]].

  • When accessing Great West Life site to print my claims history, Firefox prints only the first page of a multi-page claim.

    After months I finally tried IEexplorer and got all pages of each claim. Is anyone working on a fix for this? I don't want to have to copy to another program in order to print this info. edit

    '''''"Is anyone working on a fix for this?"'''''
    Quite honestly, '''no''' - Mozilla evidently doesn't think printing is an important function in Firefox or they would have seen fit to fix the Bugs that can cause problems like that 8 years ago when they were first reported. ''"Resolved" in a Bug report doesn't always indicate the problem has actually been fixed.''
    http://kb.mozillazine.org/Problems_printing_web_pages#Does_not_print_multiple_pages

  • Implementing Database codes FAIL /error in parsing data into jsp page

    Hi there,
    I have this problem trying to build a portal application. I am using the JSPDynPage, jsp page and a bean to build a page.
    I have this problem parsing data from JSPDynPage to the beans and to the jsp page.
    I tested out the connection between the beans and the jsp page. There is no error parsing information from the beans to the jsp page.
    So i tried to test out the codes for the database from the beans.
    Will this work? Because it does not display the results i want.
    I need an Solution asap to find out wad is wrong also also the correct codes to the database.
    public String db(){
    try {
                 InitialContext iC = new InitialContext();
                 DataSource dataSource = (DataSource)iC.lookup("java:env/jdbc/mySQL");
                 java.sql.Connection connection = dataSource.getConnection();
                 PreparedStatement st = connection.prepareStatement("SELECT name FROM test WHERE id='123'");
                 ResultSet resultSet = st.executeQuery();
                 while (resultSet.next()){
                      name = resultSet.getString("name");
                      name = name.toString();
                 connection.close();
                 return name;
                 } catch(Exception n){
                      e = "Exception";
                      return e;
    This is the method i put in the beans to test out the database connection.
    Thanks Loads
    Quatre

    Hi there,
    Thanks for the reply, i thought that no one is going to reply me anymore. Thanks loads.
    Bean Class name: Bean1
    Bean Packeage name: Beans1
    Bean id : myBean1
    Jsp Codes
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean1" scope="application" class="Beans1.Bean1" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
       <hbj:textView id = "ll" text="lalalalalalalalalasasa" />
      <%--
    <hbj:textView id = "l">
                   <% l.setName(myBean1.getName());%>
    </hbj:textView>
    --%>
    <hbj:textView
                    id="appraisal_yr_label"
                    text="Apprasial Year:">
                    </hbj:textView>
                    <hbj:textView id = "la" >
                    <% la.setText(myBean1.getName());%>
                    </hbj:textView>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    Beans1.java
    package Beans1;
    import java.io.Serializable;
    public class Bean1 implements Serializable{
    private String name = new String();
    private String e = new String();
    private String year = new String();
         public void setName(String name){
              this.name = name;
         public String getName(){
              return name;
    JSPDynPage
    import Beans1.Bean1;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class testDBv5 extends PageProcessorComponent {
    import Beans1.Bean1;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class testDBv5 extends PageProcessorComponent {
      public DynPage getPage(){
        return new testDBv5DynPage();
      public static class testDBv5DynPage extends JSPDynPage{
        private Bean1 myBean1= null;
        private String name = new String();
        public void doInitialization(){
              try{
                                  IntitialContext context = new javax.naming.InitialContext();
                                  DataSource dataSource = (DataSource)context.lookup("java:env/jdbc/appDB");
                                  Connection connection = dataSource.getConnection();
                                  Statement stmt = connection.createStatement();
                                  ResultSet rs = stmt.executeQuery("Select AppraisalYear From tblAppraisal Where AppraisalYear='2007'");
                                          while(rs.next()){
                                            year = rs.getString("AppraisalYear");
                                            rs.close();
                                            stmt.close();
                                            connection.close();
                                            return year;
                                       }catch (Exception n){
                                            n.printStackTrace();
              IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
                     Object o = profile.getValue("myBean1");
                     if(o==null || !(o instanceof Bean1)){
                        myBean1 = new Bean1();
                        profile.putValue("myBean1",myBean1);
                     } else {
                          myBean1 = (Bean1) o;
                        Object value = request.getSession().getValue("myBeans1");
                        if (value==null || (value instanceof Bean1)){
                             myBean1 = new Bean1();
                        request.getSession().putValue("myBean1", Object value);
              DataBase cn = new DataBase();
              name = cn.dataBaseConnection();
              myBean1.setName(name);
    //name = "gir";
    //myBean1.setName(name);
    // IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    //IPortalComponentContext myContext = request.getComponentContext();
    //Bean1 myNameContainer = (Bean1) myContext.getValue("myBean1");
    //myNameContainer.setName(name);
          // fill your bean with data here...
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("testDBv5.jsp");
    //testing purpose
      public static void main (String[] arg){
         testDBv5DynPage ef = new testDBv5DynPage();
               ef.doInitialization();
    Thanks Loads
    Quatre

  • ActiveX Printer Error when print large number of page

    Hi,
    I have this problem when developing the report on my project.
    I developed the Crystal Report embedded in Visual Studio 2008 to be displayed in web form.
    I'm using .NET and the operating system of the development computer is Windows 7 32 bit.
    The problem is, I have a quite complex report displaying the statement for the customer which is result in 209 pages.
    When the report has successfully loaded, I simply click the print icon and it comes up with the error "A communication error occurred. Printing will be stopped"
    But, after that...I tried something different, when the report has successfully loaded, I went through the report by moving for every 30 pages until it reaches the last page and click the print icon. and it prints without any errors!
    Anybody knows what caused this?
    By the way, I'm using the ActiveX printing mode for the Crystal Report.
    Thanks
    -Marry-

    I'm thinking there is something not processed in the report so forcing the report to process everything up to the last page before printing may help. Try the following code before sending the report to the viewer:
    Dim prc As New CrystalDecisions.Shared.ReportPageRequestContext
    rptDoc.FormatEngine.GetLastPageNumber(prc)
    This may slow down the time it takes for the report to come up as the whole report will need to be processed, formatted, etc.
    Also, make sure you have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • Very high memory usage since upgrading to 3.6.4

    Since upgrading 3 days ago FF pretty much runs up to 500mb as a floor and can get up to 800mb of memory. I had this issue with 3.5 but it vanished with 3.6 and was living in bliss as it rarely broke 250 mb. I haven't added any extensions nor made any

  • Multiple Hotspots in a ALV Grid single column

    Hi Experts, My ALV Grid report output looks like below.... If you observe below output, column 3 has multiple documents each one separated by ' ; '. Now, I would like to assign hotspot on each documents like DOC1, DOC2, DOC3, etc. Heading#:         

  • Eyedropper a jpeg in ai?

    Sometimes I'd like to take a color from a jpeg. Any thoughts? windows 7, cs5 Thanks!

  • Proxy Service giving "Cannot Compute Effective WSDL for: Proxy Service"

    Hi, After updating the wsdl and schema, our proxy service is complaining with error : "Cannot Compute Effective WSDL for: Proxy Service " <ProxyService_Location_Name> when I launch a test console or access the Proxy Endpoint on IE. Proxy and Business

  • Hot backup : Rman vs. ALTER TABLESPACE...BEGIN BACKUP

    Dear Experts, I'm currently using the following statements - ALTER TABLESPACE (...) BEGIN BACKUP - host ocopy (...) - ALTER TABLESPACE (...)END BACKUP state I'm going for rman now but I've got 2 questions for those who did that in the past: 1/ Will r