Eric White

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 253 total)
  • Author
    Posts
  • in reply to: Word Document Table Borders #3716

    Eric White
    Keymaster

    Hi,

    Specifying the font for a run is one of the more complex areas of Open XML WordprocessingML. There are four fonts specified for every run, and depending on the code block of the character, it uses one of the four fonts.

    The easy solution is to set the same font for all four fonts, i.e. ascii, ansi, cs, eastAsia for your run with the symbol.

    With regards to the borders disappearing, they may be too thin. Try making them thicker.

    Cheers, Eric

    in reply to: Using library from Reactjs #3715

    Eric White
    Keymaster

    Hi,

    I have not done any work with regards to ReactJS, nor tried to use Open-Xml-Sdk-JavaScript with it, so unfortunately do not have an answer for you.

    However, you have, of course, the entire source code for Open-Xml-Sdk-JavaScript. It is not a very complex library, so should be easy enough to suss out.

    Cheers, Eric

    in reply to: Extract FieldCodes #3714

    Eric White
    Keymaster

    Hi Manu,

    With regards to FieldRetriever, I believe that you call this on the entire document, and it returns the entire set of field codes for the document. However, it has been many years since I wrote and used this. Have you gone through the examples in Open-Xml-PowerTools? There is a FieldRetriever01 example in there.

    Cheers, Eric

    in reply to: WmlToHtml in Revision Tracked Document #3713

    Eric White
    Keymaster

    Hi,

    I can’t remember specifically what I did with regards to formatting on the tracked changes. This is a brand new module, so I am not surprised that there are issues with regards to formatting.

    I will add this issue to the list, although it is difficult to say when I will be working on this module.

    I’m glad you enjoy the library. 🙂

    Cheers, Eric

    in reply to: List Numbering on Merged Docs #3699

    Eric White
    Keymaster

    Hi Alan,

    Make sure up update the w:numId values in the styles.xml part.

    -Eric

    in reply to: Change text in Powerpoint keeping style in c# #3694

    Eric White
    Keymaster

    Hi,

    Sorry for the slow response – was on vacation, traveling, other issues…

    Please check out this blog post and video:

    Generate Open XML Presentations using a Presentation Template

    It presents my recommended approach for generating presentations from a template.

    Cheers, Eric

    in reply to: Template problem with merging slides #3693

    Eric White
    Keymaster

    Hi,

    You can ignore those errors. That is a bug in the Open-Xml-Sdk validation, where it complains about the existence of an attribute that is allowed.

    Are you able to open and use the presentations? If that is the only error, you should be able to.

    I regularly search and remove from consideration those errors when validating presentations.

    -Eric

    in reply to: Beginner needs a little direction. #3692

    Eric White
    Keymaster

    Hi Scott,

    Very sorry for the slow response – I was on vacation and traveling. I’m back in the saddle again.

    Your scenario is very doable using Open XML.

    Take a look at the screen-casts for DocumentAssembler:

    http://www.ericwhite.com/blog/blog/documentassembler-developer-center/

    The approach is that you generate the appropriate XML from your data source, have a template that refers to your newly generated XML, and then you generate your desired document by invoking a single method.

    I also recommend watching the screen-cast series on Open XML and WordprocessingML – links in the side bar.

    Cheers, Eric

    in reply to: How to update Micro-enabled excel (*.xlsm)? #3691

    Eric White
    Keymaster

    Hi,

    Very sorry for the slow response – have been on vacation, traveling, etc.

    You can open a macro enabled XLSM using the Open-Xml-Sdk, but you are limited to directly changing the contents. There is no calculation engine in the Open-Xml-Sdk, so if you change values, it does not change the values in the dependent cells. And custom functions are also not part of the functionality of the Open-Xml-Sdk and Open-Xml-PowerTools.

    Cheers, Eric

    in reply to: Open docx file #3690

    Eric White
    Keymaster

    Hi,

    Very sorry for the slow response – have been on vacation and traveling.

    I’m not clear about your question – are you using a specific programming language? Are you using the Open-Xml-Sdk?

    Best, Eric

    in reply to: Embedded Object to Image/Vision VDX file #3689

    Eric White
    Keymaster

    Hi,

    I have no experience with this scenario, so unfortunately, don’t have any advice for you.

    I have never looked at how embedded Visio objects are stored. I always presumed that the approach is similar to that of embedded spreadsheets and so on, but don’t know about the format of what is in the Visio file, or if in the WordprocessingML, there is a cached image for the embedded object. But it should be relatively straight-forward to figure out.

    Best, Eric


    Eric White
    Keymaster

    Hi,

    Sorry for the inconvenience. This is something that I hadn’t contemplated when writing this module. Should have, but didn’t. What is probably happening is that it is generating runs as direct children of the w:body element. In general, HtmlConverter expects block-level content as children of the element.

    This will require a certain amount of work to enhance HtmlToWmlConverter to do this. I’ve added this item to my list.

    I am not certain as to when this will get on my schedule. Probably not in the immediate future, though. Wish I had a better answer for you, but I don’t.

    Cheers, Eric

    in reply to: How to make a simple Excel Spreadsheet? #3687

    Eric White
    Keymaster

    I also have heard good things about https://closedxml.codeplex.com/

    in reply to: Insert footer into HTMLtoWML converted document. #3686

    Eric White
    Keymaster

    Hi,

    Sorry for the slow response. Have been on vacation.

    With regards to footers and headers, there is some good background information that you should know. Take a look at screen-cast #8 in the following series:

    Introduction to WordprocessingML

    It is fairly complex to create new headers / footers in a document. You have to update the section properties as appropriate, and then navigate to the footer part. You will then find the relevant markup in the footer part.

    Cheers!

    in reply to: VSTO merging document level templates #3683

    Eric White
    Keymaster

    Hi Chris,

    I am not a VSTO expert, but I would not be surprised that there is no way to change doc defaults on an open document from VSTO. (But I would not be surprised if there is a way.)

    Sorry I don’t have a better answer.

    Sorry also for the slow response – was on vacation, also dealing with family issues.

    Cheers, Eric

Viewing 15 posts - 76 through 90 (of 253 total)