Wednesday, March 3, 2010

Creating URL shortcuts in windwows.

URL shortcuts are just ini files:

[InternetShortcut]
URL = file:///c:\MyApps\MySuperDelphiProgram.exe
IconIndex = 0
IconFile = C:\MyFolder\MyDelphiProgram.exe

Just remember that file extension has to be .URL (not .url, upper case is mandatory.)

Tuesday, January 19, 2010

Opening and Editing MS Office Documents Online Using Local MS Office Installation

Just a memo...

try {
var sho = new ActiveXObject("SharePoint.OpenDocuments");
if (sho) {
if (!sho.EditDocument('http://localhost:8080/WebDAV-Milton-Test/milton/office.xls')) {
alert("EditDocument - error");
}
}
} catch(e) {
alert(e);
}

Works in IE7/8, Office 2003/2007.
Doesn't work for IE6/Office 2000 combination.

Other configurations were not tested.

P.S. WebDAV on java was implemented using Milton library.