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

Similar Messages

  • 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

  • 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

  • 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

  • OLE - Creating header and footer in Word document using abap

    Hi All,
    I'm using OLE to create a WORD document from abap.
    I need to insert a logo in the header and a footer text.
    Does any one know how to insert a header/footer with abap ole ?
    I tried to insert the logo as picture with:
    call method of o_inlineshapes 'AddPicture' = o_logo
      exporting
      #1 = 'C:\logo3.jpg'.
    but I can't put it in the place I want..
    thanks,
    Michal

    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.
    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.

  • Picture in word document

    Hi,
    can I insert a picture defined with SE78 in a word document using OLE method?
    Regards
    Patrick

    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

  • Convert picture from word document to .jpg

    I'd like to know how to copy a picture from a word document and convert it to a .jpg format so I can use iphoto or other image software to edit and print it.  I tried a work-around that's not very satisfactory, that is to print the picture on photo paper, then scan it and save it as a .jpg, but as you would expect, I lose quality.

    Why don't you just use a Word converter to render and convert  Word document and the images cotained in Word file into jpeg image directly? Saving the Word file cotaining pictures as pdf and save as jpeg is more complicate converting the word file into jpeg image directly.

  • OLE command to print through MS Word

    Hello,
    I'm looking for the OLE code that would allow to enforce the Word document to print itself to a given printer.
    Actually I would like to use the PDF Writer to automatically make a pdf version of my Word docs.
    Thank in advance,
    Francois

    ...Or the OLE code to execute a pre-recorded macro instead.
    Francois

  • 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 can I select pages to print from a Word document using the report generation 'print report' vi?

    I have researched the knowledge base and found:
    Printing A Range of Pages or Number of Copies of a Report Using the Report Generation Toolkit in LabVIEW.
    This seems to be from a previous version of LV. I am using LV2010. The instructions given do not match up with the current vi. The information did provide a tip and drilling down into  the vi I was able to insert the from/to page numbers at the printout invoke method, however this prevents the print function from working in that it can no longer find the default printer.
    The error message is:
    Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi ->
    error 1015 is: Printer is not responding. Check printer configuration.
    Any ideas how I can make the modification to print, for example, pages 24 through 29 out of a 32 page word document?
    Thanks,
    Chris

    Hello, take a look at this article. Unfortunately the Generate Report Get Data to Modify.vi was remove since RGT 1.1.3 release. That being said, we can try to find a workaround. See "Configuring a Printer Through the Windows Dialog in LabVIEW", open the GetPrinterSettings.vi, at the PrinterSettings property node you can select the from/to page. I hope this helps.
    Alejandro | Academic Program Engineer | National Instruments

  • New printer won't print photographs or Word documents in color

    Hi, I bought an HP Officejet Pro 8625 a few weeks ago. All the ink levels are full, but when I'm trying to print a Word document or photograph from Picasa, the printer only prints in black and white. Even the "print preview" is in black and white.
    If I print a page from the Internet, the printer will print in color. But only from the Internet! I cannot get it to print in color from any other application. I've checked all my settings and have no idea how to fix this.
    Thanks for any advice.

    Hi, typically the print preview tells what you will print.
    One suspicion might be somehow the grey scale printing in the driver setting has been checked, go to the printing preferenc,  the paper quality and then advance settings and then under printer to make sure the print in gray scale option is set to Off.
    One better option that I would usually use is to Reinstall the latest Driver from Hp.com

  • Printer won't print B/W Word document, but prints B/W from internet

    Hi! So,, I know that all 3 of my color cartridges are almost empty, but the black one is more than 3/4 full. Yesterday, I was able to print just fine. Today, I tried to print a Word document that has a small color logo with the rest of the text in black. Only the color logo printed, the black text did not. I then tried to print just a B/W Word document,  but that didn't print at all  I also tried printing a document with text in color and text in B/W....the color text printed, B/W did not. I've taken all the cartridges out and I shook all of them, this also didn't help. I did a printer head cleaning and that didn't help. I just tried to print a document from the internet, with both color and B/W and that document printed fine (although the black text looks more gray). I also changed the text color on the original document from black to blue and it printed just fine. Any suggestions on what the cause of this would be? I would understand if the color wasn't printing because those are almost empty, but the black one is almost totally full so there shouldn't be an issue with that. Thanks in advance for any help/suggestions that anyone can give me.  

    Hello Dwan2,
    Welcome to the HP Forums.
    I see that you are attempting to print just in black ink.
    Here is a screen shot that I think will help you with this issue.
    Please feel free to write me back if you have any other questions or concerns.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Printing issue in word document

    hi,
     i am facing problem with printing word document, the alternate lines are not getting printed, theres no issue in printing pdf files. please suggest

    Hi @nish123 , and welcome to the HP Forums!
    I understand you're having issues printing, I'd like to help!
    I have a couple of questions before we get started:
    -What printer are you using?
    -Do you have any issues printing from Notepad?
    In the meantime, I'd recommend removing the ink cartridges, and performing a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    I would also suggest downloading and running the HP Print and Scan Doctor.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Automating adding text to a word document

    Tried before to make this automated before, but the line breaks weren't added, and the name of the word document was added after the pledge. For my school's announcement system.

    Tried before to make this automated before, but the line breaks weren't added, and the name of the word document was added after the pledge. For my school's announcement system.

  • Printing of normal word document written in black it is coming with plain paper

    I m using Hp office jet 6000, recently I have changed its ink from original store. Unfortunately when I print normal word document written in black it is coming with plain paper, however when I order a print in a mixed color the other colors appear in the paper but still the black is not coming. So I would like to ask what might be the problem and how can I fix it?
    Regards,

    Hi,
    Please check the vent first and re-seat the cartridge.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Issue while processing large message using schema exposed as WCFservice

    I am using biztalk 2010 and am facing one issue. I have a schema exposed as WCF service. Used the ecf pubulishing wizard for the same. When we post a large message using this WCF service it throws http 400 error. We have isolated the problem to webse

  • Speed up iWeb

    I have made a couple of websites with iWeb and I am caught in the Catch-22. The nicer looking the website, the slower it loads. I have found two applications, Web Crusher and Web Site Maestro, that promise to speed up iWeb-created websites. Anybody r

  • Mysql problem

    When I want to do a recordset for use my database, all the time I got a error message like that. What can I do ?

  • Flash videos temporarily freeze system

    OS : Windows 7 64bits Browser : Firefox 6.0 Flash player version : 10.3.183.5 Hi, Somehow, for about 3 to 4 days now, I have a very annoying problem that happens when playing flash videos. At first, videos play fine, but after some time, on a random

  • Query for registered agents

    Is there a way to query for all the scheduler agents registered to the database, like a metadata table ?