Repainting image does not work

Hi, I have this repaint() problem. I have a timer that calls the moveM1() method which updates the currentX_M1(X position of fly), and then repaints it. However, the fly isnt repainted to its new coordinate even if the currentX_M1 is incrementing.
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.util.*;
public class FlyExterminator extends MIDlet implements CommandListener
     private Display display;                                                            //ref to Display obj
     private Form mainForm;                                                                 //For displaying Instructions
     private Command playCommand = new Command("Play", Command.OK, 1);
     private Command exitCommand = new Command("EXIT", Command.EXIT, 0);
     public Timer MoveSprayShot = new Timer();                                        //Create a timer object to move sprayshot
     public Timer MoveInterval_M1 = new Timer();                                   //Create a timer object to move mosquito
     //public     SprayCanAction SprayMover = new SprayCanAction();                    //Create a move Spray Can object
     public     MosquitoAction mover = new MosquitoAction();                         //Create a move Mosquito object
     public     GameAction moveCaller = new GameAction();
     public boolean allPainted = false;                                                  //Check that all objects painted b4 starting timer
     public boolean isShooting = false;                                                  //Check if sprayshot is fired
     public int currentX_M1 = 45;
     public int deltaX_M1 = 45;
     public int deltaY_M1 = 17;
     public int currentY_M1 = 50;
     public int moveX_M1 = 5;
     public int moveY_M1 = 5;
     public Image MosquitoImg;
     public FlyExterminator()
          //Create Form
          mainForm = new Form("Welcome to Fly Exterminator");
          //Display instructions
          mainForm.append(new StringItem("", "Instruction: \nThe mosquitoes are invading the households. Your mission, as the Fly Exterminator, you are hired to get rid of all the pesky mosquitoes. \n\nPress Left or Right to move the Spraycan appropriately. Press Up to fire!"));
          //Add exit and play command
          mainForm.addCommand(playCommand);
          mainForm.setCommandListener(this);
          mainForm.addCommand(exitCommand);
          mainForm.setCommandListener(this);
     }//end constructor
     public void startApp() throws MIDletStateChangeException
          //Get ref to Display object
          display = Display.getDisplay(this);
          //Display Form
          display.setCurrent(mainForm);
MoveInterval_M1.schedule(mover,0,1000);
//MoveSprayShot.schedule(SprayMover,0,1000);
     }//end startApp()
     public void pauseApp(){}
     public void destroyApp(boolean unconditional)
          mainForm = null;
          playCommand = null;
          exitCommand = null;
          display = null;
     public void commandAction(Command c, Displayable d)
          if(d == mainForm)
               if(c == playCommand)
                    //Set Canvas visible
                    display.setCurrent(new GameAction());
               }//end if
               else if(c == exitCommand)
                    destroyApp(true);
                    notifyDestroyed();
     }//end commandAction
