Posts

Showing posts from February, 2009

Karna .NET: new release and new forum

The new beta release of Karna .NET is available for download. As usual the full source code + new samples are available.

In this release the new Karna.AddIn namespace is introduced. Now Karna supports AddIns technology for making modular applications.

Other news:

I created new forums related to Karna .NET project Please visit http://apps.sourceforge.net/phpbb/karna These forums will be the preferable support way for Karna .NET Also all announcements for the new releases will be moved from my blog to Karna forum


C# ExcelWriter class

This sample demonstrates how to create a file using the Microsoft Excel Binary Interchange File Format (BIFF). In other words it shows how to produce Excel files from your application directly without using Excel. It can be useful when you are not sure if your customer has Excel installed.


// C# ExcelWriter class v1.0
// by Serhiy Perevoznyk, 2008

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace XLSExportDemo
{
/// <summary>
/// Produces Excel file without using Excel
/// </summary>
public class ExcelWriter
{
private Stream stream;
private BinaryWriter writer;

private ushort[] clBegin = { 0x0809, 8, 0, 0x10, 0, 0 };
private ushort[] clEnd = { 0x0A, 00 };


private void WriteUshortArray(ushort[] value)
{
for (int i = 0; i < value.Length; i++)
writer.Write(value[i]);
}

/// <summary>
/// Initializes a new instance of the <see…

Karna .NET: Beta 11 release

I am pleased to announce karna .Net beta 11 release. The project is growing, the structure become more stable and the final result more visible. In case if you missed the beginning of the story:

Karna .NET is freeware C# library for fast developing widgets, docks, screenlets and other types of Internet Desktop Applications, that merges the best qualities and behaviors of the the web and desktop in both end-user experience and in development and deployment.

More information is available at the Karna .NET website:
http://karna.sourceforge.net