Tags: aspx, catastrophic, cnet, code, file, friends, net, pdf, richtextbox, type, windowapplication

I want to open a pdf file in richTextBox using C#.Net

On .Net » .Net Technology

850 words with 1 Comments; publish: Fri, 06 Jun 2008 10:34:00 GMT; (100101.56, « »)

Hi friends,

I want to open a .pdf file in in richTextBox using C#.Net,(Window

Application).

I have use this type of code,but I got "Catastrophic failure".

I am trying this type of code.

PdfLib.PdfClass newpdf = new PdfLib.PdfClass();

void Browse_Click(object sender, EventArgs e)

{

fileopen.ShowDialog();

string fname = fileopen.FileName;

newpdf.src = fname;

newpdf.LoadFile(fname);

newpdf.gotoFirstPage();

}

Alex.

All Comments

Leave a comment...

  • 1 Comments
    • Alex,

      Without much to go on, I would verify that dependencies of the

      PdfLib.PdfClass are installed (e.g, make sure you have the correct

      version of adobe acrobat reader installed, and whatever else it needs).

      This library may have a log file that it writes to (or the event log)

      can you check for that?

      sayed

      #1; Fri, 06 Jun 2008 10:36:00 GMT