http://www.codeproject.com/KB/printing/datagridviewprinter.aspx
vendredi 3 juillet 2009
The DataGridViewPrinter Class
publié par Salvatore à l'adresse 19:36 0 commentaires Liens vers ce message
Catégorie : WPF
Printing with WPF
publié par Salvatore à l'adresse 18:40 0 commentaires Liens vers ce message
Catégorie : WPF
lundi 29 juin 2009
F# - Presentation
Great presentation from Laurent Le Brun
In French and in English :-)
http://laurent.le-brun.eu/
publié par Salvatore à l'adresse 21:48 0 commentaires Liens vers ce message
Catégorie : F#
Dynamic LINQ
http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx
Here how to retrieve the result from the Dynamic Generated Class
Thanks to Daniel
http://www.albamond.com/blog/Daniel/post/Dynamic-Linq-is-love.aspx
publié par Salvatore à l'adresse 10:45 0 commentaires Liens vers ce message
Catégorie : LINQ
Working with events in F#
publié par Salvatore à l'adresse 08:28 0 commentaires Liens vers ce message
Catégorie : F#
dimanche 28 juin 2009
The F# 1.9.6 Draft Language Specification
publié par Salvatore à l'adresse 20:22 0 commentaires Liens vers ce message
Catégorie : F#
Lightweight WPF Twitter client sample F# script
publié par Salvatore à l'adresse 20:16 0 commentaires Liens vers ce message
Catégorie : F#
F# and Collective Intelligence
http://www.slideshare.net/robertfpickering/tech-days-paris-intoduction-f-and-collective-intelligence
publié par Salvatore à l'adresse 19:41 0 commentaires Liens vers ce message
Catégorie : F#
samedi 27 juin 2009
F# Webcast
Another great presentation of F#.
Including a fully working application.
http://tomasp.net/blog/fsharp-webcast-functional.aspx
publié par Salvatore à l'adresse 22:48 0 commentaires Liens vers ce message
Catégorie : F#
F Sharp Programming
Very very nice tuorial
http://en.wikibooks.org/wiki/F_Sharp_Programming
publié par Salvatore à l'adresse 22:17 0 commentaires Liens vers ce message
Catégorie : F#
Interfaces + Factory pattern = Decoupled architecture
publié par Salvatore à l'adresse 10:56 0 commentaires Liens vers ce message
Catégorie : patterns
mardi 23 juin 2009
VSTO Excel : GetRange
/// <summary>
/// Return a range starting from cell C
/// The range can contain empty cell
/// C - - - - - -
/// - - - - - -
/// - - - - - - -
/// - - - -
/// </summary>
/// <param name="ws"></param>
/// <param name="start"></param>
/// <returns></returns>
public Excel.Range GetRightDownRegion(Excel.Worksheet ws, Excel.Range start)
{
Excel.Range curCell = start;
Excel.Range endCell = start;
int lastCol;
int offsetCol;
int j = 0;
while (curCell.Value2 != null)
{
curCell = start.get_Offset(0, j);
if (curCell.Value2 != null)
{
endCell = curCell;
}
j++;
}
lastCol = endCell.Column;
int i = 0;
curCell = start;
endCell = start;
while (curCell.Value2 != null)
{
curCell = start.get_Offset(i, 0);
if (curCell.Value2 != null)
{
endCell = curCell;
}
i++;
}
offsetCol = lastCol - endCell.Column;
endCell = endCell.get_Offset(0, offsetCol);
return ws.get_Range(start, endCell);
}
}
publié par Salvatore à l'adresse 14:29 0 commentaires Liens vers ce message
mercredi 17 juin 2009
jeudi 11 juin 2009
VSTO : ListObjects
VSTO is not obvious, here is to name columns
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml.Linq;
using Microsoft.VisualStudio.Tools.Applications.Runtime;
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Core;
namespace ExcelWorkbook7
{
public partial class Feuil1
{
NorthwindDataContext ctx = new NorthwindDataContext();
private void Feuil1_Startup(object sender, System.EventArgs e)
{
var cs = from cust in ctx.Customers
select cust;
Microsoft.Office.Tools.Excel.ListObject customerData;
customerData = this.Controls.AddListObject(this.get_Range(this.Cells[1,1],this.Cells[1,2]), "Customers");
DataGridTableStyle s = new DataGridTableStyle();
customerData.TableStyle = "TableStyleLight10";
customerData.ListColumns.get_Item(1).Name = "ID";
customerData.ListColumns.get_Item(2).Name = "Name";
customerData.SetDataBinding(cs,"","CustomerID","CompanyName");
}
private void Feuil1_Shutdown(object sender, System.EventArgs e)
{
}
#region VSTO Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InternalStartup()
{
this.Startup += new System.EventHandler(this.Feuil1_Startup);
this.Shutdown += new System.EventHandler(this.Feuil1_Shutdown);
}
#endregion
}
}
publié par Salvatore à l'adresse 23:22 0 commentaires Liens vers ce message
How to programmatically display data into an excel worksheet
publié par Salvatore à l'adresse 22:52 0 commentaires Liens vers ce message
Excel Object Model reference
publié par Salvatore à l'adresse 22:19 0 commentaires Liens vers ce message
VSTO : Add ListObject Controls to Worksheets
publié par Salvatore à l'adresse 22:17 0 commentaires Liens vers ce message
Trie paramétrable
publié par Salvatore à l'adresse 10:52 0 commentaires Liens vers ce message
Catégorie : Sorting
mercredi 10 juin 2009
Other Patterns Articles
publié par Salvatore à l'adresse 21:43 0 commentaires Liens vers ce message
Catégorie : patterns
Comprendre le design Pattern Adaptateur
publié par Salvatore à l'adresse 21:24 0 commentaires Liens vers ce message
Catégorie : patterns
Some Design Patterns
publié par Salvatore à l'adresse 21:15 0 commentaires Liens vers ce message
Catégorie : patterns
Observer Pattern Demo
publié par Salvatore à l'adresse 20:57 0 commentaires Liens vers ce message
Catégorie : patterns
mardi 9 juin 2009
Linq articles
publié par Salvatore à l'adresse 21:54 0 commentaires Liens vers ce message
Catégorie : LINQ
LINQ to SQL: All common operations
publié par Salvatore à l'adresse 21:49 0 commentaires Liens vers ce message
Catégorie : LINQ
Partial Methods in Linq
publié par Salvatore à l'adresse 21:19 0 commentaires Liens vers ce message
Catégorie : LINQ
lundi 8 juin 2009
Working with the Range Object
publié par Salvatore à l'adresse 22:38 0 commentaires Liens vers ce message
Microsoft Office Excel Programming Using VSTO 3.0
publié par Salvatore à l'adresse 20:48 0 commentaires Liens vers ce message