Add image in Group Header

Hi All
Cud anyone tell me how to add/upload image in Header of element "Group"??
Regards.
Nikhil.

Hi Nikhil,
    First Put the Required Image in the following Path
1.)If it is Web Dynpro Project
Go to Work Space --> <Project Name>\src\mimes\Components\<Package Name>\<Your Required Image>
2.)If it is Development Component
C:\Documents and Settings\<User Name>\.dtc\LocalDevelopment\DCs\<Vendor>\<DC Name>\_comp\src\mimes\Components\<Package Name>\<Your Required Image>
after that in the Group header properties go to the imageSource = <Image Name>.<Extension Name>
Ex:- imageSource = Flower.jpg (Image Name is Case Sensitive)
Note:- Web Dynpro Supports Jpg/Jpeg & gif Images.
With Regards,
Roop Kumar.
Edited by: Roop kumar Annavarapu on Sep 1, 2008 8:30 AM

Similar Messages

  • How do i add images in the header and footer to a PDF using iText

    Hi ,
    I want to add images to the header and footer of every page while i am genrating a pdf i have created a separate class called EndPage which i am instanceiating its default constructor in another class 's button action method.
    The above code genrates a PDF for me however it genrates a file with file size zero bytes and does not open it following is my sample code
    //**********Any Help would be appreciated
    Thank You
    public class My_Class
    public String pdf_action()
    EndPage ep=new EndPage();
    return null;
    }//My_class Ends
    class EndPage extends PdfPageEventHelper
    * Demonstrates the use of PageEvents.
    * @param args no arguments needed
    public EndPage()
    try {
    com.lowagie.text.Document document = new Document(PageSize.A4, 50, 50, 70, 70);
    PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("D://proposals/endpage.pdf"));
    writer.setPageEvent(new EndPage());
    document.open();
    String text = "Lots of text. ";
    for (int k = 0; k < 10; ++k)
    text += text;
    document.add(new Paragraph(text));
    document.close();
    catch (Exception de) {
    de.printStackTrace();
    public void onEndPage(PdfWriter writer, Document document) {
    try {
    Rectangle page = document.getPageSize();
    PdfPTable head = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    head.addCell("head " + k);
    head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
    writer.getDirectContent());
    PdfPTable foot = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    foot.addCell("foot " + k);
    foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
    writer.getDirectContent());
    catch (Exception e) {
    throw new ExceptionConverter(e);
    }

    Hi,
    Thanks for the quick response.
    The problem is that when I keep the logo as a watermark, the pdf is not adjusting itself to include the logo as header.
    But if I add a header text via Tools -> Headers and Footers, the pdf is adjusting itself so that the header text is at the beginning , not overlapping with the contents of pdf.
    But while using logo as watermark, some times overlapping of the pdf contents and logo is happening.
    Is there any way to add a logo in the Header and Footer via the option in Tools -> Headers and Footers
    Thanks,
    Vidhya

  • How to add image in jtable header using 'Default table model'

    Hi,
    I created a table using "DefaultTableModel".
    im able to add images in table cells but not in 'table header'.
    i added inages in table by overriding "getColumnClass" of the DefaultTableModel.
    But what to do for headers?
    please help.
    Thanks in advance.

    The 'Java 5 tutorial' is really an outstanding oneI should note the the current tutorial on the Sun website has bee updated for Java 6. It contains updates to reflect the changes made in JDK6. Once of the changes is that sorting of tables is now supported directly which is why I needed to give you the link to the old tutorial.
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html

  • Add image to table header

    Hello dear All
    My requirement is to add an image in jTable header( *.png or *.gif image in the tabel header.) I.e if there are 5 columns i have to add 5 images in the table header.
    Please help me to overcome this issue.
    Thanks

    Sorry, it looks like the tutorial has recently been updated. Sorting is now supported in JDK6. Prior to this you needed to write your own code for sorting and the tutorial include sample classes to help you out.
    Anyway, I found some old code lying around that should get you started:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableHeader extends JFrame
         public TableHeader()
              Object[] columnNames =
                   "Some Text",
                   new ImageIcon("copy16.gif"),
                   new ImageIcon("add16.gif")
              //  Columns headings are cast to a String when created automatically.
              //  We want Icons, so use a special renderer and create the columns manually
              DefaultTableModel model = new DefaultTableModel(columnNames, 5);
              JTable table = new JTable();
              table.setAutoCreateColumnsFromModel( false );
              table.setModel( model );
              table.getTableHeader().setDefaultRenderer( new HeaderRenderer() );
              for (int i = 0; i < columnNames.length; i++)
                   TableColumn newColumn = new TableColumn(i);
                   newColumn.setHeaderValue( columnNames[i] );
                   table.addColumn(newColumn);
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
         class HeaderRenderer extends DefaultTableCellRenderer
              public Component getTableCellRendererComponent(
                   JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
                   setBorder(UIManager.getBorder("TableHeader.cellBorder"));
                   setHorizontalAlignment(CENTER);
                   //  display text or icon
                   System.out.println(value.getClass());
                   if (value instanceof Icon)
                        setIcon( (Icon)value );
                        setText( "" );
                        setBackground( Color.green );
                   else
                        setIcon( null );
                        setText((value == null) ? "" : value.toString());
                        setBackground( Color.yellow );
                   return this;
         public static void main(String[] args)
              TableHeader frame = new TableHeader();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • Print PDF - Add image to page header

    Using APEX 3.2.1.00
    Oracle 11g
    FOP printing support
    I need to include a logo on my PDF reports. I know I can put text on the heading of the report but how do I add a logo or image to the report header?
    Thank you in advance!

    In the page header section of the Print Setup, can I just reference a loaded work space item. Something like: #WORKSPACE_IMAGES#Shield1inch.JPG
    If so, what is the syntax to it. I know I can reference application items like &APEX_USER.
    Thank you
    --rolf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to add image in ejb web service

    Hello Community,
    I am writing web service to create a PDF file using itext API. In PDF file i want to add an image.
    Can someone please tell that , how can i add image(jpeg, png , etc.) to an ejb web service?
    Thanks in advance
    Regards,
    Dishant Chawla

    Hi,
    Please check the below code which i used to add image to the header using iText . Similarly you can add image directly to the document also as a element.
    Adding image as Header:
    httpServletRequest = request.getServletRequest();
    domainURL=httpServletRequest.getScheme()+"://"+httpServletRequest.getServerName();
    imgLogo=domainURL+request.getWebResourcePath()+"/images/XXXX.jpg";
    image =Image.getInstance(imgLogo);
    image.scalePercent(22);// As per you need
    chunk = new Chunk(image, 0, -20);
    HeaderFooter header_pdf = new HeaderFooter(new Phrase(chunk), false); // here i have added image as header
    header_pdf.disableBorderSide(0);
    header_pdf.setAlignment(Element.ALIGN_CENTER);
    header_pdf.setBorder(0);
    document.setHeader(header_pdf);
    (or)
    Adding Image a Element:
    httpServletRequest = request.getServletRequest();
    domainURL=httpServletRequest.getScheme()+"://"+httpServletRequest.getServerName();
    imgLogo=domainURL+request.getWebResourcePath()+"/images/XXXX.jpg";
    image =Image.getInstance(imgLogo);
    image.scalePercent(22);
    document.add(image);
    Java IText: Image | tutorials.jenkov.com
    Regards,
    Srinivasan V

  • How to add an image in the header? Pages 5.0

    I don't believe I have to use Microsoft Word! I can't, no way, add an image in the header. This is unbelievable!
    **** time I updated to Mavericks!
    Please, does anyone know the solution?
    I'm losing a great deal in my company.

    Do you still have Pages 4.3 installed. If so, use that.

  • Error message when I try to add an image to the header

    I receive the following error message when I try to add an image to the header:
    Acrobat.com encountered an unexpected error.
    I have tried to add .jpg and .gif without success.
    Thanks,
    MDawn

    Hi,
    We typically see this when an organizations IT department is blocking the upload of images.  Are you working on this at work?  If so, can you try adding the image outside your companies network?
    Thanks,
    Todd

  • Add image to header

    Is there any way to add an image to a header section so that it can repeat on each page?

    I'm able to add the image to the header box when I mark the image as inline, but I can't seem to have it on the same line. Maybe I need to add another column to the box like the footer has with the page numbers??? I'm new to Pages so I will just keep playing with it. Thanks!

  • How can i add an image into the header

    When printing a webpage i would like to ad an image into the header? Is this possible?

    Thanks. The triangle was buried in the image. If you hadn’t told me where to look, I would never have found it!
    Michelle
    Michelle Lancto
    Jewish Endowment Foundation
    a division of the Jewish Federation of Western Massachusetts
    Phone: 413-732-9994                Fax: 413-737-4348
    <mailto:[email protected]> [email protected]
    <http://www.jefwesternmass.org/> www.jefwesternmass.org 
    <http://www.jewishwesternmass.org/> www.jewishwesternmass.org
    JEF_Logos_1101_JFWM for email LOW RES
    Confidentiality Notice
    The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

  • How to print Group Header on page break in a subreport - CR XI

    Post Author: rickcf
    CA Forum: General
    I have a subreport that has 3 groups with only one group that has a heading.  When the report prints and a subreport group is split between two pages (on a page break) I would like the group heading to also print again at the top of the page- even with the word "continued..." also.  Right now only the main report page header prints.  How can I do this since there is no page header in a subreport?
    Thanks
    Rick

    Post Author: rickcf
    CA Forum: General
    Is there any way to test during detail processing time to see if a page break is occuring?  If so I could print out a fake header on the detail line, suppressing it only if the page breaks.  That is the only thing I can come up with to solve the issue.
    I am surprised the is not an option to reprint the group header on a page break.  That seems like a needed option and that is the standard in Foxpro reporting - there is a checkbox option to cover this scenario.
    A coworker did find a workaround to add a psudo page header to a subreport so if I can add that and put my group info in there it will also work.  I have not looked at the code yet though.
    I have another issue I am working on so this one might take a while to get back to.
    Rick

  • Repeat Group Header On Each Page with Underlay Following Sections

    How to overcome the following problem?
    1. I am using Crystal report 13.0.5.891
    2. I have designed the report with Group Header as [Underlay following section]
    3. I have checked the group to repeat on each page
    4. Number of lines in the group header may vary
    5. Number of lines in details may also vary
    My objective is to print the separator line placed in group footer, after the
    header lines or after the detail lines which one is taking the maximum lines.
    This is not happening, and I am getting the following output, which is not meeting my requirement
    Where the "LINE IN GROUP FOOTER" should appear after "Group 1 Header Line 6" in the second page
    as the report ends there, but in the output, the line is coming just after the end of detail record.
    like following
    As a result of this, the next record of the group is overlapping with the first record and creating a mesh
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 1 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                 Detail Record 1 Line 1
    Group 1 Header Line 2                 Detail Record 1 Line 2
    Group 1 Header Line 3                 ----------------------------------------------------------------------------------
    Group 1 Header Line 4                 Detail Record 2 Line 1
    Group 1 Header Line 5                 Detail Record 2 Line 2
    Group 1 Header Line 6                 Detail Record 2 Line 3
                                                      Detail Record 2 Line 4
                                                      Detail Record 2 Line 5
    ======================LINE IN GROUP FOOTER========================
    PAGE BREAK
    ------------------------------------------------------------------------------------------------------------------------------------ PAGE 2 OF 2
    Column Heading 1                       Column Heading 2                      Column Heading 3
    Group 1 Header Line 1                    Detail Record 3 Line 1
    Group 1 Header Line 2                    Detail Record 3 Line 2
    Group 1 Header Line 3                    Detail Record 3 Line 3
    Group 1 Header Line 4                    Detail Record 3 Line 4
    ======================LINE IN GROUP FOOTER========================
    Group 1 Header Line 5
    Group 1 Header Line 6
    Thanks in advance.

    Thanks for you response.
    I have updated the crystal report to 13.0.13.1597.
    Still I am getting the same issue. I am generating the report in PortableDocFormat and exporting the byte array to download from the web browser. The application is developed in ASP.NET 2012 .net version 4.5.
    I am also uploading 2 images of the final pdf that I am getting, for your opinion.
    The report appeared in the first image is ok, where the first group has 2 child records and the second group has 1 child, but whenever I am changing the mapping in the database, where the first group has 1 child and second group has 2 child, my report is not working. as it is clear from the second image
    Also after installing the new version of CR, my existing codes are not working, and giving the following exception in the line where ExportToStream is written.
    Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.
    I have modified the existing code to overcome this exception.

  • Unable to remove the redundant group header from the bottom of page

    Hi,
    In one of my projects in I am facing a problem.
    I need to display the details of all available products of the company. While displaying the details, I need to group the products based on some criteria (like type of product, release date) and the grouping is upto 4 level grouping. Grouping criteria can se said as, I need to firstly group all the products based on the type, then on the Release Date and then on two of the client specific values on the Product.
    Along with this, the view of product details is a thumbnail view (Image on top with all details below that line after line) due to which I need to display multiple (5) products in one row.
    The problem which I am facing is:
    The most important criterion for the customer is that there should not be any wastage of space.
    Secondly, they also donu2019t want to see partial data like only the header data in one page and the Product related Data (Image and Info) on the next page.
    In my case, when first page has insufficient space for the next grouped products, it simply displays the group header on the first page. On the second page, it again displays the group header along with the data.
    For reference, images are available at:
    Image1: http://farm4.static.flickr.com/3454/3224626688_aa3cfb8236_m.jpg
    Image2: http://farm4.static.flickr.com/3373/3224626782_0501cf566f_m.jpg
    My requirement is to remove the redundant group header from the first page as it does not make sense without having any data below it.
    I have tried the following options:
    1. I tried to apply setting "Keep Group Together" on the group and "Repeat Group Header On Each Page". But when I apply this, when my second group has more than 5 products (two rows of data) and space on first page can accommodate only 1 row of data, it moves the data on to the second page instead of keeping the 1st row on first page and 2nd on second page. This solution is not acceptable to the customer as it wastes space.
    2. If I remove setting "Keep Group Together" on all the groups, but keep the "Repeat Group Header On Each Page" and remove the "Keep Object Together" in the details section, I can save space. But this is not acceptable to the user as it leaves dangling headers (Orphaned Header Information).
    Need some pointers to overcome this issue as it is very critical for me.
    Thanks in advance,
    Vibhav Agrawal

    Thanks Raghavendra for your reply.
    These solutions provided on the link are not useful for me because of the peculiar layout of my report.
    In my report I am supposed to show details of multiple items (upto 5/6) in a single row.
    All solutions suggest about adding additional header (below group header) and use the formula to use that header to put the data for initial first object and details section for the subsequent objects.
    But, since i need to display multiple items in same row...and data cannot be set as 'format with multiple columns' in the header, hence this solution does not work for me
    Thanks,
    Vibhav Agrawal

  • Add Image in ABAP Report

    Hi All,
    I want add image in ABAP Report.
    Please let me know how it can be done?
    Regards,
    Jagdish More

    Hi Jagdish,
    to upload the image follow these steps.
    1. Upload image in web repository.
    Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
    2.     Click on Execute.
    3.     Click on Create and give the obj.name and description and click on import.
    once the image gets uploaded.in your program do the following
    1.     Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
    2.     Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
    data container type ref to cl_gui_custom_container.
    data picture type ref to cl_gui_picture.
    data url(256).
    3.     Now create the object Container and Picture.
    create object container
           exporting container_name = 'CONTAINER'.//name of the custom control
        create object picture
           exporting  parent = container
           exceptions error = 1.
    4.     Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
      data query_table like w3query occurs 1 with header line.
      data html_table like w3html occurs 1.
      data return_code like  w3param-ret_code.
      data content_type like  w3param-cont_type.
      data content_length like  w3param-cont_len.
      data pic_data like w3mime occurs 0.
      data pic_size type i.
    5.     Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
      refresh query_table.
      query_table-name = '_OBJECT_ID'.
      query_table-value = 'ZLOGO.GIF'."name of logo
      append query_table.
    6.     Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
    call function 'WWW_GET_MIME_OBJECT'
        tables
          query_string        = query_table
          html                = html_table
          mime                = pic_data
        changing
          return_code         = return_code
          content_type        = content_type
          content_length      = content_length
        exceptions
          object_not_found    = 1
          parameter_not_found = 2
          others              = 3.
      if sy-subrc = 0.
        pic_size = content_length.
      endif.
      call function 'DP_CREATE_URL'
        exporting
          type     = 'image'
          subtype  = cndp_sap_tab_unknown
          size     = pic_size
          lifetime = cndp_lifetime_transaction
        tables
          data     = pic_data
        changing
          url      = url
        exceptions
          others   = 1.
    7.     Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
    call method picture->load_picture_from_url
    exporting
    url = url.
    Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
    I have already done this program and uploaded the image...
    this will surely help you
    Thanks and regards,
    Tanmaya

  • Add image to SharePoint Survey for multiple questions??

    Hi,
    How can i show a particular picture for group of questions in sharepoint 2010 survey? From following link i was able to add image for one question. so what i need to do if i want to add more questions with the same image?
    http://robdevereaux.wordpress.com/2013/08/09/how-to-add-pictures-to-a-survey/
    Thanks

    If you want to add images to multiple questions using the code at that link do something like:
    elements[e].innerHTML = elements[e].innerHTML
    .replace('CAR_IMAGE','<img src="/PATHTO/IMAGE/CAR.jpg"></img>')
    .replace('BOAT_IMAGE','<img src="/PATHTO/IMAGE/BOAT.jpg"></img>')
    .replace('PLANE_IMAGE','<img src="/PATHTO/IMAGE/PLANE.jpg"></img>');
    Also, if you would like to add a picture, text or formatting to every survey page in a survey with page breaks you will typically need to edit both the NewForm.aspx and EditForm.aspx pages using SharePoint Designer or by adding a Content Editor Web
    Part to both pages.
    Here's some of the other things like this I have done with surveys:
    http://techtrainingnotes.blogspot.com/2013/02/add-content-editor-web-part-cewp-to.html
    http://techtrainingnotes.blogspot.com/2010/07/sharepoint-add-instructions-and-color.html
    (and there's a chapter on surveys in my customization book.)
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

Maybe you are looking for

  • How to reinstall Pages as free after restoring

    I purchased an iPad Mini in December 2013 and could install the iworks applications for free. Today, my ipad mini got stuck and therefore I needed to restore it via itunes on my laptop. Everything is back fine. However I cannot see iworks under Purch

  • Transfer files MacBook Pro 2,1 to MacBook Pro 2013 model

    Am waiting to purchase new MacBook Pro 15 inch and want to transfer files from my old MacBook Pro 2,1. What is the step by step order to do this, or should I have an Apple rep do it at the Genius Bar?

  • PSE 8, No audio when creating a slide show

    I am unable to create a slide show with audio.  All other functions in the slide show function properly but unable to get the audio portion to play.  Receive error message "Unable to add audio file, the selected file cannot be played because your sys

  • How to install wireless tool kit on linux

    i try to install wtk as said here :http://www.jg.inf.ethz.ch/wiki/Mobile/Instructions01 at last step while extracting files from the source ,an error occurs:: Extracting the installation files... ./j2me_wireless_toolkit-2_2-linux-i386.bin: line 362:

  • Good way to start

    Hi all, I am a new java programmer to web services. I am reading a book on it, but the code and the software used by it is a bit old. Could anyone tell me where to start learning web services? Any help and direction will be appreciated. Ta, /md.