THE PUTXI PROJECT

Catalonia is Not Spain

Archive for the ‘C#’ Category

FileStream and PictureBox

Posted by putxi on April 24, 2007

Have you got problems with a locked File? Are you searching a unlocker aplication? If your file is locked due to a PictureBox you are doing something badly. You must open the PictureBox like in the following example and the message of “this file is used for another person or application” will desapear

Read the rest of this entry »

Advertisements

Posted in C# | Leave a Comment »

Get file names from a directory

Posted by putxi on April 18, 2007

This code is very usefull when you wanna print or show all the files in a directory. You can get all the sames like this esasy way in c sharp. Read the rest of this entry »

Posted in C# | 2 Comments »

Manipulate XML File Data Using C#

Posted by putxi on April 18, 2007

By Anand Narayanaswamy

Nearly 95 percent of .NET applications use XML for various tasks. A main usage for Web developers is combining XML with HTML to display information on Web pages, which relieves them from having to spend a long time editing the content on their Web pages. A single change to an XML file will be reflected across the entire Web site, thus simplifying the development and also greatly reducing the development time.

With the advent of .NET, programming languages such as C#, Visual Basic .NET, and frameworks such as ASP.NET took advantage of XML’s rich features. In fact, the configuration file (web.config), which is used in ASP.NET applications, is completely built upon XML tags.

This article demonstrates how to manipulate an XML file using C#. The manipulation includes displaying, adding, editing, and deleting data from a single XML file using C#. It also shows how to use the Stream class included in the System.IO namespace and various other XML classes included in the System.XML namespace.

Read the rest of this entry »

Posted in C# | 2 Comments »

Create PDF from CrystalReport

Posted by putxi on April 18, 2007

The following code explains how to create a PDF File when you have a CrystalReport

You must use this namespace : using CrystalDecisions.Shared;

CrystalReport2 crReport = new CrystalReport2();
ExportOptions crExpOpt = crReport.ExportOptions;
DiskFileDestinationOptions crExpDest = new DiskFileDestinationOptions();
crExpDest.DiskFileName = “c:\\myexportedreport.pdf”;

crExpOpt.ExportDestinationType = ExportDestinationType.DiskFile;
crExpOpt.ExportFormatType = ExportFormatType.PortableDocFormat ;

crExpOpt.DestinationOptions = crExpDest;
crReport.Export();

Posted in C# | Leave a Comment »

StreamReaders and StreamWriters

Posted by putxi on March 19, 2007

Text Reader and Text Writer in C#
by: Collin
INTRODUCTION:

This article covers the information of how to read or write (Unicode) character based data through TextReader and TextWriter. The TextReader and TextWriter are base classes. The StreamReader and StringReader derives from the abstract type TextReader. Similarly the StreamWriter and StringWriter derives from the abstract type TextWriter. Read the rest of this entry »

Posted in C# | 1 Comment »

tercera pagina

Posted by putxi on March 16, 2007

banner_cataloniaonline.jpg

banner_cataloniatoday.jpg

banner_georgeorwell.jpg

Posted in C# | Leave a Comment »