Table Bookmark

Technical support for Spire.Doc

Moderator: iceblue support

Table Bookmark

Postby catalin » Mon Oct 15, 2012 6:03 am

Hi,

Is it possible to bookmark a table in a document? As i see, at the moment, bookmarks can only be inserted in a paragraph, and paragraph has no "AppendTable" Function.
catalin
 
Posts: 48
Joined: Wed Mar 14, 2012 12:56 pm

Re: Table Bookmark

Postby amy.zhao » Tue Oct 16, 2012 8:42 am

Hi catalin,

Thanks for your inquiry.
Spire.doc support the function, we provide you a sample demo. If you have any problem, please feel free to contact us.
Code: Select all
            Table table = section.AddTable(true);
            table.ResetCells(1, 2);

            TableCell cell = table.Rows[0].Cells[0];
            Paragraph paragraph = cell.AddParagraph();

            paragraph.AppendBookmarkStart("Table");
            paragraph.AppendBookmarkEnd("Table");


Best ragards,
Amy
E-iceblue support
User avatar
amy.zhao
 
Posts: 2279
Joined: Wed Jun 27, 2012 8:50 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests

cron