OLE automation-To insert and print picture in word document

We are upgrading from 4.6C to ECC 6.0.One of our report program to print CV and insert photo in the word document works fine in version 4.6c.The methods to draw text box and insert photo to the required size don't work in ECC 6.0.seeking your advise.
I have attached the code:
Insert DrawingBox for CV Photo
  call method of wordobj 'DrawTextbox'.
  call method of wordobj 'DrawSetInsertToTextbox'..
  call method of wordobj 'FormatDrawingObject'
           exporting
              #01 = '0'              "Tab
              #02 = '1'              "FillColor
              #03 = '1'              "LineColor
              #04 = '8'              "FillPatternColor
              #05 = '0'              "FillPattern
              #06 = '1'              "LineType
              #07 = '0'              "LineStyle
              #08 = '0.75 pt'        "LineWeight
              #09 = '0'              "ArrowStyle
              #10 = '0'              "ArrowWidth
              #11 = '- 1'            "ArrowLength  <--
              #12 = '0'              "Shadow
              #13 = '0'              "RoundCorners
              #14 = '15.7 cm'        "HorizontalPos
              #15 = '1'              "HorizontalFrom
              #16 = '5.0 cm'         "VerticalPos
              #17 = '1'              "VerticalFrom
              #18 = '0'              "LockAnchor
              #19 = '4 cm'           "Height
              #20 = '4 cm'           "Width
              #21 = '1 pt' .         "InternalMargin
  if not path1 is initial.
    call method of wordobj 'InsertPicture'
      exporting #1 = path1         "Name
                #2 = '1'.          "LinkToFile
   endif.
  call method of wordobj 'DrawUnselect'.
  call method of wordobj 'EndOfDocument'.
  call method of wordobj 'InsertPara'.
Thanks..

hi ,
use this for the custom pictures
Re: OLE / ms WORD / Create new document, insert image and print
use this for getting sap icons ...
Re: How to get SAP Icons as OLE Object

