Save map as image and print it out

Hello everybody,
I have some problems with saving map as image and also printing it out. I am using mapview.getMapAsXML("GIF_URL") to get XML request but I don't really know how to send this request to OMServer and retrieve response as image!
About map printing. I am following Oracle example to print map ("http://starbucks.infotech.com.tr/mapviewer/fsmc/tutorial/samples/mapPrint.html"), but get such error: "Request string is too long for Oracle Maps' non-AJAX remoting.".
Could you please help with map saving and printing?
Thank you in advance.

I've solved this problem using following way:
1. Get the map XML request:
h6. xml_request = mapview.getMapAsXML("GIF_URL");
2. Send this request to the OMServer using AJAX:
h6. ...
h6. nocache = Math.random();
h6. var params = 'xml_request=' + xml_request + '&nocache = ' + nocache;
h6. http_request.open ( 'post', 'http://solaris:7001/mapviewer/omserver', true );
h6. ...
3. Process the response:
h6. ...
h6. response = http_request.responseText;
h6. url = response.substring ( response.indexOf ( '<map_content url="' )+18 );
h6. url = url.substring ( 0, url.indexOf ( '"' ) );
h6. ...
So, you have url of you image in GIF format. Now you can print it out or save to disk...
Maybe it is not correct way but it works fine!

