Archive

Posts Tagged ‘C#’

ILMerge – Merge .Net Assemblies

December 23, 2010 1 comment

ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly. It works on executables and DLLs alike and comes with several options for controlling the processing and format of the output. See the accompanying documentation for details.

ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly. It is freely available for use from the Tools & Utilities page at the Microsoft .NET Framework Developer Center.

Download ILMerge

Categories: Frameworks Tags: , ,

DotNetZip – Zip file manipulation in .NET

December 23, 2010 Leave a comment

DotNetZip is a small, easy-to-use class library for manipulating .zip files. It can enable .NET applications written in VB.NET, C#, or any .NET language, to easily create, read, and update zip files. Zip Compression is easy with DotNetZip. The DotNetZip project also produces a GUI ZIP tool, and a few command line tools.

DotNetZip works on Windows-powered PCs with the full .NET Framework, and also runs on Windows Mobile devices that use the .NET Compact Framework. Create and read zip files in VB, C#, or any .NET language. The library can also be used from COM enironments, like PHP, Classic ASP, or VB-Script. DotNetZip supports these scenarios:

  • creating a zip archive, adding files or directories into the archive
  • listing files in an archive, extracting files from an archive
  • modifying an existing archive – renaming entries, removing entries from an archive, or adding new entries to an archive
  • creating zip files from stream content, saving to a stream, extracting to a stream, reading from a stream
  • dynamically creating ZIP files from ASP.NET applications

Read more at http://dotnetzip.codeplex.com/

Categories: ASP.Net, C# Tags: , , , ,

Export DataTable to PDF

August 8, 2010 Leave a comment

In one of my previous posts Create PDF Documents in ASP.NET, I explained how we can create PDF document in ASP.Net applications.

By using the open source iTextSharp library, i have created a class to export a Data Table to PDF document. This is an initial version of the utility class. This can be used to export a Data Table to PDF document in the form of table. This class uses iTextSharp dll for creating PDF document. To start using this utility, you will need to download the iTextSharp library from http://sourceforge.net/projects/itextsharp/ and reference it in your project.

Click here to download source code for DataTable2PDFDocument.

Create PDF Documents in ASP.NET

August 7, 2010 Leave a comment

If you want to create PDF documents in your Dot Net web/desktop application, without purchasing any 3rd party control, then iTextSharp is the right choice for you. iTextSharp is an open source library distributed under GNU Public License. You can freely use this component in your personal and commercial applications.

iText# (iTextSharp) is a port of the iText open source java library for PDF generation written entirely in C# for the .NET platform. Use the iText mailing list to get support.
Read more at
http://sourceforge.net/projects/itextsharp/

Project page at SourceForge contains DLL and source for this nice library.  You can also find some example projects on the files page.

You can find a brief article and source code example on a code project article Creating PDF Documents in ASP.NET

Please note, iTextSharp is useful where you want to create a PDF document with custom text. With iTextSharp you will have to create the text for PDF in code (see examples or code project article for details). But if you want to convert HTML text or a HTML page to PDF directly, you will either have to extend iTextSharp or you will have to use some other component or library, you can give a try to ABCpdf.Net http://www.websupergoo.com/abcpdf-5.htm for conversion purposes.

If you want to use iTextSharp to convert HTML to PDF, you can start it by reading a very good article “iTextSharp – Simplify Your HTML to PDF Creation” at http://somewebguy.wordpress.com/2009/05/08/itextsharp-simplify-your-html-to-pdf-creation/

I am working on a generic control that will create a PDF file from a DataTable, i will share the control once it is ready.

Categories: ASP.Net, PDF Tags: , , ,

C# Coding Standard

February 9, 2009 Leave a comment


While searching for some document on coding standards, i found following links useful:

http://se.ethz.ch/teaching/ss2007/251-0290-00/project/CSharpCodingStandards.pdf

www.dotnetspider.com/tutorials/CodingStandards.doc

Categories: C# Tags: