Create table in word document

hi all,
i create a word document through report.
is it possible to create a table through abap code?
thanks,
dana.

Hi MOKDEV,
>>I want to create table of content for word document and i want to get the content of this from page header and then to build the table
A collection of
TableOfContents
objects could represent the tables of contents in a document. When use Add method could add a tablecontent for a word document file. The below code provide a sample to create a tableConetent at the beginning of the document  from all the paragraphs
styled as either Heading 1, Heading 2, or Heading 3
Sub AddTableContent()
Dim myrange As Range
Set myrange = ActiveDocument.Range(Start:=0, End:=0)
ActiveDocument.TablesOfContents.Add Range:=myrange, _
 UseFields:=False, UseHeadingStyles:=True, _
 LowerHeadingLevel:=3, _
 UpperHeadingLevel:=1
End Sub
Best Regards
Lan
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Importing Tables from Word Documents

    I have a new job where the majority of my colleagues are PC users and we must work on common documents. I have no problem saving documents as a word file and opening word documents. But I have had some issues with Tables coming from a word document. I looked on the forum and learned about inline tables but I have been unable to take a table from a .doc file and change it to an inline table. Basically when the page ends, the table stops, even when there is more text. It is making it really frustrating for work as I have been copying and pasting the text from the table into a new document to edit it and then replacing the new text with the old. Can anyone help me figure out how to see the text in tables from word documents??
    Thanks,
    Amber

    It would be more efficient to use the true Office or one of the free clones: openOffice & neoOffice.
    Yvan KOENIG (VALLAURIS, France) Sunday, September 13, 2009 11:56:23

  • How  To create a new word document and to serve bookmarks

    how To create a new word document and to serve bookmarks

    there is an example :
    http://www.must.de/default.html?Javactpe.htm
    howerver ,I don't kown how to use in jsp!!

  • How to create index in word document?

    Hello,
    Is it possible to create a index in word document from abap code (ole)?
    Thank you for response..
    Alfonso

    1.Goto the transparent table  KNA1
    2. select the button Indexes (which is next to the techincal settings button)
    3.list of alredy existing indexes are displayed
    4. in the dialog displayed select the icon create.
    5. specify the name for the index to be created ( should start with Z)
    6. screen for specify the index fields will appear, specify the details based on your requirement.
    Note:
    1.creating an index will created a sorted  copy of the DB table with data  with limited fields
    2. Try using already created indexes , only if necessary create new index
    3. Here table KNA1 is used as an example

  • Insert table into word document

    Good day,
    I am creating a Word document using a workflow and saving it to a library. I am then updating metadata which pulls through into the word document through Document property mapped fields.
    I however need to insert a table with data from a SharePoint list.
    I am using a Visual Studio workflow so I need any direction or samples on how to do this.
    Thank you!

    Hi,
    We can use Open XML to achieve it, here are some articles from MSDN for your reference:
    Generating Documents from SharePoint Lists using Open XML Content Controls
    http://blogs.msdn.com/b/ericwhite/archive/2009/10/14/generating-documents-from-sharepoint-lists-using-open-xml-content-controls.aspx
    How to: Insert a table into a word processing document (Open XML SDK)
    https://msdn.microsoft.com/en-us/library/office/cc850841.aspx
    Walkthrough: Creating a Table in Word
    https://msdn.microsoft.com/en-us/library/office/aa192483(v=office.11).aspx
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Unable to create PDF from Word document.

    I was trying to create a PDF file from a Word document but got the following error message: "An unexpected error occurred.  PDFMaker was unable to produce the Adobe PDF" and no PDF was created.  There was no error number.  Has anyone seen this error and is there a work around.  This is Acrobat XI Pro and was installed within the last few days.

    Can you print to the Adobe PDF printer? Have you updated AA XI (now at 11.0.05)? What version of WORD (AA XI does not work with PDF Maker on all versions of WORD)?

  • Create MS Office Word document

    I want to create a MS Office Word document. Can someone tell me how to that?

    You really should start a new Topic for your new question.
    What do you mean by "local" printer? One attached to the server running Central? In my experience that isn't usually done because most of today's printers can be connected directly to the network and addressed via IP #. Actually, it doesn't make any difference what you mean.
    Once the printer is defined in the JMD you can use the
    b -zPrinterName
    parameter to specify the printer. If you do it on the ^job line and use the
    b @OtherJobTokens.
    parameter in the task definition you only need a single "jfmerge" task to be able to send print to any defined printer. If you put it directly on the task definition that task would always send print to the defined printer and you would need multiple "jfmerge" tasks for multiple printers.
    If the form is designed with multiple presentation targets you should also include the
    b -aspDriverName
    parameter on the ^job statement (for a single task handling multiple printers) or within the "jfmerge" task definition, or - better yet - in the printer definition.

  • Handwritten text missing when I create pdf from word document

    I have signed (as 'ink') a word document when using a tablet PC.  When I convert the document to a pdf, the handwritten signature has disappeared.  How can I stop this please?  It is not a digital signature.

    Please indicate the versions of WORD and Acrobat. Also, tell us just how you are creating the PDF. It may be that Deepak's suggestion works, but he has also made an assumption about how you are creating the PDF.

  • How to get the number of page by creating OLE microsoft word document

    Hihi Experts,
    I have generated a word document using ole in sap abap report.
    May i know which command can i use to call the word object to get the number of page before closing the word document?
    eg. call method of wordobj 'insertpagefield' ? and i need to require the page number in a variable eg. gv_pagenumber for other filtering purposes.
    Thanks and Regards,
    li Hui
    Edited by: lihui lil on Aug 11, 2009 9:35 AM
    Edited by: lihui lil on Aug 11, 2009 12:36 PM

    hi,
    use the following code:
    CALL METHOD OF gv_selection 'Information' = gv_curpage
        EXPORTING
        #1 = 3. " get current page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = gv_curpage. "show current page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = ' of '.
      CLEAR gv_endpage.
      CALL METHOD OF gv_selection 'Information' = gv_endpage
        EXPORTING
        #1 = 4. "get total page number
      CALL METHOD OF gv_selection 'TypeText'
        EXPORTING
        #1 = gv_endpage. " show total page number
    Edited by: VoonHan on Oct 13, 2009 7:35 AM

  • Anyway to create/modify a word document on IPad?

    I heard there was a software program for IPad that I could open and modify word documents. I can't seem to find it in Apple Store?
    Thanks.

    There's also Documents To Go (http://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8), and probably a few others

  • Printing Table as Word Document

    Hi all,
    I recently moved to staging. I tried printing a table to a word file, but it returns weird characters and screws up all the format. How can I go about solving this problem?
    Thanks!

    I should have been more careful of the wording. I was trying to "export" a table either in PDF or word format. The PDF file works fine, but when if I export in Word file, I got an encoding problem that it returns something like this:
    %PDF-1.3
    4 0 obj
    << /Type /Info
    /Producer (null) >>
    endobj
    5 0 obj
    << /Length 631 /Filter /FlateDecode
    >>
    stream
    x]@ sn|p[] 7.
    NwIXNP = [3 p ip ? F4֒حxl:J R?铫%     (Ԋ(BEP     [
    which is totally not what should return from my table.

  • I have a used Mac OSX 10.4.11 in good condition, but I have several concerns. The internet is slow, and doesn't support Google Chrome.  Also, when I create excel and word documents, people aren't able to open them on other computers.

    Is there a way to upgrade my Mac software without paying a fortune? My main concern is Word and Excel - I need people to be able to open these files as attachments for work purposes.  Thanks!

    The Snow Leopard 10.6 DVD should still be available at this time from Apple for $19.99. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775 to purchase it. It may still be in the Legacy Products list. The App Store which is required to download 10.7 Lion is part of the 10.6.6 update.
    If you wait to long and they no longer have any in stock you will have to buy it from eBay or Apple resellers that still have stock. But you will have to pay a premium since the DVDs are no longer being made. Snow Leopard DVDs are already over $100 on Amazon.
    http://www.ebay.com/sch/i.html?_nkw=10.6+snow+leopard&_sacat=0&_odkw=mac+os+10.6 &_osacat=0
    You can upgrade from 10.4 straight to 10.6 with no problems. Any program that runs under 10.4 should run under10.6. See this list for compatibility with 10.6: http://snowleopard.wikidot.com/  You might have to upgrade some drivers for printers, etc....
    And you will have to install Rosetta if you have any Power PC applications http://www.macobserver.com/tmo/article/snow_leopard_installing_rosetta/   I recently upgraded an older MacBook (model 1,1) straight from 10.4 to 10.6.

  • How To Create MS-Word Document in JAVA ?

    I want to create a MS-Word Document using JAVA.
    then i want to create table in that document.
    is there any way through which i can create a Object of MS-Word in JAVA.

    As far as I know. There is no support. And you can't get the file format specification for MS Word documents.
    My advice is to look in to RTF, the spec is out there, although its not very nice.
    I think you can do tables in RTF, and you just need to write your output as text and MS word will load it.
    One thing to do is create a table in Word and save it as RTF, then look at the text and try to see whats going on. Although it won't be pretty !! Good luck

Maybe you are looking for