Archive for March, 2011

WM6: is there a search command in calendar ?

March 31, 2011

Well, many of you keep in sync smartphone & Outlook.

I haven’t found a Search command in WM6‘s Calendar yet. 😦

Technorati Tags: , 

Excel poisoning #2: get address of a cell

March 30, 2011

Working with VBA, need to add formulas to your sheet via cell address of course!

Address() is your function, here are some samples:

  • myRange.Address(False, False) ===> A1C2
  • myRange.Address(External:=False) ==>> $A$1$C$2

Excel poisoning #1: saving xlsm from template macro

March 27, 2011

Here are few hints, based on my recent “Excel poisoning” 🙂

Working with template, in C#, want to save xls macro file, without security warning:

myWB.SaveAs(fileNameXLSM,
XlFileFormat.xlOpenXMLWorkbookMacroEnabled,
Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing);

where fileNameXLSM may be “c:\…\myFileWithMacro.xlsm” (extension required!),
and “XlFileFormat.xlOpenXMLWorkbookMacroEnabled” is the magic key, in Excel 2007. 😉

Xedotnet meeting: WCF track

March 24, 2011

WCF 4.0 – What’s new
Speaker: Davide Vernole

Windows Communication Foundation 4 ha introdotto nuove funzionalità che facilitano o agevolano l’utilizzo di questa tecnologia in particolari scenari di utilizzo. La sessione sarà incentrata sulle novità della versione 4.0 e sul confronto con la versione 3.5


WCF & .NET Micro FW – A real case
Speaker: Mirco Vanini

Con l’uscita della versione 4.0 di WCF e della versione 4.1 del .NET Micro FW i due mondi hanno la possibilità di parlarsi nativamente senza dover costruire sovrastrutture apposite. In questa sessione sarà affrontato un caso reale di utilizzo di WCF 4.0 con dispositivi basati su .NET Micro FW 4.1. L’utilizzo è bidirezionale, sarà mostrato come consumare servizi WCF da dispositivi e come gli stessi a loro volta possono mettere a disposizione servizi ricercabili e consumabili. La sessione si basa su un caso reale di utilizzo di cui verrà discussa sia l’architettura che le parti salienti del codice.

Technorati Tags: 

Locations in this area: SQL Server geography datatype

March 16, 2011

Working with maps and database, SQL Server 2008 may help you with this new data type: geography .
This datatype takes part in spatial data features introduces in SQL Server 2008.

When you want to select location, in 50KM from xyz (a place well known), the simplest question is: is distance from center less than 50 km ?
Here is a very simple example about it 😉


DECLARE @area geography;
 SET @area = geography::STGeomFromText('POINT(' +
 CAST(@LatitudeArea as nvarchar(50)) +  ' ' +
 CAST(@LongitudeArea as nvarchar(50))  + ')', 4326) ;

 DECLARE @distance int;
 SELECT @distance =
 (geography::STGeomFromText('POINT(' +
 CAST(@LatitudePoint as nvarchar(50)) + ' ' +
 CAST(@LongitudePoint as nvarchar(50)) +')', 4326)).STDistance(@area);


 IF (@distance < @RadiusArea *1000)
 RETURN 1

 RETURN 0

Technorati Tags: , , .