Hello,

I have just recently started to use iText.NET and I�ve been trying to do the simplest example, a Hello World script. (the one listed in Chapter 1.

I�m writing it in C#.NET and I�ve been trying different combinations now for 2 days and all I get when I run it on our server is this:

 

_____________________________

Exception of type com.lowagie.text.ExceptionConverter was thrown.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: com.lowagie.text.ExceptionConverter: Exception of type com.lowagie.text.ExceptionConverter was thrown.

___________________________________

 

This is the code:

 

Document document = new Document();

try

{

PdfWriter.getInstance(document, new FileOutputStream(@"E:\Websajter\www.paynova.com\MerchantManagerCsharp\pdfOutput\HelloWorld.pdf"));

document.open();

document.add(new Paragraph("Hello World"));

}

finally

{

document.close();

}

 

Does anyone know what I might be doing wrong, is it something I have missed to install on the server? I have all the lib’s needed in my Reference.

 

//Joakim

Reply via email to