Declined
Last Updated: 22 Feb 2017 12:37 by ADMIN
Brian
Created on: 15 Jan 2015 03:59
Category: UI for WPF
Type: Feature Request
1
WordsProcessing: Implement cleaner interface for programmatic document creation in RadFlowDocument
Generally, allow more straightforward setters of style related properties without going through 2-4 levels of temporary objects.  For example, when dealing with tables, there is no obvious way to set line spacing or paragraph spacing globally for the table.  Should have TableCell.Blocks.AddText("New Text") instead of AddParagraph, which provides spacing you don't want or need.

Also, when you want to set the FontSize, FontWeight, and FontFamily all at once, there is no easy way to do that.  Also no global way to do that for a section, page, table, etc.

The above would make it a LOT easier to create documents programmatically.  I would like to see more parameterized constructors for common style attributes by type.  You will discover the challenges by creating a richer document from scratch with several tables, styles, left and right justified content on the same line, etc.  Same for easily setting header and footer content.

Thanks!  Great work so far, I love it!
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
ADMIN
Petya
Posted on: 19 Jan 2015 10:43
Hello Brian,

Thank you for sharing your feedback, we appreciate it.

When trying the library out, did you happen to come across the RadFlowDocumentEditor class? Its purpose is to allow easy creation of documents, setting properties for all newly created document elements, setting headers and footers, etc. You can check this article for more information: http://docs.telerik.com/devtools/wpf/controls/radwordsprocessing/editing/radflowdocumenteditor.html as well as our examples.
ADMIN
Tanya
Posted on: 13 Feb 2015 09:48
Hello Brian,

As we have not heard back from you, I am closing this item. If you are still experiencing troubles in working with the API, please, contact us back.