OLE - ADD TABLE TO DOCUMENT OF WORD

I WRITE REPORT AT ABAP THAT I ADD TABLE TO DOCUMENT OF WORD OFFICE BY USING ESPECIAL COMMANDS OF OLE, BUT width of all columns of table is identical.
i need help of you to get example program that setting
different width, for example 5 chars for one column, 30 chars for second and so.
thanks for who help me.

Hi welcome to SDN.
check out the following article for sample code.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2">An Easy Reference for OLE Automation.pdf</a>
Regards
Raja

Similar Messages

  • I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document, I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document

    I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document, I have Microsoft Word for my MacBook Pro.  How do I add a pdf to a word document

    What do you want to do specifically.  They are two different document formats - one is PDF, the other DOC or DOCX.  In what way do you wish to "add" ad PDF to a word document. You can embed a mini version within a document (copy it and paste it from within the x.doc) but that's a pretty hokey looking solution.
    Oh, its mostly irrelevant if its office 2004,8 or 11 - they all do this more or less the same way.
    G

  • When converting tables in a MS Word 2010 or 2007 to PDF the table borders do not retain the correct thickness as identified in the word document.  Is there a solution for this issue?

    When converting tables in a MS Word 2010 or 2007 to PDF the table borders do not retain the correct thickness as identified in the word document.  Is there a solution for this issue?

    Please try with latest version of MS Word and Acrobat.
    Regards,
    Anoop

  • How do you add a Comment when editing document in Word for ipad?

    How do you add a Comment when editing a document in Word for ipad. I've subscribed to Office, so have full editing functions. Can Track changes etc in Review, but can't see how to add a marginal Comment.

    Comments, like they are in Numbers for OS X, are not really supported in iOS. Normally, they rely on a mouse-over to read them. Since there is no mouse on the iPad, it stands to reason they are not there.
    I believe Eric Ross's comments is more geared towards used said Numbers docs on iWork.com.

  • Am unable to insert table and graphs into word document in labwindow/CVI? can any one help me ?

    Am unable to insert table and graphs into word document in labwindow/CVI? can any one help me ?

    Are you using the Word Report Generation instrument? You can find it in toolslib\activex\word\wordreport.fp under the CVI directory.
    The instrument comes with a sample project that shows how to include table and graphs in a Word document: see samples\activex\word\wordrpt.cws in the samples foder of your CVI installation.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Add table using ole

    Hello,
    How to add table and border using ole in excel sheet?
    Thanks,
    Regards,
    Neelambari

    Hi Neelambari,
    U need to select the required cells using .....
    CALL METHOD OF p_gs_excel 'Range' = l_gs_s_cells
        EXPORTING
        #1 = p_sel_cells.
      CALL METHOD OF l_gs_s_cells 'Select' .
    here p_sel_cells. equals to A1:A1,A2:C2,A7:A7,A8:H8,A13:A13.
    or u can give A1:C3.
    Now drawing the box.....
    DATA: l_gs_borders TYPE ole2_object.
    GET PROPERTY OF l_gs_s_cells 'Borders' = l_gs_borders.
    SET PROPERTY OF l_gs_borders 'LineStyle' = 1.
    u can change the value 1 to other value for drawing different kind of box....
    Amitava

  • Report Generation Toolkit Table Row Height-MS Word

    I am having trouble setting the table row height in the report generation toolkit. I can set the column width fine, but the row height seems to remain the same no matter what I set it to. I have attached the VI that generates and formats the table, and the printout it is resulting in. I have also attached the template file I am using.
    Any tips to get this to work right? I am trying to make the cells exactly the same height as the text inside. 
    Solved!
    Go to Solution.
    Attachments:
    AddMarkersToReport.vi ‏20 KB
    badFormatting.pdf ‏179 KB
    splitter.docx ‏13 KB

    Hi,
    So I tried .2  and it didn't work.  So I went to Word to manually change it, and it did not work either.  There is a selection box in word, for the table properties, that seems to default to the value "at least".  When I changed this manually to "exactly" in word, no problem with the .2 manually in Word.
    Hopefully this can be set within the template, for all new inserted tables.  I'm not sure the report generator VI's expose this property.  Well, this is a start for the issue.
    Edit ****
    You can go into the add table VI and expose the property.  See pic.   However, you have to decide if you want to "upgrade" this VI permanently to expose this property or make a copy with the property exposed.   I haven't messed with the new class reports too much, so not sure of the ins and outs with this.
    I think this is the issue with the row size becoming smaller.
    Mark Ramsdale

  • How can I get ExportPDF to not add hyphens when converting to Word?

    I am using the online service ExportPDF, at https://cloud.acrobat.com/exportpdf .It automatically adds hyphens in the resulting Word document for all words that were auto-hyphenated at line ends in the original PDF. How can I get it to convert these as whole words?
    I know that for example in InDesign there is a setting in the Preferences menu and changing it from Retain Flowing Text to Retain Page Layout should remove such extra hyphens upon exporting. But I don't find any such settings for the ExportPDF service online.
    It matters because I frequently need to cut and paste converted text from the Word documents into other documents with different formatting, and the hyphens, which are now hard characters, come out all wrong.
    Can anyone help with this?

    Hi liquidandrew,
    There is no setting in ExportPDF to change the output, other than choosing a language for OCR. ExportPDF does it's best to keep the converted document true to the original, so it sounds like it's maintaining the hyphens where they appear in the PDF. Could you do a quick find/replace in Word to remove the hyphens? However, you would run the risk of removing hyphens where you want them, such as in compound words.
    Best,
    Sara

  • I converted a PDF document to word and it came out all jumbled. How do I correct spelling and typo?

    I converted my pdf document to word and the words come out all jumbled. I thought the document would would come out like the original. what can I do with this document which will take forever to fix?

    Hi buklova,
    Is it happening with this file only or with every files?
    Would you send your PDF document to [email protected] as an email attachment? 
    I will check it from my end.Please add the link to this forum post for reference.
    Regards,
    Florence

  • How to upload documents( like word, excel, pdf etc) into r/3 system

    Hi All,
               Does anyone have information on uploading and downloading documents like word, excel,pdf etc into R/3 system. Is there any function modules, classes, programs etc to do this.
        To give an example about what i mean by uploading documents, we can take the process of attaching documents in support of a SLM issue in solution manager.

    Hi Syed,
      Use the FM gui_upload to upload a file from presentation server and gui_download to download file to presentation server. see the code below and also read the documentation of the respective FM's.
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = lw_file
          FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        tables
          data_tab                      = t_kna1
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
    data:
        lw_file  type string,              " File Path
        lw_file1 type IBIPPARMS-PATH.      " File Path
      CALL FUNCTION 'F4_FILENAME'
       IMPORTING
         FILE_NAME            = lw_file1.
      lw_file = lw_file1.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *     BIN_FILESIZE                  =
          FILENAME                      = lw_file
          FILETYPE                      = 'ASC'
    *     APPEND                        = ' '
          WRITE_FIELD_SEPARATOR         = 'X'
    *     HEADER                        = '00'
        TABLES
          DATA_TAB                      = t_KNA1
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " IF SY-SUBRC <> 0
      IF SY-SUBRC = 0.
        message 'file downloaded successfully' type 'S'.
      ENDIF.                               " IF SY-SUBRC = 0
    With luck,
    Pritam.

  • Add Ins tab disappears in Word 2007

    Hi -
    I installed Tutor 14 and I am having problem with the Add In.
    I am using Word 2007 - and when I create a new Tutor document, I can see the Add In tab at first. But as soon as I update the Document Properties, the Add In tab disappears.
    What is the issue with this, can anyone help? The OS is XP.
    Thanks.

    It may be a corrupt normal.dotm.
    Try deleting it.
    Close Word, find where normal.dot resides (should be in the same folder as Author.dot) and delete normal.dotm
    A new one will regenerate next time you open Word.
    Another cause could be other product's dot files that are installed to the Word start up folder.
    These may over-ride the Author.dot
    Examples are the snagit.dot, palm.dot, etc.
    Remove these from Word's startup folder and see if the behavior persisits.
    Kind regards,
    Emily

  • How do I export a scanned document to Word?

    How do I export a scanned document to Word?

    Use your OS's file browser/explorer to sort the files (in the folder) by date.
    Rename each. Top down put a numeric prefix in place.
    000-filename
    001-filename
    nnn-filename
    Open Acrobat and use the "Combine" feature to combine the files into a single PDF.
    An option available with the Combine feature is to have Bookmarks used. Tick this choice.
    The single, new PDF is created. Save it.
    Open this PDF file's Bookmark pane. There'll be a bookmark for each of the files.
    The order of Bookmarks and the order of PDF pages reflects the order you set when you renamed the source files (a date sort).
    Note that you could manually position the order of files to be combined in the Combine dialog.
    I find it easier and quicker to add the prefix to the source files.
    Using Acrobat XI you'd process the new, single PDF through OCR.
    As some of the PDF pages already have renderable text they cannot undergo OCR.
    Acrobat will alert you of this when it comes to the first of such pages.
    Just tick the box in the lower left. This tells Acrobat to ignore any upcoming pages that cannot be OCRd and to keep on truck'n to OCR the page that hold the scanned image.
    Now, use Acrobat XI to export the the PDF to the Word file you want.
    (File :: Save As Other :: <make the desired choice> )
    Do not expect a 1:1 export. You have a diverse collection of source files.
    While you might get 1:1 if ALL the PDFs combined were well-formed Tagged PDF (compliant with 14.8 of ISO 32000-1 & ISO 14289-1) you don't have that.
    So --- To be expected — cleanup of the content in the Word file.
    Be well...
    Message was edited by: CtDave

  • How to add text vertically into a Word margin with C# (using namespace: Microsoft.Office.Interop.Word)

    I need to add text vertically in a word document outside the margins.  How can I do this with Microsoft.Office.Interop.Word and C#?
    Leonard Swarczinski Software Developer Postal Center International

    Hi Leonard,
    According to your description, do you want to add text vertically into Page Header/Footer? I wrote a sample  for you.
    using Microsoft.Office.Core;
    using Microsoft.Office.Interop.Word;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace AddTextToWord
    class Program
    static void Main(string[] args)
    CreateNewDocument();
    Console.ReadLine();
    private static void CreateNewDocument()
    Object oMissing = System.Reflection.Missing.Value;
    Microsoft.Office.Interop.Word.Application oWord;
    Microsoft.Office.Interop.Word.Document oDoc;
    oWord = new Microsoft.Office.Interop.Word.Application();
    oWord.Visible = true;
    oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
    String HeaderText = "Hello everyone!";
    WdParagraphAlignment wdAlign = WdParagraphAlignment.wdAlignParagraphCenter;
    AddHeader1(oWord, HeaderText, wdAlign);
    private static void AddHeader1(Application WordApp, string HeaderText, WdParagraphAlignment wdAlign)
    Object oMissing = System.Reflection.Missing.Value;
    WordApp.ActiveWindow.View.Type = WdViewType.wdOutlineView;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekPrimaryHeader;
    Microsoft.Office.Interop.Word.Shape textBox = WordApp.ActiveDocument.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationVertical, 150, 10, 40, 40);
    textBox.TextFrame.TextRange.Text = HeaderText;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekMainDocument;
    If I misunderstood or anything wrong, please let me know and you can get more information from below articles.
    Office development in Visual Studio
    http://msdn.microsoft.com/en-us/office/hh133430.aspx
    Abhout: AddTextbox Method
    http://msdn.microsoft.com/en-us/library/office/aa171543(v=office.11).aspx
    How to: Programmatically Insert Text into Word Documents
    http://msdn.microsoft.com/en-us/library/vstudio/6b9478cs.aspx

  • Save document from word into sharepoint library does not work !

    Hi,
    I'm trying to resolve a problem that i have with word and my sharepoint website.
    Some of my users have to open and RDP session on a windows 2008 server and work from there. They open their session with their credential and they do everything they do in local on sharepoint using IE.
    BUT, we have always and ever had an issue on this server as they c'ant save a document (Word or Excel) from office. They have to upload it from sharepoint uising IE. In example, i want to save my document from word into the sharepoint document library I  have
    this error message :
    "Windows doesn't find (http://intranet.sharepoint.com/DocumentLibrary/). Check and retry".
    If I open my sharepoint site and i upload the document it works perfectly. Also if I open and edit an existing document from any library it will work with word. The problem seems to happen when i want to browse sharepoint from word for saving files...
    As this server is a windows 2008, IE version is 9 and the office version is the same as on all computers (Office 2010 SP2 32Bit)
    Any help would by appreciated
    Regards

    Hi,
    I understand you encountered the issue when save document from Office client application to SharePoint 2010 site.
    Is there any Proxy settings in networking side? Please bring up IE > Internet options > Connections > Lan settings. If so, please uncheck options in Proxy server and test the issue again.
    If you have deploy GPO to add SharePoint site into Trusted sites, please check if there is any other GP associated with trusted sites that might affect the issue. You could also remove it from Trusted sites via IE options and test the issue again.
    In addition, please provide more error message to help narrow down the issue, you could locate error information in Event log at least.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • How does one add tables to an existing universe using COM designer SDK.

    Morning All
    How does one add tables to an existing universe using COM designer SDK. I have tried:
    objUniverse.Tables.Add (strTable_Name)
    but get "Cannot create Table" error.
    Any ideas?
    Thanks in advance.
    Anita

    Hi Anita,
    -Use the Add method to add classes and objects to an existing universe using a VB 6 application.
    Adding a Class
    Definition: Function Add(Name As String) As Class
    Syntax: NameOfClassesVariable.Add
    Adding an Object Instance
    Definition:  Function Add(Name As String, [ClassName As String]) As Object
    Syntax: NameOfObjectsVariable.Add(name, [class])
    - name is the name of the object.
    - class is the name of the class containing the object. This parameter should be used in cases where more than one objects exist with the same name.
    Sample Visual Basic 6 Code
    Dim DesApp As Designer.Application
    'MODIFY AND EXPORT CLASSES AND OBJECTS OF AN EXISTING UNIVERSE
    Sub modify_and_export_universe()
    Dim DesUnv As Designer.Universe
    Dim DesCls As Designer.Class
    Dim DesObj As Designer.Object
    Dim DesDBCol As Designer.DBColumn
    Dim DBColName As String
    Set DesApp = New Designer.Application
    'Login to designer
    Call DesApp.LogonDialog
    'Make sure to log on with your administrator profile
    'e.g : "hostname","username", "password","Enterprise"
    'Make Designer application visible
    DesApp.Visible = True
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'to Open  locally  the universe you want to modify
    'Set DesUnv = DesApp.Universes.Open("club_uni")
    'Use OpenFromEnterprise method (Universes Class) to import a universe from the repository and opens it
    Set DesUnv = DesApp.Universes.OpenFromEnterprise("Universes", "club_uni", False)
    'Add a valid connection which already exists
    DesUnv.Connection = "club"
    'open the universe
    'Call DesApp.Universes.Open("club_universe")
    'Add the table Account and refresh the view in the main window
    Set DesTab = DesUnv.DBTables.Item("Customer").Insert
    DesUnv.ArrangeTables
    'Add a class
    Set DesCls = DesUnv.Classes.Add("Class MyCustomer")
    'Looping through all the fields of the DB Table Account
    For Each DesDBCol In DesUnv.DBTables.Item("Customer").DBColumns
    'Store name of the column
        DBColName = DesDBCol.Name 
         'Add an object to the class
        Set DesObj = DesCls.Objects.Add("Obj " & DBColName)
         'Affect a field to the object
        DesObj.Select = "Customer" & "." & DBColName
    Next
    'Save the existing universe with the same name club_uni or you can change
    DesUnv.SaveAs "club_uni"
    MsgBox "Universe created and saved Class MyCustomer has been added!!"
    'Close the universe
    UnvFullName = DesUnv.FullName
    MsgBox "The UniverseFilePath is " & UnvFullName
    'Close the universe
    DesUnv.Close
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'Export the universe to the CMS DB (to the last universe folder)
    'Make sure you save the universe before exporting it
    Call DesApp.Universes.Export("Universes", UnvFullName)
    MsgBox "This document has been exported successfully !!"
    'Close designer
    DesApp.Quit
    Set DesApp = Nothing
    End Sub
    Hope this helps.
    Regards,
    Deepti Bajpai

Maybe you are looking for