Inserting image(logo) in jframe

hi..i'm trying to insert a image(logo) in my jframe.
the following is my code :
ImageIcon icon = new ImageIcon("c:\\java\\nm_logo-medium.jpeg");
          JLabel image = new JLabel(icon,JLabel.CENTER);
          image.setBounds(10, 10, 20, 20);
          getContentPane().add(image);
          p1.add(image);
how come my image does not appear??

getContentPane().add(image);
p1.add(image);your adding the image 2 times, to 2 different containers, add the image to one of the container & ensure that the container is added to the frame & is visible.
hope this helps u.
regards,
Afroze.

Similar Messages

  • Inserting image in a jframe

    is it possible to insert an image into a jframe?
    as far as i noe, i can insert a jlabel, and etc. but how about an image?
    if it is possible, can someone please teach me how to do it and post me the codes.
    Thank you.

    You could use g.drawImage, but the simplest solution would be to add the image to a JLabel and add the JLabel to the JFrame.
    JLabel myLabel = new JLabel(new ImageIcon("yourimage.gif"));
    getContentPane().add(myLabel);

  • Insert Image/Logo in ALV List

    Hi everyone,
    I'm trying to insert a photo as a logo in ALV report. I've figured out that in SAP, we have 2 function to generate an ALV report: REUSE_ALV_GRID_DISPLAY and REUSE_ALV_LIST_DISPLAY.
       REUSE_ALV_GRID_DISPLAY can support display options better than REUSE_ALV_LIST_DISPLAY, thus we can use REUSE_ALV_GRID_DISPLAY to display company's logo. It's ok when we display the report on computer screen, but the problem is that when we print the ALV report, it always converts ALV to the form of LIST_DISPLAY, instead of GRID_DISPLAY. Thus, the logo is not printed!!!
    Are there an solution that help me have the logo printed along with the report?.
    Thank you and regards,
    Long

    Hello,
    I am afraid that printing logos via ALV is not possible, since the output stream
    sent to the printer is pure text.
    Regards,
    David

  • Inserting Image/Logo

    Hi
    How do I insert a image in to top right of the report in test stand (opposite to STATION ID, SERIAL NUMBER ect..). See attached word file for exact location.
    OR
    Top of the Report?
    Attachments:
    Test_stand_Logo.doc ‏69 KB

    Hi,
    Try this example.
    In the ModifyReportHeader. In the Expression step, I use a Find() to get a start index after the string "Sttion ID:"
    Then I use the SearchAndReplace() to change "\n" for the string contained in Locals.AddToHeader, but I only do this once. Hence the value 1 after the False parameter.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    Computer10.seq ‏46 KB

  • Problem Displaying Images in a JFrame

    I am writing a program that displays images on a JFrame window. I have been reading the other postings about this topic however I have not been able to make my code work. I am hoping there is some obvious solution that I am not noticing. Please help, I am very confused!
    public class WelcomeWindow {
    private JLabel label;
    private ImageIcon logo;
    public WelcomeWindow() {
    label = new JLabel();
    logo = new ImageIcon("/images/logo.gif");
    label.setIcon(logo);
    this.getContentPane().add(label);

    Instead of a JLabel, have you tried to use a JButton containing the Icon?
    Also (but I think you've done it already), you could do that :
    File iconFile = new File("/images/logo.gif");
    if (!iconFile.isFile()) {
    System.out.println("Not a file");
    That way you'll be certain that the path given is correct.
    Hope this helps.

  • How to insert a logo in sap script?

    How to insert a logo in sap script?

    Steps to insert a logo,
    I
    1. First save the file as BMP
    2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
    make it Zoom as 100% and save as *.TIFF
    3. Open SE38 and execute program RSTXLDMC
    4. Give your TIFF file path name
    5. Select Bcol (for Color)
    6. TEXT ID will be ZHEX-MACRO-*.
    7. Inplace of * write your own logo name (ZCOMPANYLOGO)
    8. Execute the program
    9. Now Goto SE71 create your ZFORM
    10. Create logo window
    11. Goto text element of logo window
    II
    1. Goto SE71 Change the mode to GRAPHICAL
    2. Choose the Graph Tabstrips
    3. Now type in some name for the LOGO WINDOW
    4. Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP
    5. The code will be written automatically. You just need to drag and drop wherever you want
    the graphics to be.
    III
    1 ) create a bmp file in local system
    2 )RSTXLDMC FM to upload image in tiff format.
    Also check these links...
    Logo in SAP SCRIPT
    Re: Uploading a (Image) Logo in your Sap Script
    Need Urgent Help for Logo Uploading the Sap Script
    sap script  logo
    http://www.sap-img.com/ts001.htm
    Regards,
    Sakthi Sri.

  • Inserting image in WAD

    Hi gurus
            I have the company logo file in .JPG format  in my desktop ,I want to add it in my WAD .Can anybody please tell me the procedure to do it.
       I right clicked - insert images- a window came---showing  the path of the file to upload .. but im not able to choose my desk top file...
    Is any way to do
    Please help me
    Thanks gurus
    Pradeep

    Hi Pradeep,
    Go to SE80 -> Mime Reporsitory-> BW->Customer->Images.
    Rt. Click and then click on import MIME object.
    Specify your file name.
    Now you can use this file using insert option in WAD.
    Hope it helps.
    Thanks.
    Uday.

  • Help with inserting image! it's not showing..

    Hi. I'm a very beginner, and really struggling with basics. Please can someone help me?!
    All I'm trying to do is insert a logo to the bottom of the page (or whereever really!) I've inserted the file onto the page which shows fine in dreamweaver, but it doesn't seem to 'put' and when I check page online it just shows as the image name.
    You're prob saying 'duhhh' in your head right now! but I am used to photoshop and illustrator, I'm finding dreamweaver so complicated!
    You can see what i mean on my about page - www.sarahray.co.uk/about.htm (at the bottom underneath the writing it says AOI logo. Thats what I'm trying to put.)
    Any help MUCH appreciated! xx

    Hi
    The file path is pointing to your hard drive not to the location on your server/site -
    <p class="style3"><img src="file:///Macintosh HD/Users/sarahray/Downloads/AOIMembersLog
    OI_Logo_Member_black.jpg" width="280" height="108" alt="AOI logo" longdesc="http://www.theaoi.com" /></p>
    PZ

  • Inserting images to mark text boundaries

    Ive added text to a JTextPane from a file.
    and by mouse click ive inserted character
    to mark the boundaries of the text.
    instead of character ive to do with images
    for marking the segment boundaries.
    please suggest me some method for inserting
    images in TextPane for marking boundaries

    Sorry Andre..Still im not getting what you are saying.. im trying to do like this..Could u pls suggest me where i went wrong..Im inserting the icon directly to textpane..rather than to label nd inserting label to textpane bcos label with image cant be retained when mouse is clicked over several times in textpane....
    import java.awt.Cursor;
    import java.awt.Image;
    import java.awt.Point;
    import java.awt.Toolkit;
    import java.io.*;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import ncst.pgdst.*;
    import java.awt.Color;
    import javax.swing.ImageIcon;
    import javax.swing.text.*;
    import com.sun.org.apache.xerces.internal.impl.io.UTF8Reader;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.StringTokenizer;
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.geom.Ellipse2D;
    import java.awt.geom.Line2D;
    import javax.swing.text.DefaultStyledDocument;
    public class EditFormGui  extends javax.swing.JFrame{
        private javax.swing.JMenu fileMenu;
        private javax.swing.JMenuBar jMenuBar1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JLabel labelModes;
        private javax.swing.JPanel leftPanel;
        private javax.swing.JMenuItem loadRST;
        private javax.swing.JButton paraSegment;
        private javax.swing.JMenuItem quit;
        private javax.swing.JMenuItem save;
        private javax.swing.JButton saveSegmentMode;
        private javax.swing.JButton editSegment;
        private javax.swing.JButton showStructure;
        private javax.swing.JButton showText;
        private javax.swing.JMenu structureMenu;
        private javax.swing.JTextPane textPane;
        private javax.swing.JPanel textPanel;
        private boolean segmentFlag = false,debug=true;
        private UserText userText=new UserText();
        private JPanel structureframe=new JPanel();
        private javax.swing.JTabbedPane jTabbedPane;
        private java.util.Vector pNodesVector = new java.util.Vector();
        private javax.swing.JComboBox relationList;
        private javax.swing.JFrame relationChooserFrame = new javax.swing.JFrame();
        private javax.swing.JScrollPane relationScrollPane = new javax.swing.JScrollPane();
        private JLabel label_image;
        ImageIcon icon;
        Cursor c;
        String[] store;
        int posX_icon,posY_icon;
        Point iconPos;
        Vector iconPositions;
        public EditFormGui() {
            initComponents();
        public void initComponents()
            jTabbedPane = new javax.swing.JTabbedPane();
            textPanel = new javax.swing.JPanel();
            iconPositions=new Vector();
            saveSegmentMode = new javax.swing.JButton();
            editSegment=new javax.swing.JButton();
            showText = new javax.swing.JButton();
            showStructure = new javax.swing.JButton();
            labelModes = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            textPane = new javax.swing.JTextPane();
            textPane.setEditable(false);
             icon = new ImageIcon("F:/images/division.jpg");
             label_image = new JLabel(icon);
            jMenuBar1 = new javax.swing.JMenuBar();
            fileMenu = new javax.swing.JMenu();
            loadRST = new javax.swing.JMenuItem();
            save = new javax.swing.JMenuItem();
            quit = new javax.swing.JMenuItem();
            structureMenu = new javax.swing.JMenu();
          Toolkit tk = Toolkit.getDefaultToolkit();
          Image image =tk.getImage("F:/images/del.jpg");
          c= tk.createCustomCursor(image , new Point(0,0), "F:/images/del.jpg");
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            saveSegmentMode.setText("Save Segment");
            saveSegmentMode.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(java.awt.event.ActionEvent evt) {
               saveSegmentModeActionPerformed(evt);
            org.jdesktop.layout.GroupLayout textPanelLayout = new org.jdesktop.layout.GroupLayout(textPanel);
            textPanel.setLayout(textPanelLayout);
            textPanelLayout.setHorizontalGroup(
                textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(textPanelLayout.createSequentialGroup()
                  .addContainerGap()
                    .add(textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 337, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(51,51,51)
                                .add(saveSegmentMode)
                                .addContainerGap(36, Short.MAX_VALUE)                               
           textPanelLayout.setVerticalGroup(
                textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(textPanelLayout.createSequentialGroup()           
                .add(textPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(textPanelLayout.createSequentialGroup()
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 211, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(49, 49, 49)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
                        .add(textPanelLayout.createSequentialGroup()
                            .addContainerGap(43, Short.MAX_VALUE)
                            .add(saveSegmentMode)))
                    .addContainerGap(43, Short.MAX_VALUE))        
            showText.setText("Text");
            labelModes.setText("Modes: ");
            showStructure.setText("Structure");
            jTabbedPane.add(textPanel);
            jTabbedPane.setTitleAt(0,"Text");
            showStructure.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    showStructureActionPerformed(evt);
            textPane.addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    textPaneKeyTyped(evt);
            textPane.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    textPaneMouseClicked(evt);
                   public void mouseEntered(java.awt.event.MouseEvent evt) {
                    textPaneMouseEntered(evt);
                    public void mouseExited(java.awt.event.MouseEvent evt) {
                    textPaneMouseExited(evt); 
            jScrollPane1.setViewportView(textPane);
            fileMenu.setText("File");
            loadRST.setText("Load RST file");
            loadRST.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    loadRSTActionPerformed(evt);
            fileMenu.add(loadRST);
            save.setText("Save RST");
            save.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    saveActionPerformed(evt);
            fileMenu.add(save);
            quit.setText("Quit");
            quit.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    quitActionPerformed(evt);
            fileMenu.add(quit);
            jMenuBar1.add(fileMenu);
            structureMenu.setText("Structure");
            jMenuBar1.add(structureMenu);
            setJMenuBar(jMenuBar1);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
                    getContentPane().setLayout(layout);
                    layout.setHorizontalGroup(
                        layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(layout.createSequentialGroup()
                                    .add(26, 26, 26)
                                .add(layout.createSequentialGroup()
                                    .addContainerGap()
                                    .add(jTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addContainerGap())
                    layout.setVerticalGroup(
                        layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .addContainerGap()
                            .add(23, 23, 23)
                            .add(jTabbedPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            textPane.setText("This seems to be an interesting exercise. I will surely learn swing now.");
            userText = new UserText(textPane.getText());
            pack();
            validate();
        private void saveSegmentModeActionPerformed(java.awt.event.ActionEvent evt) {                                               
            String textWithPipes= new String(textPane.getText());
            System.out.println("Text with pipes"+textWithPipes);
            userText.setUserText(textWithPipes);
            showStructure();
        private void showStructureActionPerformed(java.awt.event.ActionEvent evt) {
            showStructure();
        public void showStructure()
                 int count=0;
               int totcount=iconPositions.size();
               java.util.Iterator iter = iconPositions.iterator();
              store=new String[totcount];
              try
               String usertxt=userText.getTextWithSegment();
                      char[] usrtxt_chararr=usertxt.toCharArray();
                      System.out.println("Character array Usertextlength"+usrtxt_chararr.length);
                      int pt;
                      pt=0;
              while (iter.hasNext()) {
                          String obj=iter.next().toString();
                          int itervar=Integer.parseInt(obj);
              String subst=usertxt.substring(pt,itervar);   
              pt=itervar+1;
                store[count]=subst;
                 count++;
               catch(Exception e) {}
                   for(int i=0;i<store.length;i++)
                        System.out.println("Store Array Elements"+store);
    structureframe=new Rstmain.gui.ModifyS(store);
    structureframe.setVisible(true);
    jTabbedPane.add(structureframe); //Adding Structure frame
    jTabbedPane.setTitleAt(1,"Structure");
    validate();
    private void textPaneKeyTyped(java.awt.event.KeyEvent evt) {                                 
    if (segmentFlag){
    textPane.setEditable(false);
    private void textPaneMouseClicked(java.awt.event.MouseEvent evt) {                                     
    textPane.setEditable(true);
    int caretpos=textPane.getCaretPosition();
    System.out.println("Caret inserting positions"+caretpos);
    iconPositions.add(caretpos);
    // textPane.insertComponent(label_image);
    textPane.insertIcon(icon);
    textPane.setEditable(false);
    private void textPaneMouseEntered(java.awt.event.MouseEvent evt) {                                     
    private void textPaneMouseExited(java.awt.event.MouseEvent evt) {                                     
    setCursor(null);
    private void loadRSTActionPerformed(java.awt.event.ActionEvent evt) {                                       
    File file;
    SimpleInput sin;
    javax.swing.JFileChooser fd;
    fd = new javax.swing.JFileChooser(new File("."));
    fd.setDialogTitle("Open File...");
    int action = fd.showOpenDialog(this);
    if (action != javax.swing.JFileChooser.APPROVE_OPTION) {
    return;
    file = fd.getSelectedFile();
    try {
    sin = new SimpleInput(file);
    StringBuffer line = new StringBuffer("");
    textPane.setText("");
    while (!sin.eof()) {
    line.append(sin.readLine());
    textPane.setText(line.toString());
    textPane.setEditable(false);
    userText = new UserText(line.toString());
    catch (Exception e) {
    javax.swing.JOptionPane.showMessageDialog(this,
    "Sorry, some error occurred:\n" + e.getMessage());
    private void saveActionPerformed(java.awt.event.ActionEvent evt) {                                    
    File file;
    javax.swing.JFileChooser userFile;
    userFile = new javax.swing.JFileChooser(".");
    userFile.setDialogTitle("Save Text As...");
    int action = userFile.showSaveDialog(this);
    if (action != javax.swing.JFileChooser.APPROVE_OPTION) {
    return;
    file = userFile.getSelectedFile();
    if (file.exists()) {
    action = javax.swing.JOptionPane.showConfirmDialog(this,
    "Replace existing file?");
    if (action != javax.swing.JOptionPane.YES_OPTION)
    return;
    try {
    PrintWriter out = new PrintWriter(new FileWriter(file));
    String contents = textPane.getText();
    out.print(contents);
    if (out.checkError())
    throw new java.io.IOException("Error while writing to file.");
    out.close();
    catch (java.io.IOException e) {
    javax.swing.JOptionPane.showMessageDialog(this,
    "Sorry, an error has occurred:\n" + e.getMessage());
    private void quitActionPerformed(java.awt.event.ActionEvent evt) {                                    
    System.exit(0);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    System.out.println("Inside run");
    new EditFormGui().setVisible(true);
    And this is the UserText classimport com.sun.org.apache.bcel.internal.classfile.JavaClass;
    public class UserText{
    int countpipe;
    String userText="";
    java.util.Vector segmentinfo = new java.util.Vector();
    public UserText(String input) {
    userText = input;
    public UserText(){}
    public int getNumberOfSegments()
    return segmentinfo.size();
    public void addSegment(int endIndex){
    int i = 0;
    segmentinfo.add(endIndex);
    public void setUserText(String textWithPipes)
    int indexOfPiping, j=0 ;
    StringBuffer temp = new StringBuffer(textWithPipes);
    segmentinfo.add(j);
    for (int i = 0; i < textWithPipes.length();i++)
    j = textWithPipes.indexOf('|',j);
    segmentinfo.add(j);
    for (int k = 0; k < textWithPipes.length();k++)
    if(textWithPipes.charAt(k)=='|')
    countpipe++;
    userText = temp.toString();
    public String getTextWithSegment(){
    return userText;
    public String getTextWithoutSegment(){
    java.util.StringTokenizer st = new java.util.StringTokenizer(userText,"|");
    StringBuffer temp = new StringBuffer();
    while(st.hasMoreTokens())
    temp.append(st.nextToken());
    return temp.toString();
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

  • DW CS5 -wrong path shown in code after using'Insert/Image'.

    Normal site management as follows:
    Site Name is set up, eg. - abcd.
    Local Folder is set as root - c:/abcd
    Logo image is in c:/abcd/images
    Using ‘Insert/ Image’ Dreamweaver enters the correct image in the correct div, but the source code reads:
    <div id="logo"><img src="../../../../abcd/images/logo.jpg" width="248" height="78" alt="abcd" /></div>
    instead of:     <div id="logo"><img src="/images/logo.jpg" alt="abcd" /></div>
    So the path for the image seems to be defaulting incorrectly and I can see the url in the ‘select image source’ window is automatically showing a longer path: ../../../../abcd/images/
    Ideas tried so far: 
    Replaced the url manually to the local path (works fine), but it defaults again next time to the longer path.
    Tried recreating the site cache and FAQ corrupt cache fix.
    Removed the site and set it all up again.
    Manually change the path in the code and DW no longer finds the image.
    I’m a newbie who has only created a handful of sites so any ideas are very much appreciated – thanks, Shelly J

    Hi Murray,
    Thanks very much for the reply - as a first time forum user it is great to see there are friendly people out there.
    Site name abcd and Local Site Folder showed  C:\abcd\  as per normal (not using root relative) and in advanced settings links are relative to document, not site root, but you gave me a great lead and the problem seems to be resolved now, thanks. With my workflow I manually transfer the completed files to another drive (rather than the DW remote function) where a developer then adds value and ftp's them up and it seems that there was some glitch between the server and my PC. I had already tried resetting my PC earlier, but he has reset his end now and my DW is no longer confused. So thanks again. (perhaps simply hardware but I suspect the 'include' that was added to my last site's code - who knows ha ha..) Cheers, Shelly.   

  • Dynamic image(logo) in reports 6i

    Hi,
    I want to insert an image (logo of my company) in all my reports, from a location for example d:\abc.gif, so that if i replace the image from a new one the report show the new image (logo),
    I tried file --> import --> image already but it is static and if there is any change in logo i need to change in all my reports,
    should i save the image in a table and show it , but how , please tell,
    Note ( Report Builder 6i
    Database 9i)
    Regards

    I got the solution and writing it below for other guys,
    •     Create a table with a column type BLOB or long raw in database
    •     Save the picture in it by making a form based on the table in previous step.
    •     Write the following code in when image pressed trigger
    DECLARE
    V_FILE_NAME VARCHAR2(40);
    BEGIN
    V_FILE_NAME := GET_FILE_NAME(File_Filter=> 'JPG Files (*.JPG)|*.JPG|');
    READ_IMAGE_FILE(V_FILE_NAME,'JPG', 'block_name.image_item');
    END;
    •     In reports, create SQL Query to read that table, and assign the BLOB, Long Raw field in to the report.

  • Dreamweaver CS3 Insert Image

    I'm trying to insert an image onto my page. I typically
    receive a prompt saying:
    "You won't see the element unless View > Visual Aids >
    Invisible Elements is checks, and the preference setting for this
    element is on"
    It puts the following text on a new balnk page without a
    prompt:
    <!-- Copyright 2000, 2001, 2002, 2003 Macromedia, Inc. All
    rights reserved. -->
    <title>
    <MMString:LoadString id="insertbar/image" />
    </title>
    I'm really lost. The Visual Aids is grayed out, however the
    Invisible Elements is checked.

    Bad url.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "cavemanlawyer15" <[email protected]> wrote
    in message
    news:g2moo6$28i$[email protected]..
    > I used Dreamweaver CS3's Insert | Image Objects |
    Navigation Bar feature
    to put
    > a nav bar in a site. On the Products page (using IE 7)
    the nav looks
    great
    > (apologies for the spaces in the URL):
    >
    >
    http://www.clicksh arpma
    rketing.com/beta/brum/products.html
    >
    > But click to Company or Contact and the logo at the top
    right gets
    clipped --
    > any idea what is happening?
    >
    > Thanks very much.
    >

  • Error in inserting images into table

    Hi All,
    I am trying to insert images into a table.
    Followed these steps:
    CREATE TABLE XX_DEMO_IMG_TBL
    file_id      NUMBER(5),
    file_name      VARCHAR2(30),
    file_data      BLOB
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE XX_DEMO_IMG_TBL
    FIELDS TERMINATED BY ','
    file_id INTEGER(5),
    file_name FILLER CHAR(30),
    file_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    1,c:\1.txt
    used sqlldr cmd
    Got the following error:
    *ecord 1: Rejected - Error on table XX_DEMO_IMG_TBL.
    ORA-01460: unimplemented or unreasonable conversion requested*
    I am using SQLPlus: Release 10.2.0.3.0 -*
    Can any one please guide where am i going wrong ?
    Thanks,
    Saritha

    Thanks for your time.
    I got a solution for this, I modified my control file like this..
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE SCOTT.XX_DEMO_IMG_TBL
    FIELDS TERMINATED BY ','
    file_id ,
    file_name ,
    file_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    1,c:\Users\SariRavi\Desktop\logo.gif
    and it worked.
    Thanks,
    Saritha

  • Images / Logos on OD Plus Worksheets

    OD Desktop allows users to insert bitmaps, such as company logos, into the Title area of a worksheet (and to provide a user-specific default via a registry setting).
    Not only does Plus not have the ability to insert an image, it can't even display any that were already added to the worksheet in Desktop.
    Here is Oracle's official word on this...
    "Currently this feature is available in Desktop only, and not implemented yet in PLUS, so when saving a bitmap in Desktop it will not appear in PLUS. There is an enhancement request Bug 3996567 for this issue. (BITMAP IMAGES LOGO IN PLUS/VIEWER). This feature is approved for future release by Discoverer product management but at the time of writing this document (12/17/08) there is no a fix date."
    Oracle will try to tell you that some of this functionality does exist, but all they are referring to is the connection page, not what actually appears on worksheets.
    IF THIS IS IMPORTANT TO YOU , LET ORACLE KNOW BY SUBMITTING A SR TO ADD YOUR ORGANIZATION TO THE LIST OF CLIENTS NEEDING  3996567.
    Thanks...
    Rob.
    Edited by: rrosenstein on Jan 8, 2009 10:14 AM

    Rob.
    It's been like that for years and I guess I / we got used to it.
    As you mentioned, a logo per se, is available in the 'framework' of Plus but not in the title area.

  • Adding an image (logo) to webi report

    Seeking if possible to add an image (logo.jpg) to a webi report, as how to achieve this.  thanks !!!!

    Hi Barry,
    The image inserted must be in either Graphics Interchange Format (GIF) or Joint Photographic Experts Group (JPEG) format.
    GIF format supports 256 colors and is useful if a logo or icon is to be inserted in to the document. It allows for background transparency so that the underlying color of the web page can show through. This is useful when inserting an image in a cell that contains data.
    JPEG supports 16 million colors. It is best suited for photographs and complex graphics. JPEG images are static whereas GIF images can be animated.
    Image files are often located on a secured web server on a corporate network. To insert an image in a report, link a selected area of the report to an image file on the web server either by filename or by URL and filename.
    To solve the above issue follow the below steps:
    To link to the images by filename, type the filename in to the cell (for example, <INSTALL DIR>\Images). WebIntelligence automatically adds boimg:// before the filename. This links to the file on the BusinessObjects server (for example: boimg://image.gif).
    Usie the URL and the filename to insert the image when the image files are located on a separate web server. The entire URL and filename is entered in to the cell (for example, http://www.internal.businesscompany.com/images/company_logo.jpg).
    The image"s size is defined when it is created. The size can not be modified using WebIntelligence.
    Hope this helps.
    Regards,
    Deepti Bajpai

Maybe you are looking for

  • How to load a CSF file in indesign cs3 via scripting?

    Hi all How can I load a csf file into indesign from a path?. Once loaded, it is not remaining in dropdown list. Could anyone suggest on this? Thanks Thamil

  • Weird problem how to delete a file in the cloud

    Hello there, I'm now a proud member of the Adobe Creative Cloud. Once signed in everything looks normal and I can upload a file simply by dragging and droppping. Now the problem: i'm not able to DELETE a file; there is no trash icon like in the onlin

  • USB external hard drive not recognized by computer - using WRTSL54GS

    Hi,  I have my router (WRTSL54GS) set up and seems to be working ok, but the computer does not recognize it in my network.  It only recognizes it as a wireless connection.  Also, the USB hard drive I have attached to the router is not recognized anyw

  • Using footnotes as a hyperlink to supporting pdf documents

    How do I create footnotes that are hyperlinked to source pdf files in combined binder?  I recently completed a 50 page report with 65 footnotes for a consulting firm.  The consulting firm took my pdf report and used the footnotes as a hyperlink to th

  • Adding Letterbox to odd sized file

    I have a movie that is 704 x 304 px I need to add a letterbox so that FCP will read it. The file is also 23.978fps which FCP is not accpeting, no matter if I change the sequence settings. How do I add a letterbox that will preserver the 704x304 video