![]() ![]() Application WordApplication = new .Application() I want to split this paragraph between pages, but I don't know how to detect where I have to do the split.Įventually, I finished up with this, and it works (it's lame, it's ugly, but it does what it should): public string GetPagesDoc(object Path) Pages += String.Format("\r\n", InnerText) īut, when algorithm gets to paragraph, which starts on one page and ends on another, it decides that paragraph should be on next page. ![]() NumberOfPage = _Information(WdInformation.wdActiveEndPageNumber) Paragraph CurrentParagraph = Doc.Paragraphs So I came up with something like that: List Pages = new List() įor (int i = 0 i < i++) I understand (at least I think so) that there is no direct way to do that. What I would like to get is List Pages, where index is the number of page. I'm trying to get all pages of MSWord document via (I'm using C# in VS2012). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |