Import and Export to DOCX by using the Telerik Document Processing library

7 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 16 Jun 2014 Link to this post

    Requirements

    Telerik Product and Version

    Q2 2014

    Supported Browsers and Platforms

    All browsers supported by the Telerik UI for ASP.NET AJAX

    Components/Widgets used (JS frameworks, etc.)

    .NET4+


    PROJECT DESCRIPTION 
    This code library demonstrates an approach to implement a custom export/import functionality to .docx files using the Telerik Document Processing libraries. 

    Since Q2 2014 version the installation of the Telerik UI for ASP.NET AJAX bundle comes with the Telerik.Windows.Documents assemblies. More details about how to get them, their purpose and additional documentation links are available in the Included Assemblies article.

    The needed libraries are:

    • Telerik.Windows.Documents.Core.dll
    • Telerik.Windows.Documents.Flow.dll
    • Telerik.Windows.Zip.dll

    After adding references to these assemblies you should implement custom classes responsible for the import and export functionality. Note that the class for exporting the HTML to .docx should inherit the RadEditorExportTemplate class.

    Further details about the classes and methods used in the samples are available in these help articles:

  2. Qwicksoft
    Qwicksoft avatar
    10 posts
    Member since:
    Dec 2013

    Posted 23 Jul 2014 in reply to Telerik Admin Link to this post

    Hi,
             How to Import and Export to PDF by using the Telerik Document Processing library..
  3. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 23 Jul 2014 Link to this post

    Hi,

    Currently using the WPF Document Processing libraries to export RadEditor content to PDF is not possible.

    This is an ongoing task and when such functionality is possible, proper materials with corresponding information on how to achieve it will be posted.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  4. Luis
    Luis avatar
    8 posts
    Member since:
    Jul 2016

    Posted 16 Aug Link to this post

    How can I import a DocX created with Telerik into a RadEditor passing by the HtmlDocumentProvider without loosing the format of the document (Justification, bold, etc.)?
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 18 Aug Link to this post

    Hello Luis,

    RadEditor, ultimately, takes an XHTML string for its content. If you have a docx file that you need to put in RadEditor, you have a few options:

    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  6. Luis
    Luis avatar
    8 posts
    Member since:
    Jul 2016

    Posted 18 Aug Link to this post

    That is correct, I have tried the stream and the bytes array and in both cases I lost the format, the docx is created vía telerik documents, using a document.editor, and even transforming it to htlm the format is lost, I have created a new one docx using paragraphs and sections in place of document.editor and the format is not lost
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 19 Aug Link to this post

    Hi Luis,

    I advise that you open a support ticket for the RadWordsProcessing for ASP.NET AJAX product and give us an example what you are doing so we can see what's going on.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top