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

  • Thread starter Thread starter Alex Smith
  • Start date Start date
A

Alex Smith

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top