Aspose.Words enables .NET and Java applications to read, modify and write Word® documents without utilizing Microsoft Word®.
Custom datasource is possible.
As showed on this example
http://www.aspose.com/Documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.reporting.imailmergedatasource.html
Saturday, November 1, 2008
Wednesday, October 29, 2008
VB.NET : XML Literals and Embedded Expressions
Allowing XML literals is a nice feature in VB9.
Beth Massi wrote a nice article
http://www.code-magazine.com/article.aspx?quickid=0807061
Beth Massi wrote a nice article
http://www.code-magazine.com/article.aspx?quickid=0807061
Friday, October 24, 2008
Fun with delegates and dictionnary
In Python functions are first class citizen.
It's very easy to assign a value to a dictionnary entry mydict["myfunction"]=hello
and simply call it with mydict["myfunction"]()
Can the same be done n C# ?
I found a way using delegates although it is not as flexible as Python
Here is the code, feel free to comment
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace dictcaller
{
class Program
{
delegate void DictDelegate(string message);
Dictionary d = new Dictionary();
static void SampleDelegateMethod(string message)
{
Console.WriteLine(message);
}
static void Main(string[] args)
{
Program s = new Program();
s.d["test"] = SampleDelegateMethod;
s.d["test"].Invoke("hello");
Console.ReadLine();
}
}
}
It's very easy to assign a value to a dictionnary entry mydict["myfunction"]=hello
and simply call it with mydict["myfunction"]()
Can the same be done n C# ?
I found a way using delegates although it is not as flexible as Python
Here is the code, feel free to comment
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace dictcaller
{
class Program
{
delegate void DictDelegate(string message);
Dictionary
static void SampleDelegateMethod(string message)
{
Console.WriteLine(message);
}
static void Main(string[] args)
{
Program s = new Program();
s.d["test"] = SampleDelegateMethod;
s.d["test"].Invoke("hello");
Console.ReadLine();
}
}
}
Wednesday, October 22, 2008
ASP : Dynamically create or remove Controls
Look at this excellent post by Yuriy Solodkyy
http://couldbedone.blogspot.com/2007/07/dynamically-created-controls-dynamic.html
And here is a nice article from Microsoft :
http://msdn.microsoft.com/en-us/library/aa289500(VS.71).aspx
http://couldbedone.blogspot.com/2007/07/dynamically-created-controls-dynamic.html
And here is a nice article from Microsoft :
http://msdn.microsoft.com/en-us/library/aa289500(VS.71).aspx
Sunday, October 19, 2008
Creating Reusable Elements with ASP.NET User Controls
Don't forget that the msdn site provides excellent articles :-)
http://msdn.microsoft.com/en-us/library/3457w616.aspx
http://msdn.microsoft.com/en-us/library/3457w616.aspx
Wednesday, October 15, 2008
Ironpython : ASP.NET Dynamic Language Support
Finally they did it :-)
My prefered language has received many attentions these days.
http://www.codeplex.com/aspnet/Wiki/View.aspx?title=Dynamic%20Language%20Support&referringTitle=Home"
My prefered language has received many attentions these days.
http://www.codeplex.com/aspnet/Wiki/View.aspx?title=Dynamic%20Language%20Support&referringTitle=Home"
Subscribe to:
Posts (Atom)