Export JComponent content to an image

Hello,
I need to export a swing component graphical representation to a JPG or GIF image.
Somebody know how?
Best regards,
H?ctor

I do.
Oh you want me to tell you.
There's 2 ways to get the image:
1) Find the screen location of the component and use java.awt.Robot to get a screen capture.
2) Create a new BufferedImage the size of the component and call paintAll() on the component, passing it the BufferedImage's Graphics object.
Fortunately for you, I have the code for both just laying around... The advantage to using the Robot class, however, it's usually the only consistent way to get a shot of a frame which includes the window titlebar.
     public static BufferedImage grab(Component comp) {
          Point location = comp.getLocation();
          SwingUtilities.convertPointToScreen(location, comp);
          return grabImpl(comp, new Rectangle(location, comp.getSize()));
     private static BufferedImage grabImpl(Component comp, Rectangle bounds) {
          BufferedImage bi = null;
          // try using java.awt.Robot first, as this will allow it to get the
          // frame border (titlebar, etc.) for frames or dialogs.  The only
          // downside is that this grabs the window from the OS, so if there's
          // any overlapping windows or dialogs (from any application), that
          // will be included. 
          try {
               if(robot == null) {
                    robot = new Robot();
               bi = robot.createScreenCapture(bounds);
          } catch(java.awt.AWTException awte) {
               bi = grabByPaint(comp);
          return bi;
     public static BufferedImage grabByPaint(Component comp) {
          Dimension size = comp.getSize();
          BufferedImage bi = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_ARGB);
          Graphics2D g2d = bi.createGraphics();
          comp.paintAll(g2d);
          g2d.dispose();
          return bi;
     }As for saving that image, the javax.imageio package is where you want to look.

Similar Messages

  • Apply formatting in a JEditorPane and export the content in HTML.

    Hi,
    I'm writing, a program to allow the user to enter a formated text and even add images in a JEditorPane.
    Here is a simple sample of the code:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;              //for layout managers and more
    import java.awt.event.*;        //for action events
    import java.net.URL;
    import java.io.IOException;
    public class EditorPane extends JPanel{
        private String newline = "\n";
        private JPanel buttonPanel;
        private JPanel textPanePanel;
        private JEditorPane myEditorPane;
        private JButton boldButton;
        private JButton colorButton;
        private JButton imgButton;
        private JButton saveButton;
         public EditorPane() {
            createGUI();
        private void createGUI() {
            buttonPanel = new JPanel();
            boldButton = new JButton("Bold");
            boldButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    boldButtonActionPerformed(evt);
            colorButton = new JButton("Color");
            colorButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    colorButtonActionPerformed(evt);
            imgButton = new JButton("Image");
            imgButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    imgButtonActionPerformed(evt);
            saveButton = new JButton("Save");
            saveButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    saveButtonActionPerformed(evt);
            buttonPanel.setLayout(new GridLayout(1, 4));
            buttonPanel.add(boldButton);
            buttonPanel.add(colorButton);
            buttonPanel.add(imgButton);
            buttonPanel.add(saveButton);
            textPanePanel = new JPanel();
            textPanePanel.setLayout(new BorderLayout());       
            myEditorPane = this.createEditorPane();
            JScrollPane paneScrollPane = new JScrollPane(myEditorPane);
            textPanePanel.add(paneScrollPane, BorderLayout.CENTER);
            this.setLayout(new BorderLayout());
            this.add(buttonPanel, BorderLayout.NORTH);
            this.add(textPanePanel, BorderLayout.CENTER);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                     JFrame frame = new JFrame("TextSamplerDemo");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   EditorPane newContentPane = new EditorPane();
                    //newContentPane.setOpaque(true); //content panes must be opaque
                    frame.setContentPane(newContentPane);
                    frame.pack();
                    frame.setSize(300,300);
                    frame.setVisible(true);
    private JEditorPane createEditorPane() {
            JEditorPane editorPane = new JEditorPane();
            editorPane.setEditable(true);
            java.net.URL helpURL = TextSamplerDemo.class.getResource(
                                            "simpleHTMLPage.html");
            if (helpURL != null) {
                try {
                    editorPane.setPage(helpURL);
                } catch (IOException e) {
                    System.err.println("Attempted to read a bad URL: " + helpURL);
            } else {
                System.err.println("Couldn't find file: simpleHTMLPage.html");
            return editorPane;
        private void boldButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("boldButtonNextActionPerformed");
        //myEditorPane
            // TODO add your handling code here:
        private void colorButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("colorButtonActionPerformed");
            // TODO add your handling code here:
        private void imgButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("imgButtonActionPerformed");
            // TODO add your handling code here:
        private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {
        System.out.println("saveButtonActionPerformed");
        String newStr = new String("this is the new String");
        //newStr.setFont(new java.awt.Font("Tahoma", 0, 14));
        this.myEditorPane.replaceSelection("sdfsdfsd");
            // TODO add your handling code here:
    }and the HTML Code of simpleHTMLPage.html is
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <p>Simple text</p>
    <p><strong>Bold text</strong></p>
    <p><em>Italic text</em></p>
    <p align="center">Center text</p>
    <p><font color="#000099"><strong>Color text</strong></font></p>
    <p>image here : <img src="images/Pig.gif" width="121" height="129"></p>
    <p> </p>
    </body>
    </html>By pressing the Save button I can change the selected text.
    I don�t know the way to get and apply the format (size, color �) to only the selected text and display the selected image in real time in the EditorPane. Like if you press the Bold button, the selected text font will be change to bold.
    I would like to get or save the HTML code of the content of the EditorPane by pressing the Save button, How to make it?
    I can apply the formatting on the selected text in a JTextPane, but I don't know the way to save or export the content in HTML. By doing that it could fix my problem too.
    So any help to do that will be much appreciated.
    Thanks.

    Hi,
    Tks for your answer. That one I can do it. I would like to display the selected text in bold instead of adding the tag in the JEditorPane. If I get you right, you get the hole content of the JEditorPane and save it. How did you get it ? And before saving that in the database, did you fing the keysWord to convert the HTML tag in the corresponding entities ?
    Bellow you have a sample of code to make the formatting in the JTextPane.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    import javax.swing.text.Highlighter;
    import javax.swing.event.*;
    import java.util.*;
    import javax.swing.text.*;
    import javax.swing.text.BadLocationException;
    public class MonJTextPane extends JFrame implements CaretListener, ActionListener
              *     Attributs :
         private JTextPane monTextPane;
         private JLabel monLabel;
         private JButton monBouton;
         private StyleAide style; // class qui defini les effets de style de l'editeur
              *     Constructeur :
         public MonJTextPane ()
         {     super ("Aide");
              // construction du composant Texte
              this.style = new StyleAide (new StyleContext ());
              this.monTextPane = new JTextPane ();
              this.monTextPane.setDocument (style);
              this.monTextPane.addCaretListener (this);
              // construction de la fenetre :
              this.getContentPane ().setLayout (new BorderLayout ());
              this.setBounds (150,150,600,550);
              this.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              this.monLabel = new JLabel ("Auncune ligne saisie...");
              this.monBouton = new JButton ("change de style");
              this.monBouton.addActionListener (this);
              JPanel panel = new JPanel ();
              panel.setLayout (new GridLayout (1,2));
              panel.add (monLabel);
              panel.add (monBouton);
              this.getContentPane ().add (panel, BorderLayout.SOUTH);
              this.getContentPane ().add (this.monTextPane, BorderLayout.CENTER);
              this.setVisible (true);
              *     Methodes :
         private int getCurrentLigne ()
         {     return ( this.style.getNumLigne (monTextPane.getCaretPosition ())+1 );
         public int getCurrentColonne ()
         {     return ( this.style.getNumColonne (monTextPane.getCaretPosition ())+1 );
              *     Methodes CaretListener:
         // ecoute les deplacements du curseur d'insertion
         public void caretUpdate(CaretEvent e)
         {     int debut = java.lang.Math.min (e.getDot (), e.getMark ());
              int fin   = java.lang.Math.max (e.getDot (), e.getMark ());
              this.monLabel.setText ("Ligne numero : "+ this.getCurrentLigne ()+" Colonne : "+this.getCurrentColonne ()+" (debut : "+debut+", fin : "+fin+")");
              *     Methodes ActionListener:
         public void actionPerformed (ActionEvent e)
         {     int start     = monTextPane.getSelectionStart();
              int end          = monTextPane.getSelectionEnd();
              int debut     = java.lang.Math.min (start, end);
              int fin          = java.lang.Math.max (start, end);
              int longueur= fin - debut;
              this.style.changeStyleSurligne (debut, longueur);
         // lance le tout ....
         public static void main (String argv [])
         {     new MonJTextPane ();
    // la Classe DefaultStyledDocument correspond a la classe utilise comme Model pour les
    // composant Texte evolue comme : JTextPane ou JEditorPane
    // en derivant de cette derniere nous pouvons donc redefinir les methodes d'insertion afin de personnalise
    // le style d'ecriture en fonction du texte et creer une methode permettant de modifier le style utilise pour
    // une partie de texte deja ecrite.
    class StyleAide extends DefaultStyledDocument
              *     Constructeur :
         public StyleAide (StyleContext styles)
         {     super (styles);
              initStyle (styles);
              *     Methodes :
         // redefini pour choisir l'effet de style a utiliser
         public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
         {     try
              {     // si le texte insere est egale a HELP le texte s'ecrit avec le style "styleOp"
                   if ( str.equals ("HELP") )
                   {     super.insertString (offs, str, getStyle ("styleOp"));
                   else // sinon le texte est ecrit avec le style "styleNormal"
                   {     super.insertString (offs, str, getStyle ("styleNormal"));
              catch (BadLocationException e)
              {     System.out.println ("Tuuuttt erreur Insere");
         // modifie le style d'ecriture d'un texte deja ecrit compris
         public void changeStyleSurligne (int positionDepart, int longueur)
         {     setCharacterAttributes (positionDepart, longueur, getStyle ("styleKeyWord"), true);
         // le Model d'un composant texte est enregistre sous form d'un arbre
         // cette methode permet de recuperer le noeud root de l'arbre
         private Element getRootElement ()
         {     return this.getDefaultRootElement ();
         // methode permettant d'obtenir la ligne correspondant a un offset donnee
         public int getNumLigne (int offset)
         {     Element eltR = getRootElement ();
              int numLigne = eltR.getElementIndex (offset);
              Element elt  = eltR.getElement (numLigne);
              if ( offset != elt.getEndOffset () )
              {     return numLigne;
              else
              {     if ( numLigne != 0 )
                   {     return numLigne+1;
              return 0;
         public int getNumColonne (int offset)
         {     Element eltR = getRootElement ();
              Element elt = eltR.getElement (eltR.getElementIndex (offset));
              int numColonne = offset-elt.getStartOffset ();
              return numColonne;
         // Defini les differents styles
         private static void initStyle (StyleContext styles)
         {     // definition du style pour le texte normal (brute)
              javax.swing.text.Style defaut = styles.getStyle (StyleContext.DEFAULT_STYLE);
              javax.swing.text.Style styleNormal = styles.addStyle("styleNormal", defaut);
              StyleConstants.setFontFamily (styleNormal, "Courier");
              StyleConstants.setFontSize (styleNormal, 11);
              StyleConstants.setForeground(styleNormal, Color.black);
              javax.swing.text.Style tmp = styles.addStyle("styleKeyWord", styleNormal);
              // Ajout de la couleur blue et du style gras pour les mots cle
              StyleConstants.setForeground(tmp, Color.blue);
              StyleConstants.setBold(tmp, true);
              tmp = styles.addStyle("styleOp", styleNormal);
              // Ajout de la couleur rouge pour le style des operateurs
              StyleConstants.setForeground(tmp, Color.red);
    }But it hard for me to convert it in the corresponding HTML document.
    Did you have and idea
    Tkks

  • PDF Export - How do I resample images for 25% print?

    Using OSX 10.6 and CS3 504.
    I've built 6x large format pages at 1885mm x 600mm that will be printed on an HP5500.  Content includes text, images, and objects with fills/strokes etc.  All images have been resampled in Photoshop to produce an effective resolution of around 150dpi for printing at full size.
    My printer is going to do a test print for me, at 25% final size.  He has asked for images to be no less than 100dpi for 100% output.  He has asked for Generic CMYK so I'm using the PDFx1a2001 preset.
    As recommended on here in a previous thread, I've placed each of 6x pages of the 100% PDF (75mb) into a new document and scaled each down to 25%.
    I then export to PDFx1a2001 again, and the resulting PDF is 45mb.
    My question is, how do I give him the most efficient file that will:
    take ages to transfer to him
    not be too large for him to process
    give me good enough quality to see how things look.
    Do I need to change the resample numbers in the PDF export dialog?  Or should this be OK?
    Many thanks.

    You can print the original PDF to a PostScript file at 25% and run it through Distiller if you have it. But I would just export a 100% file with images at 25 ppi and have the printer scale down when printing.

  • File does not exist: /export/home/oracle/orahtml/marvel/images/spacer.gif

    Seeing this error in the apache log:
    File does not exist: /export/home/oracle/orahtml/marvel/images/spacer.gif
    I know there are spacer.gif files under the theme folders but why is it looking for a spacer.gif file in the images folder? Is this a bug?

    Hello,
    Yes I just checked it's a problem with theme 9 there are a couple of places where the theme calls #IMAGE_PREFIX#spacer.gif when it should call #IMAGE_PREFIX#themes/theme_9/spacer.gif
    There are two ways for you to fix this
    1. Copy themes/theme_9/spacer.gif to the top level images directory, I recommend this one because then if someone creates the theme from the repository again it wont' come up agian.
    2. Change all #IMAGE_PREFIX#spacer.gif to #IMAGE_PREFIX#themes/theme_9/spacer.gif in theme 9, if you export the theme you can just us a search and replace the export to do this and then reapply the theme.
    This as been bugged and will get fixed in future version.
    Carl

  • Trying to split large library, I exported a folder of 3000 images to a new library.  The new library was created with these images, but it still remained in the original library.  How can I remove it from the original library while keeping it in the new l

    Splitting a library does not remove the folder I moved from the original library.  I exported a folder of 3000 images from the original library to a new library.  The new libraryb was created alright, but the folder and the 3000 images remain in the original library.  Why? And how do I safely remove them?

    The new libraryb was created alright, but the folder and the 3000 images remain in the original library.  Why? And how do I safely remove them?
    Exporting a library will  create a duplicate of the exported library items. Usually you do this to work on a partial library on another computer and later merge the changed images back. Splitting the library is not the primary purpose of exporting.
    If you want to remove the library items that you exported, select them in the source list of the library inspector and delete them (File > Delete Original Images and all Versions).  Then empty the Aperture Trash, after checking that you did not trash more than you wanted.
    But check, if the backup of your Aperture library is in working condition, and check the exported library carefully, before you do such a massive delete.
    Regards
    Léonie

  • 500 internal server error while Export wedbdynpro content into Excel.

    Hi Experts,
    my requirement is export webdynpro content into excel sheet, so for this what i have did is
    First step:
    ) created an Extneral library DC
    2) imported the JARs to the libraries folder of the External Library DC project
    3) Right-click on each of the JARs imported to the project and added them to the public part.
    Second step:
    1) Createed a new Reuse Web Dynpro DC
    2) Created a new public part, selecting the "Can be packaged into other build results" option
    3) extrcted the full content (folders and class files) to root folder
    4) Imported the folders and files to the src/packages folder
    5)binded the attributes, created 3 methods and writen the code for those methods.
    Third Step:
    1) created one more EXPORT EXCEL DC
    2) ADDED LIB jar dc and Reuse DC IN used dc's
    3) created usedwebdynpo component and binded attributes to Table VIEW and writen the code for exposing table values.
    After this build and deployed i am getting clasnot found error
    so what i have did now is
    Fourth step:
    1)Created "J2EE Library DC"
    2) Refered "External Library DC" into J2EE Library DC.
    3) Deployed "J2EE Library DC"
    4) Refered this one in my Web Dynpro DC by giving Library Reference.
    now when i deploy and run what happend i am getting
    500 Internal Server Error SAP J2EE Engine/7.01 
    Application error occurred during request processing.
    Details:   com.sap.tc.webdynpro.services.sal.core.DispatcherException: Failed to start deployable object sap.com/export_file_excel_7.
    Exception id: [00215E78C4C0006D00000AD9000E00F00004887F642A32FE]
    Any one can tell what could be the problem.

    Thanks for sharing the solution.

  • Exporting a template with multiple images

    Let's assume I want to have a large print made at an outside commecial lab because my printer does not handle the size.
    In the Print Module, is there a way to export a template with multiple images so that it can be sent to an outside lab for printing?
    Or, is this not possible and I would have to design the template in Photoshop and send the file to the lab?
    If Lightroom is not yet capable of this, it certainly seems like a worthwhile feature.

    Thanks for sticking with this thread to help me.
    I am on Windows and I do have PDF capability, the full Adobe Acrobat Professional.
    I have been experimenting with your suggestions and, yes, saving it as a PDF and bringing it into Photoshop is a workaround. The images and Identity plate come into Photoshop as they appear in the template in Lightroom.
    What doesn't appear in Photoshop is the whitespace(margins)around the images. They appear in the PDF, but they don't appear when I open the PDF in Photoshop. Is there a setting I'm overlooking in the PDF settings dialog that will correct this? Or, is this just the way importing a PDF works when it comes to margins? Must I always go to Image/Canvas size to get the canvas I want? Is there a way of not having to do this?

  • When exporting my Indesign Layout with Images, the images disappear ?

    When exporting my indesign layout the images disappear once exporting as a PDF print.
    I have had several information bubbles appear claiming I need to alter my blend space due or colour settings ?
    I have altered the blend space to rgb and still it does not work.
    I have also unlocked all the layers in attempt for this to work.
    My assignment is due in tomorrow and still I cannot get this feature to work
    any help would be great !

    CharlieLDavis1992 wrote:
    When in preview mode they do not appear either.
    If you understood my question and the images also disappear in InDesign when switching the screen to Preview mode, or Overprint Preview, that means they are set to non-printing in some way. Either they are on a layer set to non-printing, or they're set to non-printing on an individual basis in the Attributes panel.
    >I am using the latest OS,
    Not really helpful. OS X? Windows? Probably not relevant, as it turns out, for this problem, but you should be specific.
    >The pdf appears in preview
    Does that mean you are trying to use Mac Preview to view the PDF? If so, it may give you bad results. Mac Preview is not a godd general-purpose PDF viewer and is incapable of rendering complex PDF.
    The first error dialog you show is what you would get when opening a file in ID that has different document color spaces than the default settings in your color settings file. That's not a problem, and to preserve the color appearances you would leave things as they are.
    The second warning dialog indicates you are making an interactive PDF, which is RGB. If you are using CMYK images I don't think you'll avoid color shifts no matter what you do if you have transparency, but I don't do interactive PDF, so I can't give good advice here. If you are using RGB images, by all means your transparency blend space should be set to RGB.
    Can you post a screen shot of the export dialog?

  • How to export an album and keep images in the same order in elements 11 mac

    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos

    Thanks for the tip, Michel
    It worked like a charm…
    cheers Jos
    Op 28 okt. 2013, om 18:49 heeft MichelBParis <[email protected]> het volgende geschreven:
    Re: How to export an album and keep images in the same order in elements 11 mac
    created by MichelBParis in Photoshop Elements - View the full discussion
    JosU a écrit:
    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos
    The order in album is only kept in the organizer database, so the only way not to lose that order is to rename files.
    If you are using the 'export' function, select your album in custom order, select all photos and in the dialog, choose to rename with a common base name.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5794538#5794538
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5794538#5794538
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5794538#5794538. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Exporting Catalog Content in CCM 2.0

    Hello,
    I would like to know if it is possible to export the content of a catalog to Excel.
    In CCM 2.0 it seems to be that one can only export the structure of the catalog.
    Thanks for any answer,
    Aart

    Hi Imthiaz,
    Sorry, out of ignorance I ask you,
    Where can I have a look at this class /CCM/CL_CATALOG_EXPORT and method EXPORT_CATALOG ? What trx are we talking about?
    It is not a report or a function, what is it, executable or not?
    Please give me some more info.
    Thanks in advance
    Aart

  • Exporting grouped shapes as an image

    I have grouped several shapes and text in a single graphic and would like to export into Pages as an image (jpg, gif, whatever). Is this possible? The only way I can figure is to export the entire slide but that is not really the same.

    No, separating the text from the graphic did not help - same result. Basically, the graphic which is a collection of shapes and text, all layered to form a single graphic paste in to Pages as a collection of shapes and text. There is no layering, just a shape, followed by another shape, followed by a text element, followed by another shape - so on.

  • Export KM Content

    Good morning,
    I need export KM Content, I see in other message:
    http://help.sap.com/saphelp_nw04/helpdata/en/35/4cf72bfe18455e892fc53345f4f919/frameset.htm
    But, how I can begin??
    Thanks,
    Mercedes

    Hi Mercedes,
    Portal / KM supports astandard caled the ICE Standard. This allows the export of content and folder structure to other consumers that support ICE .
    The normal process of this would be something like this:
    1) Configure Portal as an ICE Syndicatore and configure an ICE Package in the portal with its schedule.
    2) Configure the target system as a subscriber and link it to the syndicatore. You will see that after the scheduled activity has taken place, then the new documents/files have been transported from the source portal to the target portal.
    Another way is to develop a java component, which exports the repository to a file system and the properties of the documents to an XML file. This will allow the target system ( NON SAP ) to read the xml file and import the contents. But this is more for a one time activity.
    ICE is your best option for scheduled , regular Data Exchange.
    cheers,
    i028982.
    P.S Please award points if this answer helps.

  • Export/import content area

    Hi,
    I'm trying to import/export the content area using the contexp.cmd and the contimp.cmd. When I run the import I receive the error '
    WWUTL_API_SiteTransport.GetImportSites: Import table WWUTL_SBR_TX_SITES$ is empty
    Rolling back transaction'
    The first thing the export does is truncate this table so it is always going to be empty. Any ideas how to get round this??
    I am running version 3.0.7.6.2 on NT 2000
    Thanks

    The import truncates the table to remove any old data that might be left from previous export/ import.
    Following this step, the Oracle Import utility imp is run. One reason why you are getting the error could be due to different versions of the 9iAS client utilities (which are 8.1.7 based in your case) and the database server. If the database server is 8.1.6 then you need to set the ORACLE_HOME to the database home prior to running the import. Once the import is complete you can reset the ORACLE HOME back to the 9iAS Home.

  • Export PDF, JPG or PNG images from the mapviewer

    hi,
    I need to export PDF, JPG or PNG images from the mapviewer (Oracle Map client).
    How Can I do it?
    Any Ideas?
    Thanks.

    What I do with xml after calling getMapAsXML function
    Any example?There is a request page in the mapviever configuration webpages, there you can send it to the server and get the image in return.
    or you can write your own programm to send it to the mapviewer servlet using post and progress the response by yourself. Have a look at the mapviewer documentation pdf, there are some examples on the different possible different xml requests.

  • Export problems multiple movieclips to image sequence

    For our customer we made several flash animations. My output has to be image sequences for Cinemascope format. The export function in Flash for image sequences does not work! All my images are the same frame. This is frame 0 on the timeline. So the embedded movieclips wont playback.
    When exporting a Quicktime movie, some frames are skipped and missing in the output! So the export options in Flash are totally not working for my situation. We bought an application SWF to image but also here are some frames missing in the export. I can not relay on Flash and this application.
    The project is built like this: we made several movieclips and scaled them and put them in position. Then we made one new movieclip with all the earlier made movieclips inside. Then scaled the entire movieclip to the Cinemascope stage size.
    Are we using Flash in a wrong way here?
    Why does the exports functions don't work on my project? (built in movieclips won't play, quicktime mov skips images)
    How can i solve this problem?
    Thanks in advance,
    Greetings Henk

    Ok this is workaround but should in principle do what you want:
    //create an instance of library object
    var mylibrary = fl.getDocumentDOM().library;
    var doc = fl.getDocumentDOM();
    var tl = fl.getDocumentDOM().getTimeline();
    //get items in library in an Array
    itemArray = mylibrary.items;
    totalCount = itemArray.length;
    for(var i=0;i<totalCount;i++){
        myItem = itemArray[i];
        myItemType = myItem.itemType;
        myItemName = myItem.name;
        mylibrary.editItem(myItemName);
        fcNum = tl.layers[0].frameCount;
        for (f=0; f<fcNum;f++){
                tl.setSelectedFrames(f, f)
                framenum = f + 1;
                //select your destination, on MAC use something like file:///Macintosh HD/Users/username/Desktop/
                doc.exportPNG("file:///C|/test/"+myItemName+ "_" + framenum +".png", true, true);
    1: open the fla file you want to convert to a movie and create a backup
    2: Create a new Flash Javascript file and insert the code above, Make sure you have enough hard disk space in your destination folder
    3: Press the play button and Flash will automatically parse through all items frame by frame in your library and save the images as png
    4: Take a break as it might take a long time

Maybe you are looking for

  • How do I setup multiple IP addresses?, How do I setup multiple IP addresses?

    Just bought a new Mac Mini and Lion Server to replace my company's three 15-year-old 8500s.  Ooof.  They were running mail, web and filemaker servers, respectively.  We have AT&T DSL Small Business, and five static IP addresses.  Lion Server claims t

  • Problems to access remote computer since Mountain Lion Update

    Hi all, I'm using Macbooks and Mac OS X since 2007 and I just updated my Macbook end-2011 from Lion to Mountain Lion. Problem is, since the update, I can see my mac mini which is on the same network using Bonjour but I "rarely" can access to it. I me

  • User exit to check vendor tax type in tcode FB60

    Dear All, i need o create an user exit for FB60  check the vendor tax types . Plz advice. regards siva

  • Can I use my ATT iPhone 4S with a French carrier?

    I am moving to France for a year and would really like to be able to use my iPhone 4S while I am there. Currently, my understanding is that I can simply take my iPhone to Orange when I get to France and have an Orange simcard put in my iPhone and the

  • Releasing problem in workflow

    Hi All, I am facing the problem in the releasing of the document in the workflow.. First step i am using the parked document and save as complete, which is working fine. But problem is next step i am using the RELEASE method of the FIPP BO.. but i am