|
||||||
| C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Both posts.. nonsense question, nonsense answer. Anyways I think we should stop with this nonesense stuff and give CC some yes-sense (lol) posts.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall ![]() Business Directory | Technology Blog | Windows Help |
|
|||||
|
Anymore ideas? Something that would get me more into the GUI part (Windows Applications)??
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall ![]() Business Directory | Technology Blog | Windows Help |
|
|||
|
Create PDF Files on fly in C# - iText for C#.net
iText for C#.net Reference - > itextsharp.sourceforge.net ; iText, a Free Java-PDF Library: Home Page Creation of PDF Document in 5 easy steps Step 1: First create an instance of document object Document myDocument= new Document(PageSize.A4.Rotate()); Step 2: Now create a writer that listens to this doucment and writes the document to desired Stream. PdfWriter.GetInstance(myDocument, new FileStream("Salman.pdf", FileMode.Create)); Step 3: Open the document now using myDocument.Open(); Step 4: Now add some contents to the document myDocument.add( new Paragraph ( "First Pdf File made by Salman using iText")); Step 5: Remember to close the documnet myDocument.close(); // Code using System; using System.IO; using System.Diagnostics; using iTextSharp.text; using iTextSharp.text.pdf; public class iTextDemo { public static void Main() { Console.WriteLine("iText Demo"); // step 1: creation of a document-object Document myDocument = new Document(PageSize.A4.Rotate()); try { // step 2: // Now create a writer that listens to this doucment and writes the document to desired Stream. PdfWriter.GetInstance(myDocument, new FileStream("Salman.pdf", FileMode.Create)); // step 3: Open the document now using myDocument.Open(); // step 4: Now add some contents to the document myDocument.Add(new Paragraph("First Pdf File made by Salman using iText")); } catch(DocumentException de) { Console.Error.WriteLine(de.Message); } catch(IOException ioe) { Console.Error.WriteLine(ioe.Message); } // step 5: Remember to close the documnet myDocument.Close(); } } |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need practice app ideas. | gszauer | The Lounge | 14 | 12-06-2007 06:40 AM |
| Ideas please!!!!! | speaker219 | PHP Forum | 7 | 08-16-2007 06:39 AM |
| I need ideas | Nille | C and C++ | 3 | 07-25-2007 04:51 PM |
| Project Ideas | Jordan | Community Projects | 18 | 01-06-2007 01:11 PM |