Post by Staling Rivashello Group,
I'm a windows application and i need to view a pdf file inside my window.
I'm using an activex but this activex give me an error when load the second
pdf file...
If any body knows how do that please talk me.
Thanks.
Hi,
try this:
Steps to create the C# version
1. Create a windows form application by using VS
2. Make the Acrobat control available in the toolbox of VS
Tools->Add/Remove Toolbox Items: turn on "Adobe Acrobat 7.0 Browser
Document" in COM Components tab. You will see it in the Toolbox's General
tab.
3. Drag this control to the form. you get:
private AxAcroPDFLib.AxAcroPDF axAcroPDF1;
4. Load a pdf file and make it show up.
axAcroPDF1.LoadFile("mypdf.pdf");
axAcroPDF1.Show();
5. Compile and run, you will see the document showing up inside of the
control.
Here is the code piece.
public class Form1 : System.Windows.Forms.Form
{
private AxAcroPDFLib.AxAcroPDF axAcroPDF1;
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
axAcroPDF1.LoadFile("mypdf.pdf");
axAcroPDF1.Show();
}
... ... ... here is the code generated by VS.
[Reply][Email][View Thread][Get Link]