class MosquitoAction extends TimerTask/////////////////////////////////////////////
     public void run()
          //Ensure everything is painted b4 moving mosquito
          if(allPainted)
               moveCaller.moveM1();
               moveCaller.repaint();
               moveCaller.serviceRepaints();
     }//end run()
}//end MosquitoAction()
/*class SprayCanAction extends TimerTask/////////////////////////////////////////////
     public void run()
          System.out.println(isShooting);
          //Ensure everything is painted b4 moving mosquito
          if(allPainted)
               moveCaller.sprayshot();
               //sprayshot();
     }//end run()
}//end MosquitoAction()*/
//______________________________ Canvas Action for the Game ______________________________
     class GameAction extends Canvas
          int topBound = 20;                         //The top bound where mosquito cant fly pass
          int btmBound = 200;                         //The bottom bound where mosquito cant fly pass
          int width = 15 * 16;                    //Define size of screen
          int height = this.getHeight();
          Image SprayCanImg;
          int deltaX, deltaY;                    //define size of Spraycan
          int x, y;                              //define position of Spraycan
          Image SprayShotImg;
          int deltaX_SS, deltaY_SS;          //Size of Spray Shot
          int currentX_SS, currentY_SS;     //Current XY position of Spray Shot
          int moveY_SS = 10;                    //The distance to move Spray Shot (only vertically up)
          public GameAction()
               deltaX = 15;
               deltaY = 35;
               x = 0;
               y = this.getHeight() - deltaY;
               try
                    //Width = 15, Height = 35
                    //Create immutable image from resource file for SprayCan
                    SprayCanImg = Image.createImage ("/spraycan.png");
               catch (Exception e)
                    System.out.println("Error:" + e.getMessage());
               }//end catch
               deltaX_SS = 15;
               deltaY_SS = 14;
               currentX_SS = 100;
               currentY_SS = 300;
               try
                    //Width = 15, Height = 14
                    //Create immutable image from resource file for Spray shot
                    SprayShotImg = Image.createImage ("/spray.png");
               catch (Exception e)
                    System.out.println("Error:" + e.getMessage());
               }//end catch
               try
                    //Width = 45, Height = 17
                    //Create immutable image from resource file for Mosquito1
                    MosquitoImg = Image.createImage ("/mosquito_small.png");
               catch (Exception e)
                    System.out.println("Error:" + e.getMessage());
               }//end catch
               //When everything drawn, can start timer
               allPainted = true;
          }//end GameAction()
          public void paint(Graphics g)
               //Set BG color to GREY
               g.setColor(255, 255, 255);               //This is color for Screen Blocker
               g.fillRect(0, 0, getWidth(), getHeight());
               g.setColor(0, 0, 0);                    //This is color for Text
                // draw the time left string
                 g.drawString("Score: " + currentX_M1, 0, 0, 0);
               //Draw SprayCan &  align to TOP, LEFT
               g.drawImage(SprayCanImg, x, y, g.TOP| g.LEFT);
               //Draw Spray shot
               g.drawImage(SprayShotImg, currentX_SS, currentY_SS, Graphics.TOP| Graphics.LEFT);
               //Draw Mosquito1 &  align to TOP, LEFT
               g.drawImage(MosquitoImg, currentX_M1, currentY_M1, g.TOP| g.LEFT);
          }//end paint()
/*          public void sprayshot()
//System.out.println(sprayCount);
               //Draw sprayshot if there isnt one
               if(isShooting)
                    //Move sprayshot up
                    currentY_SS -= moveY_SS;
                    //Out of Top bound
                    if(currentY_SS <= topBound)
                         //repaint for defined region deltaX by height
                         repaint(currentX_SS, 0, deltaX_SS, -100);
                         isShooting = false;
                    }//end if
                    else //Move spray out of screen
//System.out.println(currentY_SS);
                         repaint(currentX_SS, currentY_SS, deltaX_SS, 2*deltaY_SS);
                    }//end else
          }//end sprayshot()*/
          public void moveM1()
                    //Move Right
                         currentX_M1 += moveX_M1;
                         //Check if object out of right bound
                         if(currentX_M1 >= width)
                              currentX_M1 -= width;
                              repaint(currentX_M1-width, currentY_M1, width, currentY_M1);
                         }//end if
                         //Move Right
                         else
                              //repaint(currentX_M1-moveX_M1, currentY_M1, currentX_M1, currentY_M1);
                              //repaint()
                              repaint();
                              serviceRepaints();
                         }//end else
          }//end moveM1
          public void keyPressed(int keycode)
               //BuildIn method
               switch(getGameAction(keycode))
                    case Canvas.LEFT:
                         x -= deltaX;
                         //Out of Left bound
                         if(x <= 0)
                              x += width;
                              //repaint for defined region deltaX by height
                              repaint(0, y, width, deltaY);
                         }//end if
                         else
                              //repaint for defined region deltaX by 2*deltaY
                              repaint(x, y, 2*deltaX, deltaY);
                         }//end else
                         repaint();
                         break;
                    case Canvas.RIGHT:
                         x += deltaX;
                         //Out of Right bound
                         if(x >= width)
                              x -= width;
                              //repaint for defined region deltaX by height
                              repaint(0, y, width, deltaY);
                         }//end if
                         else
                              //repaint for defined region deltaX by 2*deltaY
                              repaint(x-deltaX, y, 2*deltaX, deltaY);
                         }//end else
