How to send an image to print

Hello!
I would like to make a button that makes a document open up in MIcrosoft Word or Acrobat Reader, where the user will be able to print it off! Is there a simple way of doing this?
Thank you!

you should use a projector app.  you can't control which user application will open the document but you can use navigateToURL() to open a browser window and a prompt to open the document in the default application.
for more satisfactory results you'll need to use a wrapper program like zinc or mprojector.

Similar Messages

  • HOW TO SEND XML BACK TO PRINT? (See Inside thread for more info)

    Hello Everybody,
    Because there is not a lot of documentation on  if_fp and if_fp_pdf_object
    I found out that i can retrive my PDF from the ADS with the following code:
        data:
        lo_fp                 TYPE REF TO if_fp ,
        lo_pdfobj             TYPE REF TO if_fp_pdf_object,
    pdf_xstring           TYPE xstring,
        xml_data              TYPE xstring,
        lv_xml_data_string    TYPE string.
                Get FP reference
      lo_fp = cl_fp=>get_reference( ).
                Create PDF Object using destination 'ADS' (<-- this is how it is defined in SM59)
      lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
                set document
      lo_pdfobj->set_document(
      EXPORTING
        pdfdata = fp_formoutput-pdf ). " fp_formoutput-pdf is of type xstring
                Tell PDF object to extract data
    lo_pdfobj->set_extractdata( )." obsolate!!!
      call METHOD lo_pdfobj->set_task_extractdata( ).
                Execute the call to ADS
      lo_pdfobj->execute( ).
      lo_pdfobj->get_data(
      IMPORTING
        formdata = xml_data ).
    After this i can manipulate xml_data but dont know how to send it back to print...
    Can you direct me to the solution please?
    Thank you in advance,
    Eran Fox
    p.s.:
    Component version    SAP ECC 6.0
    Unicode System         No
    Database system      ORACLE
    Release                     10.2.0.2.0
    Kernel release           700

    Hi Billy
    Yikes - how embarassing !  Thanks for pointing out my beginners mistake there.  I've fixed my code - and also implemented the substitutions of parameters like you suggested - I like that approach.
    Unfortunately the end result is no better - the line
    utl_http.read_text(resp,response_text);
    Still returns nothing back
    The headers that are coming back are
    Date: Thu, 04 Jul 2013 08:31:56 GMT
    Server: Apache/2.2.16 (Ubuntu)
    X-Powered-By: PHP/5.3.3-1ubuntu9.3
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Vary: Accept-Encoding
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Connection: close
    I guess I will need to try chasing it with the fastsms vendor so see if they can check my incoming request and see if there are any glaring problems. I know the xml is correct as I am now logging the xml string just before I send it and when I take that string and put it in their test form it works perfectly - something else in the puzzle is missing. I've had no experience using utl_http before - perhaps it's no possible to read the xml repsonse using this ?
    Anyway, thanks for your help Billy.
    ps - How do you paste your code into your message to get that formatting ?
    Cheers,
    Brent

  • Ready to print. Now, how to send this to the printer?

    Hello Again,
    The little program is 5.5 x 8 inch pages (letter size paper folded in half). They must to
    print it in 4 pieces of paper letter size, put them together and then fold them in half, (staple it).
    I am using 1/4 inches in bleed and I would like to have crops marks. Must to be PDF!
    I have no idea how to send this to the printer. Any help?
    Thanks a lot!!
    Jesus

    First, ask your printer.
    Second, printers generally want unimposed PDF. IOW, export regular pages and let your printer arrange them the way they want it.
    But definitely ask them first. And make sure you mention the bleed.
    Ken Benson

  • In Applet  how to send an ' image' and 'string' as parameter

    Hi,
    In web application, how to use post method in applet to send an ' image' and 'string' as a parameter, I can able to send the image alone form applet to servlet.

    869665 wrote:
    Hi,
    In web application, how to use post method in applet to send an ' image' and 'string' as a parameter, I can able to send the image alone form applet to servlet.One way to do this is to convert your binary image data to base64 (convert it to plain text) and send it along with your other String parameter, delimited with a & of course.
    Edited by: maheshguruswamy on Aug 2, 2011 11:59 AM

  • How to send a image or bmp file through SMS

    Hai All,
    My requirement is that,I have to send a image(company logo) with my text message.Now problem is that I am using XML API .means I am Converting that image into hexa code and sending that by encoding according to my service providers specifications.but they didn't provide what should be the UDH format and format of image data.So please help me in this as I am stucking here for about a month.Any Suggestions will be appreciated.
    Thanks & Regards:
    SEVish

    Hi Atul,
    when i am converting my image into hexacode then it fits in three sms ,So sms can be multiple but it should be reassembled when it reaches to the client's device. My service provider told me to use XML API to send sms through my application and yes I am using HTTPPOST method .I am sending a piece of code please give me some suggestions after analyzing it.
    Thanks in Advance
    SEVish
    public static void ImageTransmission(String ot) throws HttpException, IOException{
              String smsSchema          =     null;
              String mobileNos           =      "919857555992";
    String str10                = "%30%00%00%04%54%65%73%74%02%01%00%00%48%1c%01%66%66%66%66%66%66%66%66%66%99%99%99%99%99%99%99%99%99%80%00%00%00%00%00%00%00%01%40%00%00%00%60%00%E0%00%02%40%00%00%0E%90%03%10%00%02%80%00%00%31%08%0C%F3%B8%01%80%00%00%40%04%11%04%44%01%40%00%00%FF%FE%2F%8B%12%02%40%00%00%00%00%53%8C%AA%02%80%00%00%00%00%62%89%C4%01%80%00%00%00%00%41%41%40%01%40%00%00%00%00%01%42%80%02%40%00%20%00%00";
    String str20                = "%01%42%80%02%80%01%F0%00%00%00%A2%80%01%80%0F%FE%00%00%00%A5%00%01%5F%FF%FF%FF%FF%FE%A5%7F%FA%40%0A%AA%00%00%00%55%00%02%82%01%50%04%40%01%5D%08%A1%88%10%24%80%00%40%FF%02%01%40%41%00%01%00%03%AB%E0%02%44%00%00%08%20%0D%55%58%82%80%10%14%40%00%1A%AA%AC%01%80%00%00%00%00%35%55%56%01%40%01%00%00%80%6A%AA%AB%02%40%00%00%00%00%55%55%55%02%80%00%00%00%00%00%00%00%01%99%99%99%99%99%99%99";
    String str30                = "%99%99%66%66%66%66%66%66%66%66%66";
    HttpClient client           =     null;
              PostMethod httppost     =      null;
              String encodedMsg          =     null;
              String[] smstohex           =      new String[10];
              String     responseString      =     null;
              String[] sms                =      new String[10];
              VSFEncoder vsf           =      new VSFEncoder();
    /* XML format for sending SMS */
              sms[0] ="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"+
         "<!DOCTYPE MESSAGE SYSTEM \"http://127.0.0.1/psms/dtd/messagev12.dtd\" >"+
              "<MESSAGE VER=\"1.2\">"+"<USER USERNAME=\""+"XYZ"+"\" PASSWORD=\""+"XYZ"+"\"/>"+
              "<SMS UDH=\"1\" CODING=\"1\" TEXT=\""+ ot +"\" PROPERTY=\"0\" ID=\"1\">"+
         "<ADDRESS FROM=\"Flexware\" TO=\"" +mobileNos+"\" SEQ=\"1\"/>"+
              "</SMS></MESSAGE>";
              sms[1] ="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"+
         "<!DOCTYPE MESSAGE SYSTEM \"http://127.0.0.1/psms/dtd/messagev12.dtd\" >"+
              "<MESSAGE VER=\"1.2\">"+"<USER USERNAME=\""+"XYZ"+"\" PASSWORD=\""+"XYZ"+"\"/>"+
              "<SMS UDH=\"2\" CODING=\"1\" TEXT=\""+ot+"\" PROPERTY=\"0\" ID=\"2\">"+
         "<ADDRESS FROM=\"Flexware\" TO=\"" +mobileNos+"\" SEQ=\"2\"/>"+
              "</SMS></MESSAGE>";
              sms[2] ="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"+
         "<!DOCTYPE MESSAGE SYSTEM \"http://127.0.0.1/psms/dtd/messagev12.dtd\" >"+
              "<MESSAGE VER=\"1.2\">"+"<USER USERNAME=\""+"XYZ"+"\" PASSWORD=\""+"XYZ"+"\"/>"+
              "<SMS UDH=\"3\" CODING=\"1\" TEXT=\""+ot+"\" PROPERTY=\"0\" ID=\"3\">"+
         "<ADDRESS FROM=\"Flexware\" TO=\"" +mobileNos+"\" SEQ=\"3\"/>"+
              "</SMS></MESSAGE>";
              for(int i =0 ;i<3;i++){
              encodedMsg = vsf.encodeSMS(sms);
              client      =      new HttpClient();
              httppost      =      new PostMethod("Some URL"+encodedMsg+"&action=send");
              client.executeMethod(httppost);
              if (httppost.getStatusCode() == HttpStatus.SC_OK)
              responseString = httppost.getResponseBodyAsString();
                   System.out.println("responseString : " + responseString);
                   //logger.info("SMS Sent Status : "+httppost.getStatusLine().toString());
         }else
                        System.out.println("Unexpected failure: " + httppost.getStatusLine().toString());
                        //logger.info("SMS Sent Status<><><> "+httppost.getStatusLine().toString());
              httppost.releaseConnection();

  • How to Send an image to another user of app in windows phone

    Hi,
    I am developing a windows phone app where two users can exchange text messages and images. I am able to send the text messages through pushnotification platform.
    Is that also possible to send the image files (as string data or whatever is the best approach) in toast notifications ? Or do we need to user a different concept to achieve that ?
    Krrishna

    You would need some sort of service to do this.   You could easily set this up with an Azure, either mobile service or storage.
    http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-get-started/
    http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-store-dotnet-upload-data-blob-storage/
    Bret Bentzinger (MSFT) @awehellyeah

  • How to send form feed to printer ?

    Hi All
    I'm sending a bad formated document to a printer (working in windows) with my java application and then I'm parsing the document and need to send a formfeed to inform the printer to change page when I found a determinated char in the document.
    I know how to do everything except which is the recognized formfeed char in windows...
    Any help ?
    Thanks
    <xl>

    useful link.
    http://www.asciitable.com/

  • How to send output of a print  to a single pool in smartforms

    Hi,
    when iam taking a an out put from the invoice all the output has to be send to a single pool .means if we give an invoice number in vf03 and issue the output and if we choose print then it will directly got to spool.but requirement is to store all the spool numbers on application server and finall we have to convert all these into single pdf and then we have to print that.
    can any body tell me where to store these spool numbers and how we can send at a time to print
    help me pleases
    sasi

    Hi Sasi,
    Check the following:
    Exporting the Contents of a Spool Request as a PDF File
    Use
    You want to export the contents of a spool request as a PDF file to a directory of your choice, and print the file as required. The PDF file contains the print data in the format in which it would be output by the printer.
    The following procedure is irrelevant for the PDF-based form printing integrated as of SAP Web Application Server 6.40, since a PDF file is already returned. See also Displaying and Printing PDF-Based Forms.
    Procedure
    The PDF file is generated as follows with report RSTXPDFT4:
    1. Generate a spool request from the document to be printed.
    2. In transaction SE38, start report rstxpdft4.
    3. In the displayed window, enter the spool request number and the directory in which the PDF file is to be stored.
    Leave the Download PDF File option selected.
    Choose Execute.
    4. In the next window, you can confirm or change the path in which the file is be stored.
    Save your entries.
    5. The system displays a log from which you can see whether the report was successfully performed.
    You can then open the file from the directory and print it as required.
    Constraints·        The PDF conversion only supports true bar codes for Smart Forms, which were generated with the new bar code technology. In all other cases, the bar code is only simulated.  
    ·        PDF conversion, especially of ABAP lists, is slower and is therefore not suitable for mass printing. However, you can speed up the conversion to PDF using the FASTLISTCONV option in report RSTXPDF3.
    ·        The font selection for ABAP lists is predefined in the PDF converter and cannot be changed.
    For more information about constraints, see SAP Note 323736 in the SAP Service Marketplace.
    For further reference check the SAP documentation...
    http://help.sap.com/saphelp_erp2005/helpdata/en/94/45c53bcc422d42e10000000a114084/frameset.htm
    Thanks and Regards,
    Bharat Kumare Reddy.V

  • Address Book - how do I remove image when printing labels?

    Hi
    Just getting ready to print the Xmas card labels - thought i'd add an image in the Address Book 'Print' Dialogue - then changed my mind!!!
    Big mistake - there appears to be no (easy / obvious) way to remove the image!!!
    Any ideas please.
    Thanks

    I never could figure out how to do this via the GUI and had to resort to a bit of "trickery". i.e.:
    - quit the Address Book application.
    - in Finder, go to ~/Library/Preferences and double click
    on com.apple.AddressBook.plist ( or just type
    "open ~/Library/Preferences/com.apple.AddressBook.plist
    in a Terminal window
    - in the property list editor, delete the value for
    "ABImagePath" , which is under "0" in "ABCustomEnvelopeDefinitions"
    - save the file
    - quit the Property List Editor
    - start Address Book
    /cj
    various   Mac OS X (10.4.3)  
    various   Mac OS X (10.4.3)  
    various   Mac OS X (10.4.3)  
    various   Mac OS X (10.4.3)  

  • How to Give an Image for Print and Not Web

    So, I have designed a logo for a web site and the site owner wants it for a business card and letterhead.  Saving an image for web is easy and I understand all that but how do I prepare a file for a printer?  I'm guessing this is just nipping in to the local print shop on the high street.
    Sorry for the basic question and I'd be as happy with a link to a tutorial as with the answer!
    Thanks
    Martin

    Saving an image for web is easy...
    ...Which is why your workflow is backward. Design for print first; repurpose for web. Not the other way 'round.
    Proper advice on preparing the artwork for press is dependent upon specifics of the artwork and the printing parameters. You haven't provided any specifics at all. So your question amounts to asking someone to write you a manual on how to prepare artwork for presswork in an online forum post.
    Do a Google search for "preparing artwork for offset printing" or some such.
    JET

  • How to send the image bytes(which is taken from webcam) from flex(4.6 version) to dotnet

    In my project we are using adobe flash builder 4.6 as a client-side scripting,visual studio as a mediator(for connecting the oracle database).In this, in flex 4.6 we are capturing images from webcam that's working fine, after capturing the image we need to save this captured image in oracle database so in order to save we need to pass this image from flex to dot-net(visual studio) so i need a help on how to approach to done this(passing the image from flex to dot-net) if any one knows please help me i will be very thankful to them

    finally i got the solution fot this,i tried using yhis link it work's for me
    http://stackoverflow.com/questions/5702239/how-to-pass-image-from-a-flex-application-to-a- asp-net-c-sharp-web-service

  • How can I import image from printer

    Please send me mail

    These days many models of printer are printer/scanner combinations. If you have one and are working on a Mac, go to System Preferences > Print and Fax. You will see a menu similar to the one shown here. Click on Scan and follow the instructions that are displayed.

  • How to send JPG images in MAIL?

    I'm having a problem in sending JPG files in MAIL. Nobody can open de files i send. Need Help.
    Tanks.

    Makes sure extensions are fully apparent, checks the form of preview that may have been created on the Mac for its use. Two support documents are linked below, and the one for earlier version of Mail is still useful:
    http://docs.info.apple.com/article.html?path=Mail/4.0/en/9965.html
    and
    http://docs.info.apple.com/article.html?path=Mail/3.0/en/9965.html
    If you were sending to someone using a really old version Mac OS, it might be a hinderance, btw.
    The issues that can arise from use of Rich Text Format are separate issues, and relate to MS and AOL not processing RTF from other systems.
    Ernie
    Message was edited by: Ernie Stamper

  • How to send report output to printer

    Hi,
    In Oracle applications one of my AR report has printer parameter
    when user submitting the request he needs to choose the printer name for that
    parameter then this report output needs to go to automatically to that printer after completion of report.
    Do I need to change report system parameter values for this?
    Could you help me in this?
    Thanks in advance.

    Hi,
    If you use ORARRP, you reports will automatically go to the default printers.
    Regards,
    Soumyajit

  • How can I insert image from printer scanner? Answer below.

    "your questions relate entirely to scanner software and scanner drivers. What in that area can and can not be doe is decided by the scanner manufacturer.
    A lot of scanners scan to mail using MAPI and Microsoft has discontinued that. I suggest you ask your scanner manufacturer what the capabilities of their device are. "
    BUT.........I could in outlook soooooooooo does not compute.

    If you read the book that came with your scanner it will talk about outlook a lot and not mention other mail clients at all. What the button should say is scan to Microsot Outlook and then people would stop posting basically this same question to forums.
    The manufacturer, intends scan to mail to work with Outlook and nothing else usually. Just as I have a phone sync program here from Samsung that also only works with Microsoft software. Vendor lock in is the name of the game.

Maybe you are looking for

  • Apex Application not working after importing to my apps schema...

    Hi friends, I created one DB application in my sample schema that is associated with apex 4.0..... Application details: *) login page(where i will be giving username and password) *) page 1 (consist of several form fields, like --->name: --->module:

  • Quicktime format to IMovie

    We bought a machine that easily captures our videos from camera to DVD, It plays back in Quicktime but will not import into IMovie for editing. Any suggestions?

  • Question about Single Sign On

    Hi Gurus! I have a question about the following scenario: The login in EP6 is with the NT User (adriano.oliveira), but to access the SAP applications I need to use another User (aoliveira - the size of the NT User is bigger than SAP User length). I k

  • How can I speed up the load time?

    My website is completed and I am happy with everything. Everything except the time it takes to load. All the images have been optimized. What can I do to speed up the load time? http://www.liquidfirefishing.com

  • Ios itunes app problem

    So I updated my Iphone 4s to IOS 7 and now when i open itunes app there is just white screen and nothing else shows up. can somebody tell my whats the problem ? Thanks