Does an Office Open XML inspector tool exist? - ms-word

Does anyone know if a tool exists that lets you inspect Office Open XML (e.g., a Microsoft Word .docx file) in the same manner that Chrome lets you view the fully rendered web page alongside the underlying element structure and interact with it in real-time?
I am working on a project where I need to be able to do some fairly fine-tuned, programmatic manipulation of docx files. Having such a tool would really help provide a better understanding of the Office Open XML spec and its behavior.
Kind regards.

I am a contributor on a new VS Code extension that can modify OOXML parts and get diffs of the xml when there are changes from outside e.g. Word edits a document in real time the way you describe. You can get it on the VS Code Marketplace:
OOXML Viewer
And review the code on GitHub:
OOXML Viewer Repo

I am not aware of a convenient tool like that. It should be relatively easy to make an Add-in that gets the relevant OOXML from the document selection, but I couldn't find anything on the Office Add-ins Store, or Script Lab samples/snippets. (The closest I could find, might be this Web Add-in sample app).
With the Open XML SDK Productivity Tool, you can also modify document and use the Compare Files feature to see the changes in the OOXML, and the code needed to reproduce them.
There are few more tools for Visual Studio and Chrome mentioned on Eric White's Blog:
Open XML Package Editor Power Tool for Visual Studio
OOXML Tools Extension for Chrome

Related

Visual Studio Code—Bulk Import of Files into a Project

I have an existing Web site with over 65,000 static HTML, CSS, JavaScript, MIDI, OGG, JPEG & PDF files. I’ve been managing the site with Front Page, and now Expression Web 4 (EW4), for many years, but Microsoft has dropped support for EW4, so I’m shopping around for software to take its place.
I’m currently looking at Visual Studio Code (VSC). The tutorials/videos I’ve seen show how to add files to a VSC project one at a time, but that’s obviously unrealistic with a very large Web site.
So my question is this: Can I import all my Web site files into a VSC project in a single operation?
Ideally, I'd like to do something like drag the top level Web site folder into the VSC workspace, then let VSC import all 65K+ files in one fell swoop. I don’t see a way to do that, though it’s entirely possible I’ve missed it. With the current state of my knowledge, reading through all the VSC material online feels like sipping from a fire hose!

Creating complex Office 365 documents in VS Code

I have a web application that creates complex Office documents in Excel, Word, and PowerPoint; and I need to convert the application from Visual Studio to Visual Studio Code. The previous application uses the Microsoft Office Interoperability Assemblies to generate and manipulate the documents. So far I haven't found any comparable interface or extension for Visual Studio Code. Can someone point me to a possible solution?
You can use the same technique even in VSCode. It allows adding COM references to projects, see Adding Microsoft.Office.Interop.Excel to VS Code for more information.
The previous application uses the Microsoft Office Interoperability Assemblies
Office Automation is used for dealing with Office applications locally. If you are moving the code to VSCode you may also consider using the Open XML SDK instead, of course, if you deal with open XML documents only. Read more about that in the Welcome to the Open XML SDK 2.5 for Office article. Also you may take a look at any third-party components that don't require Office applications installed on the system.

How can I configure Visual Studio Code to recognize files with extensions other than .js as Javascript

We have a QA tool (SmartBear's TestComplete) that uses javascript as a scripting language, but names the file with a ".sj" extension instead of ".js". I would like to use Visual Studio Code to edit those files, with all the nice intellisense and other tooling that comes with it, but I can't figure out how to configure it to recognize .sj files as javascript files. Any ideas?
Answering my own question, just for future readers that may be searching for the same thing.
According to a tweet from #code, this is not yet possible, but is coming "soon".

Is TFS Source Control really feasible for Dynamics CRM?

I'd really like to get a CRM solution under source control but there are a lot of issues. I was excited to see the SolutionPackager tool - thinking MS finally gave us a way to do this. However the tools to export the solution, extract it to files and check it into source control are not integrated. I'm working on a C# project that ties everything together because it's easier to work with the APIs in a single C# solution than deal with a combination of command line utilities such as tf.exe, PowerShell commandlets and plain old .cmd files.
Source files for plugins and Silverlight pages are easy to deal with but I'm looking to get all of the customizations under source control. SolutionPackager works well for tracking customizations made in the CRM interface, but fails in a lot of other areas. I want to create VS solutions for my web resources and reports but I have issues with the VS project and solution structures. SolutionPackager expects to find things where it puts them for repackaging and I'm sure it would not like to see a bunch of .sln, .csproj and .vspscc files interspersed with them.
I figured putting the VS solutions in a separate folder would be the answer but it's not easy. If I create a project for my web resources and try to put my existing .html, .css and .js files into it it wants to copy those into the project folder. I have to remember to use "Add As Link" each time. Worse yet, if I try to do the same with SSRS reports, the "Add As Link" feature isn't even available.
Has anyone done this successfully? I'm open to any suggestions.
I have seen below link but i have not get chance to implement it.when i have try it will post information.
http://blogs.msdn.com/b/crm/archive/2013/05/17/release-alm-for-microsoft-dynamics-crm-2011-crm-solution-lifecycle-management.aspx

OLE Automation basics with Perl

I'm new with this Perl Win32::OLE automation. I have been reading and trying out some examples. I have a few questions (excuse me if i'm using incorrect terminologies - do correct me):
Can OLE be used to automate Visual
Studio 2005? I only found examples
with Word, Excel and IE. How do
you know which app can be used?
How do I get the name of the program ID
to be used. For instance, "Excel" in
Win32::OLE->new('Excel.Application')
How do I get the available functions
for each programs. For instance,
Workbook, only can be used with
Excel, not Word.
Thanks for your time :)
The Win32::OLE documentation provides a rudimentary starting point.
As for your questions:
I do not think VS 2005 provides an OLE automation interface.
See this post on PerlMonks.
An excellent source of information for Microsoft Office applications is the Object Browser. You can access it via Tools -> Macro -> Visual Basic Editor. Once you are in the editor, hit F2 to browse the interfaces, methods, and properties provided by Microsoft Office applications.
Typically, the OLE automation model is up to the software you are trying to automate. You can usually figure it out by looking at the documentation, for example for the Microsoft products it will be in MSDN. For Visual Studio and the Office tools, you can also use the macro recorder to help figure out the syntax, since you can record a script that does vaguely what you want and then modify it.
Also, Visual Studio comes with the tool called "OLE/COM object viewer" (Oleview.exe) which can be used to open and read the type libraries for some target software. The type library is usually contained within a .tlb or .dll file and contains the more or less full description of the OLE Automation types defined for the application. You can look at the .idl thus reverse engineered and try to figure out what kind of things are possible.
To get a brief overview and introduction I would suggest looking at this The Perl Journal #10. Created by Jan Dubois.
Also here are some examples, if you havn't stumbled across it yet Examples
Hope it helps