repaint();
                         break;
                    //When spray can attack
                    case Canvas.UP:
                         currentX_SS = x;           //Set sprayshot = pos of spraycan
                         currentY_SS = y;
                         isShooting = true;
                    break;
                    default:
               }//end switch
          }//end keyPressed()
     }//end GameAction main
}//end class

If you are talking about the single rollover on that page you linked, it's a bog-standard rollover that will work in every browser.  Can't imagine why you are having problems with it.
By the way, the values for the name and the id attributes must not contain spaces....

Similar Messages

  • Save Panel Image / Screen Image does not work as an Executable

    The Save Panel Image / Screen Image does not work as an Executable.  It looks like there is a conflict with the Path, since the Screen_Image.exe is launched as Screen_Image.vi.  I've tried this function both ways with the path name change Screen_Image.exe AND Screen_Image.vi.

    Any chance you might be able to post some code illustrating what you are talking about?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Dynamic image does not work in the template builder plug-in (Apex-BI Intgr)

    Hi all, I posted this problem in the BI Publisher topic but nobody responded maybe this is because mods thought this is an Apex-BI integration issue.
    If I'm in the wrong place, please do warn me.
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    ...This works obviously
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    ...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    ...This, however, does not work.
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1

    Hi Oeren,
    your steps seem basically to be correct. I have a tutorial how to do this here (in german)
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/pdf-dyn-images/index.html
    when you see the URL corrently as long as you have it as a plain text field, the XML tag and the
    referencing seem to be OK.
    Here are two thought - the issue might be one of these ...
    How did you insert the dummy image into the word document - did you do it via "insert" or
    via "link to file". "Link to File" does not work - you must choose the simple "insert".
    Another one: Does your BI Server have a connection to the internet - is the proxy server correctly set ..?
    Does this help ..?
    Regards
    -Carsten
    Cloud Computing mit APEX umsetzen. Jetzt!
    http://tinyurl.com/apexcloudde
    SQL und PL/SQL: Tipps, Tricks & Best Practice
    http://sql-plsql-de.blogspot.com

  • Shared Components Images Create Image does not work

    I am using oracle XE on Windows XP.
    Uploading an image for an application does not work.
    Home>Application Builder>Application 105>Shared Components>Images>Create Image
    It goes wrong when I try to upload the image:
    - Iexplorer gives an error 404 after pressing the Upload button.
    - Firefox just gives an empty page.
    When I try to refresh the resulting page (do another post) I get the following error:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept.

    Hi Dietmar,
    After setting the language to English (USA) [en-us] it works for +- 50 % of the uploads.
    Below is my tracefile.
    Dump file e:\oraclexe\app\oracle\admin\xe\bdump\xe_s001_2340.trc
    Wed Nov 23 19:03:17 2005
    ORACLE V10.2.0.1.0 - Beta vsnsta=1
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
    Windows XP Version V5.1 Service Pack 2
    CPU : 2 - type 586
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:267M/1014M, Ph+PgF:1431M/2444M, VA:1578M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Windows thread id: 2340, image: ORACLE.EXE (S001)
    ------ cut ------
    *** 2005-11-23 19:50:44.718
    *** ACTION NAME:() 2005-11-23 19:50:44.718
    *** MODULE NAME:() 2005-11-23 19:50:44.718
    *** CLIENT ID:() 2005-11-23 19:50:44.718
    *** SESSION ID:(26.18) 2005-11-23 19:50:44.718
    Embedded PL/SQL Gateway: /htmldb/wwv_flow.accept HTTP-404 ORA-01846: not a valid day of the week
    *** SESSION ID:(27.19) 2005-11-23 19:50:51.937
    Embedded PL/SQL Gateway: /htmldb/wwv_flow.accept HTTP-404 ORA-01846: not a valid day of the week
    *** 2005-11-23 19:50:59.078
    *** SERVICE NAME:(SYS$USERS) 2005-11-23 19:50:59.078
    *** SESSION ID:(27.21) 2005-11-23 19:50:59.078
    Embedded PL/SQL Gateway: Unknown attribute 3
    Embedded PL/SQL Gateway: Unknown attribute 3
    Strange error... there is nothing in my form that is related to dates...
    Kind regards,
    Pieter

  • MDT - Custom Reference Image does not work with Task Sequence, normal Windows 7 Enterprise Iso media works fine.

    Hi,
    Our MDT server is acting strange!
    I have previously had this system running without problem - i could both capture and deploy computers as is and no changes have been made to mdt.
    But my latest capture does not work. When i capture my reference maching in my VM environment it completes without errors and i can import the latest wim file.
    When i deploy the tast sequence, it install the custom Wim image, but it ends up with "login" screen as the administrator i have entered for the capture/deploy sequence, but it goes to stop at this point and applications is not installed.
    If i change the ISO in the task sequence under Install OS step, to a clean Win7 install media then the capture completes and install applications.
    I have also tried to:
    Capture reference without password
    Capture reference without Windows updates
    Customsettings.ini, bootstrap, BDD.log and SMSTS.log to be found here: https://onedrive.live.com/redir?resid=ED5029A20300B814!365&authkey=!AALV1b2ubD0laEE&ithint=folder%2cini
    Hope you will be able to assist,
    Regards,
    Anders

    if you have noticed your smsts.log, there is same error multiple - 
    Executing in non SMS standalone mode. Ignoring send a task execution status message request
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    User did not specify local data drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume A:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume D:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume X:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    Volume Z:\ is not a fixed hard drive TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    TSM root drive = TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    We do not find an available volume to store the local data path
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSNextInstructionPointer=1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a TS execution environment variable _SMSTSNextInstructionPointer=1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSInstructionStackString=0
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a TS execution environment variable _SMSTSInstructionStackString=0
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Save the current environment block TSManager
    1/23/2015 12:50:37 PM 1656 (0x0678)
    pszPath[0] != L'\0', HRESULT=80070057 (c:\qfe\nts_sms_fre\sms\framework\core\ccmcore\path.cpp,58)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Filesystem::Path::Add(sEnvPath, EnvDataFileName, sEnvPath), HRESULT=80070057 (e:\nts_sms_fre\sms\framework\tscore\environmentlib.cpp,639)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to save environment to  (80070057)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    TS::Environment::SharedEnvironment.saveEnvironment(szPath), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,842)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to save the current environment block. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
    The parameter is incorrect. (Error: 80070057; Source: Windows)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    SaveEnvironment(), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,420)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to persist execution state. Error 0x(80070057)
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Failed to save execution state and environment to local hard disk
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Start executing an instruciton. Instruction name: Gather local only. Instruction pointer: 1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSCurrentActionName=Gather local only
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    Set a global environment variable _SMSTSNextInstructionPointer=1
    TSManager 1/23/2015 12:50:37 PM
    1656 (0x0678)
    what about the mass storage driver in your boot image, is it updated?
    Md.Waseem Please remember to click “Mark as Answer” on the post that helps you. Thank you.

  • Rollover image does not work

    Hello,
    I created a rollover image on dreamweaver but it seems it does not work well because it work on some broswer and some not, also in some browser after I click it starts working.  So I do not know what is wrong?
    Here is the link of page:
    http://mersadesign.com/demo/kamran-motiee/
    Can you please tell me what is the problem?
    Thanks,

    If you are talking about the single rollover on that page you linked, it's a bog-standard rollover that will work in every browser.  Can't imagine why you are having problems with it.
    By the way, the values for the name and the id attributes must not contain spaces....

  • DrawString() image does not work

    I have a class, Point, that draws images when I point on the screen.
    But the string never appears. The circle do appear, but not the string. I don�t know what I am doing wrong.
    class Point extends JComponent
         String name;
         int x, y;
         public Point(int x, int y, String name)
              setBounds(x, y, 10, 10);
              this.name = name;
              this.x = x;
              this.y = y;
         protected void paintComponent(Graphics g)
              g.setColor(Color.BLUE);           
              g.fillOval(0,0, getWidth(), getHeight());
              g.drawString(name, x, y);                          // This line does not appear, why?
    }

    Apart from anything else, I recommend you rename your class as java.awt.Point already exists in the standard API.
    The graphics coordinates in paintComponent are relative to the JComponent whereas setBounds uses coordinates relative to the container of the component. So the chances are that your drawString is drawing way outside the (10, 10) bounds of the component.
    Try changing that to drawString (name, 0, 0) AND call g.setColor (Color.RED) (or any color other than the blue of the oval) before drawing the String.protected void paintComponent(Graphics g)
      g.setColor (Color.BLUE);           
      g.fillOval (0, 0, getWidth(), getHeight());
      g.setColor (Color.RED);
      g.drawString (name, 0, 0);
    }luck, db

  • 'Do not import duplicate images' does not work

    For some weird and frustrating reason, the 'Do not import duplicates' checkmark doesnt seem to be functioning. Over the past few weeks, I have ended up importing duplicate and triplicate copies of images even though the checkmark on 'Do not import duplicate images' is checked. I dont know why this is happening.
    My import settings are customized, but then this was done long before i started facing this problem.
    I usually dont delete images till my card is full, and this results in duplicates before everytime I import images from a new shoot, images from the previous shoot also get imported, unless I manually deselect them.
    Any help on this would be appreciated.

    Leonie,
    Yes I rename my files while importing. But I have been doing that for a while now, didnt face this issue earlier. Not sure what you mean by 'Signature'?.
    I upgraded to ML a few days ago, so my sys config is MacOS 10.8 & Aperture is 3.3.2 (I've been facing this issue even before i upgraded to ML, so I dont think its related to ML).
    I always import directly from my camera (i.e. card) and this issue seems to have cropped up somewhere after the release of Aperture 3.3.
    Also, I have sent f/b to Apple on this issue (n vow, they seem to be collecting customer profile data thru this f/b. Look at the number of irrelevant questions they have).
    cheers, Bhaven

  • Moving an image does not work correctly

    I have Photoshop CS4, version 11.0.2, installed on a 64-bit Windows 7 system.  I am attempting to complete an exercise which requires me to move one image on top of another.  I do not recevie an error messge.  The function simply fails.
    All software is up to date.  I have 4 gigs of RAM.  Lots of free disk space.  My video card is an Nvidia GTX 460 (1 gig).
    I have the two images open side by side.  I select the move tool.  I click and attempt to drag one image on top of theother.  Rather than moving on top of the otehr image, the selected image moves behind the other image.  That is, the selected half of the window moves behind the other half of the window.
    The exercise calls for holding down the shift key when I do the move.  If I hold down the shift key, the two images move right or left in tandem.  That is, they simlutaneously slide to the dege of their window and stop.
    It feels like I have something set wrong somewhere.

    Usually when moving layers between images, one would use the move tool
    (click on the image in the document window and drag to the other document)
    and hold the shift key down if you want the layer pin registered (aligned and
    the images are of the same dimensions) and if the images are of different
    dimensions, holding down the shift key centers the new layer.
    Added:
    MTSTUNER
    Message was edited by: MTSTUNER

  • Save as pdf/image does not work. It runs and runs ... Getting no output

    In APEX 4.0 i have several Charts (Version 5.1.3).
    If i try to save them to PDF or to an image file the request runs and runs and don't come back with a result.
    Any ideas?
    Regards
    Stephan

    Hi Hillary,
    i can choose the file name and the destination for the PDF and when i confirm with the save button the page shows "Saving ..." and nothing happens.
    In the target destination i see that there is a file (FlashTmp0.tmp) with ~ 2.49 KB.
    I copied the page with chart to a new one but i have the same problem with it.
    But wait. I opened this FlashTmp0.tmp file and i saw that there is a attempt to access anychart.com which is denied by our firewall.
    Will the PDF be generated by the anychart.com page?
    And what i also established is when i delete some conditions in my SQL query the creation of the pdf works. F.e. in dial chart i have this query which works with pdf if i comment out the last (or more) line(s):
    SELECT COUNT (*) VALUE, 300 MAX, 50 LOW, 300 HIGH
    FROM plm61prod.t_pro_dat
    WHERE typ = 'CAL'
    AND entwk_erpppty >= TO_DATE ('2009-01-01', 'YYYY-MM-DD')
    AND REGEXP_INSTR (
    UPPER (sp_nummer),
    'A') = 0
    AND t_pro_dat.cur_flag = 'y'
    /*AND TO_CHAR (entwk_erpppty, 'YYYY') = TO_CHAR(SYSDATE,'YYYY')*/
    Regards
    Stephan

  • Dynamic image in the template builder plug-in does not work

    Hi all,
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    +...This works obviously+
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    +...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}+
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    +...This, however, does not work.+
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1
    Edited by: oeren on Jun 8, 2011 12:28 AM

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

  • Image display control scrolling does not work properly when zoomed in

    I am using a ROI on an image in the image display control. When zooming into the image to fine-adjust the positioning of the ROI, the image scrolling does not work properly. As far as I understand, the image should scroll automatically when the ROI is leaving the visible area. However, the scrolling behaviour seems to depend on the origin of the Labview panel, not the origin of the image display control, which might require to move the ROI way out of the visible area before the scrolling takes place. In other words: the coordinate system of the image display control is shifted with respect to the true visible image area, depending on where you place it on the front panel. As a consequence, when clicking on a ROI which is in the visible area, but is outside of what Labview thinks is the visible area, it might immediately jump to the left border of the image, making the positioning of the ROI really difficult.
    Has anyone noticed this behaviour, and what would be a reliable solution to avoid this? 
    Dirk

    Hello,
    no, I am not talking about the tools palette. Just place an image control with some image in it on a new VI front panel. Then, use the rectangle from the tools and select a ROI in the image. If you zoom in (using the magnification glass), and then grab the ROI and move it around, the image scroll with the ROI. So far, so good. If you now place the image control elsewhere on the panel, or add new control above it, resize the panel, etc. , this scrolling when moving the ROI will not work correctly if the origin (0,0) of the panel is far away from the image control.
    I have attached a VI for simplicity (although there is hardly any code in it).
    If you make a ROI and try to move it down, you will notice that scrolling starts if you move the mouse out to about 10cms below the image (depens on your screen, of course). After that, if you click on the ROI, the scroll bars and ROI might jump up to the upper end of the image. Imagine how annoying this is if you try to finely adjust the ROI position. 
    I think it is a bug in the implementation of the image display control.
    Thanks,
    Dirk
    Attachments:
    scrolling.vi ‏818 KB

  • After upgrading to Lion Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    After upgrading to Lion, Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    Ouch, if it is indeed damaged, then sadly you need to restore the whole danged huge OS!
    Didn't used to be this way before Lion/10.7.
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

  • I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    I need help with a PDF file that is an image, the "Read Out Loud' option does not work, please help!

    You mean an image such as a scanned document?
    If that is the case, the file doesn't contain any text for Reader Out Loud to read. In order to fix that, you would need an application such as Adobe Acrobat that does Optical Character Recognition to convert the images to actual text.
    You can also try to export the file as a Word document or something else using ExportPDF which I believe offers OCR and is cheaper than Acrobat.

  • Spry Image Slideshow does not work in Explorer

    My spry image slideshow works fine in Safari and Firefox, but does not work in Explorer.
    A small box shows up in IE 8, and absolutely nothing shows up in IE 7.
    www.epaaudio.com
    Any Suggestions?

    How did you get your slideshow to play in Internet Explorer? I'm using the same slideshow on my new website and it plays fine in everything but IE versions. Here's a test page I'm working on... http://4034.sandbox.i3dthemes.net/oceankayakbanzai.html
    I looked at the code for your page and didn't notice anything different on mine. But yours works... Let me know if you have any suggestions. Thanks!

Maybe you are looking for