Sign In
Windows and .NET Programming
Programming Debugging WinDBG
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.net
C++
code
COM
DOCX
EMF
EMF+
excel
Extract
Hook
Large File Editor
modify
OLE
OpenDoc
OpenXML
sample
styles
Tool
vba
Windows 7
Word
WPF
XLSX
XML
XPath
Archive
Archives
March 2012
(1)
January 2012
(1)
November 2011
(1)
October 2011
(1)
July 2011
(1)
June 2011
(1)
May 2011
(1)
April 2011
(1)
March 2011
(2)
February 2011
(2)
January 2011
(1)
December 2010
(1)
October 2010
(1)
September 2010
(1)
August 2010
(1)
June 2010
(2)
April 2010
(1)
March 2010
(3)
January 2010
(1)
September 2009
(4)
MSDN Blogs
>
Windows and .NET Programming
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Windows and .NET Programming
Building a large text file editor – Part II
Posted
2 months ago
by
Costin Boldisor
0
Comments
In the previous post I created a class that was going to be used as an interface between a large file editor and the file on the disk. Since then I've been implementing the user interface and, obviously, the RevisionStream also needed some readjustment...
Windows and .NET Programming
Building a large text file editor – Part I
Posted
4 months ago
by
Costin Boldisor
2
Comments
The purpose of this series of two blog posts is to illustrate how an editor for large files can be implemented. The first part will address the model behind the editor whereas the second part will include an actual UserControl that allows users to view...
Windows and .NET Programming
Monitoring when registry keys are modified
Posted
5 months ago
by
Costin Boldisor
0
Comments
Let’s say you want to see where a certain setting from Word Options is saved in Registry. The easiest method is using Process Monitor. Add a filter on Process Name and Operation, start Word and that’s that: If we uncheck “Allow background...
Windows and .NET Programming
Back to school - Office art geometry
Posted
6 months ago
by
Costin Boldisor
0
Comments
Let's start off with the following observation- the following two shapes have the same Left and Top coordinates: What's different is obviously the rotation. What Office saves for a shape is the Left and Top coordinates together with a Rotation....
Windows and .NET Programming
Using DDE in C# for Office automation
Posted
10 months ago
by
Costin Boldisor
0
Comments
Looking for some code samples how to pass DDE messages from a .NET program I found out that there‘s a great library already in place that facilitates working with DDE: the NDde project from Codeplex: http://ndde.codeplex.com/ However, I just...
Windows and .NET Programming
Using .NET library in VBA
Posted
11 months ago
by
Costin Boldisor
0
Comments
Three easy steps for exporting .NET functionality to VBA: 1. Write a source file: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms;...
Windows and .NET Programming
Recovering the pictures from a PPT file
Posted
over 1 year ago
by
Costin Boldisor
3
Comments
The PPT file format is very well documented as per Microsoft’s Open Specification Promise. However, accessing any part of a PPT file isn’t really a snap. I’ve created a small C# program which parses the \Pictures stream from a PPT...
Windows and .NET Programming
Complex editing of XLSX files
Posted
over 1 year ago
by
Costin Boldisor
0
Comments
Editing Excel OpenXML documents using the OpenXML 2.0 SDK offers better performace and improved supportability compared to normal Office automation (e.g. VBA). There are also great examples on the Internet to get started: Office Open XML Formats: Inserting...
Windows and .NET Programming
Indenting XML files
Posted
over 1 year ago
by
Costin Boldisor
0
Comments
The operation of indenting XML files is pretty trivial when using the classes from the System.XML namespace. However, I often find myself trying to read canonical XML code from files. As such, a created a very simple tool that converts XML files to indented...
Windows and .NET Programming
List styles in Word document with preview
Posted
over 1 year ago
by
Costin Boldisor
0
Comments
The sample code from my previous post does a pretty good job listing the styles in a Word document. However, having a preview of these styles makes it a lot easier to spot the subtle differences than by using the Description object. For generating...
Windows and .NET Programming
Listing styles in Word document
Posted
over 1 year ago
by
Costin Boldisor
0
Comments
When dealing with Styles in Word you can never have too much control. This is when a listing of the existing styles and their descriptions helps a lot. Happily VBA provides a powerful way of getting details about a certain style through the Description...
Windows and .NET Programming
Brushing up on the WPF and Windows 7 Jump Lists
Posted
over 1 year ago
by
Costin Boldisor
0
Comments
This is just a summary on the new Windows 7 features and how these can be implemented in .NET. There is plenty documentation on both Windows Presentation Foundation and the Windows 7 SDK but actually implementing a solution is a bit harder. So here...
Windows and .NET Programming
XML Highlight in RichTextBox
Posted
over 1 year ago
by
Costin Boldisor
2
Comments
Recently I’ve been looking for some piece of code that would perform XML highlighting in a Rich Text Box. The Internet provides several free samples and several commercial samples but I wasn’t really satisfied with what I found, mainly because...
Windows and .NET Programming
Create metafile from icon and label
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
Going further on the Windows Metafile problematic from a previous post , I’ve created a sample code for illustration a pretty useful functionality from OLE. What the OLE function implemented here does is to generate a metafile with the icon and...
Windows and .NET Programming
DLL Injection
Posted
over 2 years ago
by
Costin Boldisor
2
Comments
In a previous post , I was discussing the idea of adding more events to Excel by adding a window hook. Under the hood, the idea is that we can load a DLL in the Excel process simply by transforming that DLL into a COM add-in, which is automatically loaded...
Windows and .NET Programming
Extra Events for Excel
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
As a developer of Automation solutions for Microsoft Office one might feel the need of some extra events. Quoting from the MSDN VBA Object Model reference, here is the list of events from the Excel.Application object: AfterCalculate Event CalculationDone...
Windows and .NET Programming
EMF+ Untangled
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
A common belief regarding the EMF format, at least as it appears by browsing technical blog posts, is that this format was never documented by Microsoft and that there are many unknown facts about it. This opinion is wrong, as the format has complete...
Windows and .NET Programming
OLElsTool - Working with OLE storages
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
I’m posting here a tool that can be used for viewing and modifying OLE storage. The syntax is as follows: Usage: OLElsTool.exe <File_In> <Options> -L: list -X <part> <toFile>: extract part -M <part> <fromFile>...
Windows and .NET Programming
OpenDoc tool unveiled
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
After the previous blog posts with the OpenDoc tool, I’ve learned that, while this tool can be very helpful, it also raises a lot of questions mainly because it lacks proper documentation. As such, I’ve decided to post the source code giving...
Windows and .NET Programming
OpenDoc tool reloaded
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
In a previous post , I described a tool for editing OpenXML documents from a managed context. I've added three more features for some common tasks: 1. Remove a part Syntax: OpenDoc.exe -r <Input file> <Part> Sample usage scenarios...
Windows and .NET Programming
Working with OpenXML documents
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
The default format for saving Excel, Word and PowerPoint documents has luckily changed since Office 2007 to the Open XML formats. There is good documentation available for these formats on: MSDN: Introduction to the Office 2007 file formats: ...
Windows and .NET Programming
External links in Excel files
Posted
over 2 years ago
by
Costin Boldisor
0
Comments
Topic This is a post that contains a tool for analyzing the external links in an Excel Workbook. The tool is intended to provide information regarding the linked workbooks, the cells from a workbook that contain external links, as well as the...
Windows and .NET Programming
Collecting crash dumps
Posted
over 2 years ago
by
Costin Boldisor
1
Comments
Introduction Getting near to the cause of an application crash once one has a crash dump is one of the easiest debugging tasks. The main problem in these cases is how to actually acquire a crash dump. This post discusses some basic scenarios for getting...
Windows and .NET Programming
Create Smart Document solutions in .NET Framework 2.0
Posted
over 2 years ago
by
Costin Boldisor
2
Comments
Creating a managed Smart Document project or Add-in for Office 2003 is a bit of a headache because of the many configuration problems one might encounter. Here is a short summary of the prerequisites of such a project on a target system: ...
Windows and .NET Programming
WinDBG Tutorial - Part 3
Posted
over 3 years ago
by
Costin Boldisor
0
Comments
Just short piece of information about Remote Debugging. Remote Debugging actually means connecting the debugger on one computer to a process on another computer. Typical scenario: PC 1 has a program that needs to be debugged. PC 2 does the debugging...
Page 1 of 2 (28 items)
1
2