Similar Messages

  • OLE automation To Print picture in word document

    We are upgrading from 4.6c to ECC 6.0.One of Our OLE automation Report is used to launch the word document to print CV and photo.But the program acts differently to the different Presentation servers even though they all have the same GUI and word versions.Text box and images are drawn at different sizes and at different locations in the word document.
    Please advise.

    Sure,
    I need to make an abap program to execute a word document
    in this document I want to insert a picture
    we have a picture in SAP in the transaction SE78 (Administration of Form Graphics)
    I want to know if I can use this picture or if the only method is to have the picture in local into the PC
    regards
    Patrick

  • Can I transfer and print pictures taken with my iphone?

    Can anyone, please, tell me if it is possible to transfer and print pictures taken with my iphone. I would need to print out a few pictures, but I could not fina any information about transferring or printing out pictures that are on my "Camera Roll" section of my iphone. Thank you very much for any help.

    When you connect your iPhone for the first time after taking a picture, Windows or Mac will pull up a dialog asking what you would like to do with "Digital Camera" or whatever the USB recognized question is saved as.
    With Windows, it will have "Camera and Picture Wizard" which will copy all pictures and save to where you specify or it will ask if you want to print them. **
    You can also change the default selection somehow to change to a new application if you installed such as Paint Shop Pro or Adobe Photoshop. Note that after you check the dialog box "Remember my choice" whatever the wording is, you have to figure out where to change your choice afterwards.
    With Mac, it has iLife to copy the photos for printing.
    An alternative is to save the photos, then burn them to CD, and take it to CVS or a One Hour Photo shop to do it.
    ** The iPhone will still retain it's captured stills and re-ask the same question again and again until you delete the photographs on the camera application.
    Message was edited by: JoeZinVA

  • Standard smartform and print program for sales document

    HI All,
    Is there a standard smartform and print program for sales document or sales order. If someone has worked with it do reply.

    Hi Shashank,
    What exactly you would like to print for Sales Orders in Smartforms..?
    regards,
    Ram.

  • Print an MS Word Document to specific Printer tray

    Hi
    How do I print an MS Word document to a specific tray?
    In fact it even should be a different tray per page. (First page different from the following ones...)
    If there isn't a OLE2 Procedure, is there any workaround?
    Maybe using a Macro?
    As I have been told that this isn't possible, I would be very grateful for any help :-)
    Karine
    Message was edited by:
    Karine
    Message was edited by:
    Karine

    Hi Karine,
    using ole2 isn't immediately, you must try first to write the code in a VB macro and then translate in ole2.
    in this link there are some examples
    http://www.todoexpertos.com/categorias/tecnologia-e-internet/bases-de-datos/oracle/respuestas/362078/invocar-word-desde-forms
    bye

  • Word opened from word addin freezing the dialog which has opened from addin and crashing the parent word document

    I have a office addins which works seamlessly in excel, powerpoint and outlook except in word . We have a option to create a word documents using the templates in a dialog which is opened from addin. And we have an option to set the work area  for
    our webapplication either to use filestorage or sharepoint storage.
    Again the same addin works perfectly with filestorage cache but the same doesn't work with sharepoint storage. the problem is when we create the new documents using the templates it produces the new word document, once it is created and opened, the parent
    word document and the intermediate dialog window should get close but  instead it hangs both of them. when i try to close it explicitly it says word has stopped working.
    Issue is with sharepoint 2010+Sharepoint storage and the same is not working with sharepoint 2013 as well as it by default uses sharepoint storage.
    I have posted in the VSTO forum before but I haven't got the response yet. please help me this is a major and critical issue for us.
    PS: irrespective of OS its not working.
    code to produce a file
    function ProduceFile(strFileUrl) {
       var obj = new ActiveXObject('SharePoint.OpenDocuments.3');
       obj.EditDocument(strFileUrl);

    Hi ShilpaSheshadri, 
    if this is a quite urgent, i may suggest to open a ticket directly, so that we can have a remote session to check this up. http://support.microsoft.com
    i checked some forum such as:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/e2c801c0-6120-432c-97d5-8d59a43ce7f3/thisaddinstartup-is-not-executed-when-open-ms-word-template-using-vsto-from-sharepoint-2010?forum=vsto
    perhaps you can also try to use other workaround, 
    http://blog.qumsieh.ca/2012/11/05/link-to-a-document-opens-in-read-only-mode/
    to check, please have a check if this issue was also shown in other client machine or other client browser version.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How do I begin with a template and then import a Word document?

    I know I can open a word document in pages (I do this all the time). But I have a specific template and I want the word document I open to take up the designed elements of the template. How do I do that?

    George
    You can import the styles from another document:
    +Menu > Format > Import Styles…+
    but it will come down to what you need to retain from what.
    You can not import layout or elements, so you will have to work out which holds most of what you want and import the styles from one and apply that or copy and paste into the document that contains most of the work.
    Don't forget you can use the thumbnails to copy across whole pages/sections.
    This is where Pages extremely weak and poorly thought through layout methods fall down. You will not be able to apply the master pages and master page layouts, to existing work, that you can in other DTP software.
    Peter

  • How to save and work with a Word document stored in the Oracle 8i Database?

    Hi,
    If you have any experience with saving and working with a Word document (stored in 8i) from Forms 6.0, then please let me know how.
    Thanks ...
    Peter Nielsen

    hi
    i had worked storing word documents in oracle8i.tell me what exactly u want to know.
    null

  • How do I download and work on a Word document?

    How do I download and work on a Word document?

    Download from where? The internet or ?
    Second, in order to work on a Windows file, you need software that will be able to do it - I'm sure there are more - this is one: Pages (iWork) or install a Windows version.

  • OLE automation application load and unload in each step in the sequence of the TestStand.

    what i need to configure for it unloading after step ? Changes in the RunOptions of the step doesnt help .
    I need work with unique application during this test in all sequences .
    Thanks , wait for your answer ASAP TestStand version 1.02
    OLE automation made in the VC++ 6.0
    I am used by ActiveX Automation Adapter

    I think the problem might be with COM. You will need to make your sequence release your reference before COM can unload it. To do that in TestStand, you set the reference to nothing (nothing is a keyword in TestStand). This will cause TestStand to release reference to your object and then COM will unload the object.
    Please give us an update if that worked.
    Anand Jain
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Insert .bmp picture in word document

    Hi All,
    My Requirement is:
    I need to insert one Bitmap image at the end of word document.
    There is one MS Word document file and also there is one bitmap .bmp file.
    My requirement is to read the file for change and insert the bitmap image (which is a signature) at the end.
    Do I need to use OLE methods, if yes please guide how?
    Secondly if there is any Sap standard function module for it?
    Pls guide me on this.
    Rishi

    hi ,
    use this for the custom pictures
    Re: OLE / ms WORD / Create new document, insert image and print
    use this for getting sap icons ...
    Re: How to get SAP Icons as OLE Object

  • Photosmart Premium C309a won't print pictures in a document

    I've had this printer for some time and it has been working O.K. but recently it has stopped printing pictures that are in a document I have created.  I have uninstalled and reinstalled twice and that has been no help.  It won't even print pictures from My Pictures files.   This issue is about a family history book I have written and need to print several copies.  I am really frustrated.  Can anyone help?

    No I was not able to print from Paint.  I decided this morning to do yet another uninstall/reinstall but this time I did it from a download off the internet instead of the CD I have.  It now prints pictures from "My Pictures" file - at least it did when they had me do a sample.  But it still will not print pictures from my MS Word document.  I am under a real time crunch to get these books to the binderery so I experimented on printing from a PDF version I have of it.  And to my delight it prints correctly from the PDF! Obviously I need to fix the "Word" problem but for now at least I have found a solution to my immediate problem.I will continue to see if it is only this particular document it won't print the pictures from or just what is going on. Thanks for your help.

  • How do I set a default page size, orientation, and printer for a particular document in Pages?

    I have a simple label document in Pages which I print to my label printer. The label is 1.49 x 3.47 inches and needs to print in Landscape, and it needs to print to my Dymo label printer. How do I set up the Page Setup or Print Setup so it defaults to this document size, orientation, and printer, every time, without me having to manually enter those settings every time?

    Thank you for your reply. However, I could not get Templates to work correctly for me.  Following your instructions, I opened my document, opened Page Setup, set the printer, paper size, orientation, and printed a copy to make sure it was right. Then I re-opened Page Setup to verify that the settings were still correct. Then I saved the document as a Template. Then I found my template in Pages, opened the template, and tried to print. The first thing I noticed was that the template did not remember my printer. Then I set the printer, and printed, but I found that the template also did not remember the page size or the document orientation. So, did I miss a step here? Lion 10.7.5 and Mac Mini.

  • Why are my PDF files so big when I open them or when I print them out? I only see and print half of the document, didn't have any problem on internet explorer

    I was trying to print something from the internet and when I did what came out was half of the document. What should have been printed in 1 sheet of paper was printed in 2 and it was only half of the document because the letters and images were too large.
    I noticed that when I saved the document from the Internet to my folder the document was in half. I tried to save it again but it didn't work. I tried to fix the printer to see if that was the reason but still I continued to see only half of the document. I tried printing again but still the same thing happened.
    I thought it was a problem with my printer but then I remembered that the same thing happened with other PDFs files. I then tried the same thing on Internet Explorer and when I saved the document I saved the whole document not only half of it and the letters and images where not large like when I used Mozilla. I was also able to print the whole document in 1 sheet of paper.
    I don't how to solve this problem, thank you for your help and attention

    Hi efacg,
    Most printing issues are solved by resetting the Printing preferences. When you print from Firefox and you click on the down arrow, do you see Defualt and Firefox? Please make changes to the preferences here and preview the document.
    If this continues to be an issue please also see [[Fix printing problems in Firefox]]
    If there are any other questions, please do not hesitate to ask, we are here to help.

  • Scanning and printing a double-sided document .

    Hello I have a Canon MX 922 that I am trying to scan a double-sided document and then print that double-sided document any help would be greatly appreciated thank you

    Hello I have a Canon MX 922 that I am trying to scan a double-sided document and then print that double-sided document any help would be greatly appreciated thank you

Maybe you are looking for

  • XML Publisher Render Problem

    The problem started since the first time I tryed to render one of the examples in the XML Publisher...example: Executive - Sales Dashboard. Since the first time, when I try to view the result, the screen shows me this problem: Error The report cannot

  • How can I figure out where are the heaviest volumes in order to get rid of the useless stuff?.

    How can I figure out where are the heaviest volumes in order to get rid of the useless stuff?.

  • Different brand earbuds are barely half the volume they used to be!

    So these other brand earbuds I use like Bose and Koss don't work well with my iPod anymore. The volume is literally so low I have to turn it all the way up and it's still not loud enough! And yes my Sound Check is off, butt when I blast my apple earb

  • Daemon nfsd did not respond to null rpc call

    Hi, We've had a Solaris 10 cluster running an HA NFS service for a few months now. This morning at 3:06am, there was a mysterious issue where all the clients got disconnected for 2 minutes. The problem seemed to fix itself at 3:08am. The only thing I

  • Create a New Order for Images - Then Rename

    Hello, I have PSE 5.0.2 I use Windows XP. I have a series of jpg's that I would like to put in a different order by drag-n-drop into a different arrangement - then batch rename them with a sequential naming convention. Can I re-arrange images in PSE