QUOTE(Engineer Joe @ 13 Oct, 2008 - 04:18 PM)

I really have two problems.
1) I'm pretty sure I have to add something like PdfLib as a reference. I just installed Adobe Reader 9, which I understand comes with the ActiveX controls I need. However, I do not know which control to add as a reference (PdfLib is not available to be selected from the COM tab.) The other problem I forsee is showing it in the richtext box. I never use richtextboxes, only picture boxes. If anyone could help me out, I'd greatly appreciate it. Like I said, I'm very new to C# and haven't developed my independent reportoire yet.
CODE
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
// using PdfLib; <-----I need to use the Acrobat Control for ActiveX or at least the Adobe Reader 9 equivalent.
namespace WindowsFormsApplication1
{
public partial class ViewerForm : Form
{
public ViewerForm()
{
InitializeComponent();
PdfLib.AxAcroPDF axAcroPDF1;
axAcroPDF1.LoadFile(@"C:\Documents and Settings\jcrowe\Desktop\Medical Gas\_0708170240_001.pdf");
axAcroPDF1.Show();
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
}
}
}
You need to get your hands on the Acrobat SDK. You can get this at
http://www.adobe.com/devnet/acrobat/index....navID=downloads . This download will actually get you a couple of examples on how to implement this kind of control.
InterAppCommunicationSupport\C#Samples\BasicIacOCXCS
Let me know if this helps.
Aleksei