Announcing Support for RTL in the HtmlConverter.cs Module

Hi all,

Today I am announcing support for RTL languages in the HtmlConverter module that is part of PowerTools for Open XML.

RtlConversion-b

Please give it a try and let me know how it goes…

Cheers, Eric

 

!!!

6 Comments »

  1. Unable to retrive xml from alt chuk parts said,

    July 15, 2014 @ 10:29 am

    Please help regarding getting xml from altchunk in word document. Here is the code which I am using but its throwing an error ‘Root element is missing.’

    using (OpenXmlMemoryStreamDocument streamDoc = new OpenXmlMemoryStreamDocument(wmlDoc))
    {
    using (WordprocessingDocument wDoc = streamDoc.GetWordprocessingDocument())
    {
    foreach (var altChunkPart in wDoc.MainDocumentPart.AlternativeFormatImportParts)
    {
    var package = altChunkPart.OpenXmlPackage.Package;

    var parts = package.GetParts().ToList();

    foreach (var packagePart in parts)
    {
    var documentPart = package.GetPart(packagePart.Uri);
    var stream = documentPart.GetStream();
    string altChunkPath = documentPart.Uri.OriginalString;
    XNamespace pkg = “http://schemas.microsoft.com/office/2006/xmlPackage”;
    using (StreamReader streamReader = new StreamReader(stream))
    using (XmlReader xr = XmlReader.Create(streamReader))
    {
    XElement element = new XElement(pkg + “part”, new XAttribute(pkg + “name”, packagePart.Uri),
    new XAttribute(pkg + “contentType”, packagePart.ContentType), new XElement(pkg + “xmlData”, XElement.Load(xr)));
    }
    }
    }
    }
    }

  2. Raul Zavala said,

    August 25, 2014 @ 6:10 pm

    Hi, Eric!

    Watching your work on Open XML more recently PowerTools Core 2.7.04, there is some other of your developments that will allow HTML/CSS to DOCX again.

    Best regards

  3. Julian said,

    January 17, 2015 @ 11:29 am

    Hi Eric,
    I wanted to do some document generation work using XML and the DocumentGenerator however the download files (to skydrive) all seem to be broken.

    Are we still able to get the program, with thanks!

  4. Jojo said,

    April 26, 2015 @ 8:28 am

    Hi,Eric,
    I need some of your help.I wanted to generate html document through using OpenXmlPowerTools and ,but I’m not install Microsoft Office soft.As a result, code that calls GetXDocument() and then changes the same part using the the Open XML SDK and calls GetXDocument() again will receive a exception.
    Please give it a try and let me know how it goes…

    Best regards

  5. vaibhav said,

    August 22, 2016 @ 10:24 am

    Hi,
    I am using the openxmlpowertools.dll V4.2.0.0 which require DocumentFormat.OpenXml.dll V2.6.0.0,but for some already implemened funcanality I need DocumentFormat.OpenXml.dll V2.0.5022.0, How can I achve it
    I have tried to use the bindingredirect

    Thanks
    Vaibhav

  6. Eric White said,

    September 14, 2016 @ 12:51 pm

    Hi Vaibhav,

    In order to do this, the way that I would proceed is to put the V2.0.5022.0 functionality into another DLL or EXE, and invoke it. There is no way to reliably have an application use both assemblies simultaneously, AFAIK.

    Cheers, Eric

RSS feed for comments on this post · TrackBack URI

Leave a Comment