Printing output on word document

i[b] want to print the output on word document .
i saved the data in the file so that should be printed on word document.

on the button1_action() type the following :
FileWriter out = new FileWriter("c:/MyFile.rtf");
out.write("Your data is here......................");
out.close();hope this will help
good luck
mohammed

Similar Messages

  • How can we save smartform output as word document

    Hi Friends,
    Can anybody help me, how to save Smartform output as Word document instead of PDF file.
    Thanks,
    Ramana.

    Hi Venkat,
    I think you can do it manually.
    After the print preview, Select the menu <b>Goto->List Display</b>.
    Now select the menu <b>System->List->Save->Local File</b>.
    Now you can select the radio buttion <b>Rich Text Format</b>.
    Now you save the document as a .doc file (say test.doc)
    That is it!!!!!
    <b>Award points if found useful.</b>
    Regards,
    SP.

  • Download Smartform output in word document

    Hi All,
    I had a requirement to download the smartform output in ".doc" format.
    I had run FM CONVERT_OTF with parameter value format = 'ASCII', and downloaded using .doc format
    I was able to download but the output is not having logo and some different symbols are added.
    Can any suggest what would be the exact procedure to download the output in word document.
    Regards,
    Dinakar.

    Hi Dinakar,
    Please check the link provided:
    Help with Smartform download - unwanted items showing in file
    The solution provided in this link is very relevant for your question, so hope you will get the solution.
    Thanks & regards,
    Sarita Singh Rathour

  • 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

  • Convert SAPScript output into Word document (.doc)

    Hi,
    I want to convert the output of sapscript into the word document. Will u pls. suggest the appropriate way to achieve it.
    We have a Function Module which converts the ouput in to the PDF and RTF format. Is dere a possibility to convert it into the DOC file.
    Thanks,
    Hitz

    hi ,
    Use ABAP program: RSTXSCRP
    It will download and upload your sapscripts as a text file in your local harddisk.
    when u execute that program ,one screen appears.there u have to enter the directory path and the name of the upload or download file. Use the naming conventions of the file system where the file is located.
    File system Example
    Windows, DOS d:\tmp\text.rtf
    Unix /usr/sap/c11/SYS/global/text.rtf
    When uploading, the data in the file is transported into the SAP System. When downloading, the data is stored in the file by the SAP System.
    If you are working on a PC, enter a file that is located on a hard disk or a disk of the PC.  If the PC is connected to a network, or if you are on a workstation, you can specify a file on a remote disk.
    and for converting the output in to PDF format use the function module CONVERT_OTF.
    u can use these function modules to convert the script.
    SX_OBJECT_CONVERT_OTF_PDF Conversion From OTF to PDF (SAPScript conversion)
    SX_OBJECT_CONVERT_OTF_PRT Conversion From OTF to Printer Format (SAPScript conversion)
    SX_OBJECT_CONVERT_OTF_RAW Conversion From OTF to ASCII (SAPScript conversion)
    i think  there is no such function module to convert script out put into DOC format.
    Reward points if useful.
    Thanks,
    Usha
    Message was edited by:
            usha

  • 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.

  • Smartform output in word document

    hi all,
    how to download a smartform in word document so that the user can make changes in it. i tried converting the output into OTF format but formatting is not coming properly.how to overcome this?

    Hi,
    Even i had the same requirement for a sales order form to download in word and then change it manually before sending to customer. I tried a lot of ways to do the same and finally raised a sap noted for the same.i got a reply from SAP that it is not possible to download forms in word with same allignments maintained with logo. SAP note 641560 says the same thing.
    All you need to do is find a technical solution to fill the data which they want to fill maually or go for adobe form. Thats amazing technology to solve your issue.

  • 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

  • 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

  • How to download graph output into word document?

    Hello experts!
    I have plotted graphs using some data.
    The graph is actually output of a function module into a container.
    Can anybody tell me , how can i download this graphs into a word document?
    I am able to download text data into word documents, but not graphs.
    Regards,
    Rahul

    Steelers, unfortunately your reply didn't get through. Perhaps you tried to send an attachment or screen shot by email? Please try again (but not sending attachments or screen shots by email).

  • 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.

  • Printing as a word document

    Hi i would like to use the app notes on my macbook air i am running 10.8 on my macbook air. how cna i do this i only see one option for PDF but s there a printer for to print word documents on the mac. i know there is one for PDF. thanks

    I did find my file on the external drive with the data in it, so i made a copy of it...still would like to know what may have happened to the original file...

Maybe you are looking for