Similar Messages

  • I scanned an old image using my Epson NX515 printer, used GIMP to make some minor repairs on the image and printed it out.  I noticed there were a number of evenly spaced thin blue lines across the image, approximately six of them.

    I scanned an old image using my Epson NX515 printer, used GIMP to make some minor repairs on the image and printed it out.  I noticed there were a number of evenly spaced thin blue lines across the image, approximately six of them. I opened & printed the image on my PC using PAINT.NET.  No lines appeared. I sent the image to my daughter. She printed it and found no lines. I printed the image using Seahorse on my Mac and the lines still appeared. I used basically the same print settings on Mac and PC.

    maahes wrote:
    did so now, only now I'm getting a slightly different error: could not find udevd no such file or directory. I checked both grub.cfg's and my mkinitcpio.conf and there's no listing for udevd ....which I've never heard of, so I assumed it was a typo?
    For clarification: udev is in the mkinitcpio.
    I'm not sure whether I yet have a good intuition for how you have your machine set up, but I suspect you need to include a cryptdevice flag to the kernel in your grub config. The file isn't found because the kernel doesn't know your root directory needs decrypting first.
    My setup is an LVM over LUKS over LVM sandwich. To boot into my system, the grub.cfg contains the line:
    linux /vmlinuz-linux root=/dev/mapper/cryptvg-root cryptdevice=/dev/mapper/vg-crypt:root rootfstype=ext4 pcie_aspm=force acpi_osi=Linux acpi_backlight=vendor i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 ro
    Now, most of those flags don't have anything to do with your problem, but note the cryptdevice. It tells the kernel it's dealing with an encrypted filesystem sitting in a logical volume called crypt on a volume group called vg. The bit after the colon tells the kernel to associate this encrypted filesystem with /dev/mapper/root.
    As for how to fix your system, I'm afraid I still feel a bit fuzzy about how your LVM and encrypted layers relate to each other, whether you have LVM over LUKS, or LUKS over LVM, or something else. Was there a particular how-to that you followed?

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • How do you get a list of your contacts nick names and their phone numbers on line and print them out?

    How do you get a list of your contacts nick names and their phone numbers on line and print them out?  I've been trying to figure out how to get the list to print out but I can't even find a complete list to view on Verizon's web site.  Does anyone know how to do this?

    Log into your online account. In the, 'I want to', box type, Manage Contacts.
    Place your cursor over any contact, a pop screen will appear with the option to print your contacts

  • Hit "Save as Adobe pdf" and pic came out on top of text box.

    Win 7.0 64 bit, acrobat 11.0.10 word 2010, created a .docx file woth a pic and a tex box on top of pic.- hit Save as Adobe pdf and pic came out on top of text box.

    Hi wmckb,
    Please try using PDF Maker option in word and check if the same problem arises.
    Hope to hear from you.
    Regards,
    Anubha

  • Can you backup phone contacts and print them out?

    Are you able to view contacts and print them out?

    settings - icloud - contacts - on
    then log into icloud.com - contacts

  • I want to make address labels and print them out. Does anybody know of a word processing program for Mac that would do this?

    I want to make address labels and print them out. Does anybody know of a word processing program for Mac to accomplish this?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • WhenI print from firefox on a Mac everything comes out 50% too light, if I save the image and print from the desktop it looks fine. No problem either printing from FF with Win7. How do I fix FF on the Mac?

    My iMac runs bootcamp, so I have both OSX and win7 available. I run the latest Firefox on both as my primary browser. The printing looks like the ink is running low, but when the same image is printed from other desktop apps the printing looks fine.

    Hi, Jordan -
    Welcome to Apple's Discussions.
    If the original drive in the newer Mac is a Western Digital, its jumpers may be set to Single, which WD drives often use when there is only one device on the bus. When a second drive is added, the jumpers on the original must be reset to Master.
    OS 9's utility is named Drive Setup - you should find it in the Utilities folder on the hard drive. Run that. Select the added hard drive in the list, then select Mount Volume from the Functions menu.
    You can also check with that utility to see if the OS believes the drive has been set to automount at boot. Again, select the drive in the list. Then select Volume Settings from the Functions menu - there's a checkbox in that screen to set automount (for freshly initialized drives, that's turned on by default).
    Also, try running Disk First Aid (should also be in the Utilities folder). Let it have a look at the second drive, and repair anything it can.
    Apple System Profiler should report the format of all drives it sees. Is the format of the drive from the old Mac stated as Mac OS Standard, or as Mac OS Extended?

  • Reduce image size and print it out?

    I scanned an image (coloring on a postcard). This size is too big to fit into a 'album' picture in MS Picture It! All I want to do is REDUCE the image and save it so that it will fit into the computer photo album I'm creating.
    I've tried Image/Resize/Image Size and changed the sizing, but it still comes out the exact same size as the original. What am I doing wrong?

    > I want to REDUCE the image, not enlarge it.
    I understood that - what makes you think I didn't?
    > It's 948x645 pixels. I just want the image about an inch (respectively) smaller
    You can't think in terms of inches for screen images. You have to work in pixels and the actual size will depend upon the screen resolution on the machine being used to view the image.
    I'd reduce the pixel size by about 80 to get the effect that you want. Use Image/Resize/Image Size and make sure that you have "Resample" checked.

  • Embedded Images Print Preview and Print Blacked Out - Adobe 9 Pro

    Having an issue where images embedded into the file will view properly, but once you print or print preview the images are blacked out. This is regardless of the printer we use.
    Is there a setting we are missing?

    Thanks for posing this question.
    Although fonts have embedding restrictions baked into the font such as preview and print, the real restrictions are to be found in a font's EULA (End User License Agreement) which may have other restrictions including payment of royalties on copies of PDF files or any other asset in which the fonts are embedded.
    In the case of any and all fonts sourced from Adobe, not only do you have at least preview and print embedding privileges, but there are no restrictions or royalties required for distribution of files (i.e., PDF, EPS, eBooks, etc.) in which the Adobe fonts are embedded.
    In other words, you are “good to go” with Adobe fonts. On the other hand, make no assumption about fonts sourced from other font foundries. Many do not provide such liberal terms!
              - Dov

  • Custom stamp images and print time

    I've created a PDF of a page of sheet music output with fonts from a music notation program. From that I'm making a "sample" for my customers to view. I've added a text watermark. Up to this point everything is working well and the print spooling happens quickly.
    However, I also want to add an image that looks like the torn corner of a page. To accomplish this, part of the image needs to be transparent so I've created both TIF (196k) and GIF (12k) versions of it in PhotoShop. Initially I tried to also add the image as a watermark but neither of these file formats are permitted with that function. Now I have created a custom stamp with each of these two images and saved files with both of them. They're about the same size ~180k.
    My system (details below) is not exactly a rocket by today's standards but I do quite a bit of graphic work with it so I know what to expect in this regard. Sending the file with the TIF to print takes about 2:15 before printing begins. With the GIF it takes about 10 minutes. (I nodded off...)
    I'm certainly open to other ideas about how to accomplish this. I could certainly save the file as a JPG, but because I need to keep the resolution quite high for both the text and music, the file sizes get quite a bit bigger.
    Thanks - JAY
    G4 MDD 1.25ghz MP
    OS 10.4.11
    2gb RAM
    CS3 Design Premium
    Acrobat Pro 8.1.2

    I forgot to mention that those times reflect printing from within Acrobat. When I printed the TIF version from within Preview it took less than 30 seconds to start, but the transparent portion of the image did not appear completely transparent.

  • WebI - Save to my Computer and Print doesn't work - screen flashes quickly

    I have some very basic questions about WebIntelligence. I can't believe that I am stumbling
    on something simple - here it is:
    1. I created a report and want to save it on my computer - I click Save to my Computer and
    select the "As Excel" option. It just flashes - if I choose the PDF option its the same. What
    could be wrong?
    2. I want to print my report. I create a report, hit the print button, comes up with the
    Make Printable Version and I click OK again it flashes and doesn't want to print.
    I have Adobe Reader 9 installed.
    Any clues what I may be missing?
    Thanks very much!
    Lynn Fernando

    Hi Lynn,
    Acrobat reader version 9.0 is not tested with BOXIR2 might be because of thid you are getting this issue.
    With BO XIR2 SP3 and SP4 below Acrobat Reader vrsions are supported
    Reader
    u2022 Acrobat Reader 5.0
    u2022 Acrobat Reader 7.0
    WithBO XIR 3.1
    Reader
    u2022
    Acrobat Reader 7.x
    u2022
    Acrobat Reader 8.1.2
    u2022
    Acrobat Reader 9.0 are supported.
    1] Either you downgrade your Acrobat Reader version from 9.0 to 7.0 if you want to be on BO XIR2.
    2] Or of you can upgrade your BO version to BO 3.1
    after implementing either of one you will be able to print the reoprts.
    Hope this helps.
    Regards,
    Deepti Bajpai

  • Loading data and printing it out in graphic mode(is it possible)

    if you are in graphic mode and you have a nice back ground and loader and stuff is it possible to load a pile and post it on screen? i want to know and if u can post a little code
    i also use netbeam so if its possible it would be easy
    here is a working loaded but just black and white
    //Readlogin.java
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    public class Readlogin
         public static void main(String[] args)
              FileOutputStream out;
              PrintStream p = null;
              boolean quit = false;
              String fileName = "", fileLine = "", date = "", classes = "";
              Scanner file = null;
              Scanner s = new Scanner(System.in);
              double exitword, sample;
              while (!quit)
                   System.out.print ("Enter a filename: ");
                   fileName = s.nextLine();
                   if (fileName.equals("quit"))
                   System.exit(0);
                   else
              try
                   file = new Scanner(new File(fileName));
              catch (FileNotFoundException e)
                   System.out.println (fileName + " not found!");
                   //System.exit(-1);
              while (file.hasNext())
                   fileLine = file.nextLine();
                   System.out.println(fileLine);
    }ty
    Edited by: kingryanj on Feb 28, 2008 5:37 PM

    first this is not home work, my school website is www.mrdig.net, im in imc3 or whatever class and im done work for the year this is for my own stuff
    i ment this is my reader file //logtest.java
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    public class logtest
         public static void main(String[] args)
              FileOutputStream out;
              PrintStream p = null;
              boolean quit = false;
              String fileName = "", fileLine = "", date = "", classes = "";
              Scanner file = null;
              Scanner s = new Scanner(System.in);
              double exitword, sample;
              System.out.print ("Enter the date: ");
              date = s.nextLine();
              while (!quit)
                   System.out.print ("Enter a filename: ");
                   fileName = s.nextLine();
                   if (fileName.equals("quit"))
                   System.exit(0);
                   else
              try
                   out = new FileOutputStream(fileName, true);
                   p = new PrintStream( out );
              catch (Exception e)
                   System.out.println ("Error writing to file");
                   System.exit(-1);
              System.out.print ("What classes are you doing? : ");
              classes = s.nextLine();
              p.print( date + " ");
              p.print(classes + " ");
              p.println ( "" );
              p.close();
    }i want to know if you can load a file and print the data on screen in graphic mode, because i just want this to look more flashy, i have the actualy log in working with graphics (ty netbean) and i want to know if netbean can help with this

  • Return Vector from function and print it out.

    Hey guys, I am not sure I'm doing this right. I have a class that currently has one function "getVector". This takes a string that is input and turns into a Vector array and returns the array as Vector.
    Then in the second class I simply want to print out the Vector. I get no errors, but it doesn't print anything.
    If anyone can see what I am doing wrong I'd appreciate the help.
    Thanks!
    Here is the first class that has the getVector function
    import java.util.*;
    public class GetArrays {
        public Vector getVector (String s){
            Vector theVector = new Vector();
            StringTokenizer token=new StringTokenizer(s," ");
                while (token.hasMoreTokens()){
                    String tk=token.nextToken();// get each token
                    theVector.add(tk);
                 }// end while
            return theVector;
        }//end getVector
    }//end classAnd here is the class with main that tries to print it out.
    import java.util.*;
    public class ShowArrays {
        public static void main(String[] args) {
            ShowArrays showArrays = new ShowArrays();
            Vector theArray = new Vector();
            GetArrays getArrays = new GetArrays();
            theArray = getArrays.getVector("testing this function");
            ListIterator iterator = theArray.listIterator(theArray.size());
            while(iterator.hasNext()){
                System.out.println(iterator.next()+"\n");
              }// end while
        }//end main
    }//end class

    Remove the parameter to your call to. Adding this parameter starts the iterator at the element theArray.size(), which is the end of the array.
    ListIterator iterator = theArray.listIterator();

  • I need guidance putting an invoice together and printing it out...

    My next big task is pulling informaton from my DB, organizing it into an invoice template and then printing it out.
    I know the DB stuff but what do I need to use in order to organize that information into a pre-designed invoice and then printing it out with a single press of a button?

    nise_k,
    My program handles customer accounts and all of the transactions that I do with them. I need to get my program to print out invoices with certain information taken from the DB and organize it into an easy to read and professional looking invoice.
    I have allready figured out how to use the Print Class so I'm pretty sure I have the information I need to create these invoices.
    The "Single press of a button" comment was referring to just pressing a "Print Invoices" button located somewhere in my program that would print all of the invoices instead of going to a customer account, clicking "Print Invoice", preview the invoice, and then print it before going on to the next customer.
    I think the only way you could help me at this point would be if you know about a class that will take a .txt or .doc file, replace words like %CUSTOMERID% with the correct information from the DB and then printing that document without changing the layout of the invoice.

Maybe you are looking for