well past few week my brother demand an .Net application by with he can display pdf file on window application with C#.Net.
i have gone through some search and find out API for displaying PDF file in window application.
you required- AxInterop.AcroPDFLib.dll
add via com component and put it in your form.
then write the below code in cs file.
--------------------
CS code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
axAcroPDF1.LoadFile(@"D:\Documents and Settings\Administrator\Desktop\Hall Ticket_himani.pdf");
}
}
}
if you find any problem or required API during you can comment here i will reply as comment in my inbox....
i have gone through some search and find out API for displaying PDF file in window application.
you required- AxInterop.AcroPDFLib.dll
add via com component and put it in your form.
then write the below code in cs file.
--------------------
CS code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
axAcroPDF1.LoadFile(@"D:\Documents and Settings\Administrator\Desktop\Hall Ticket_himani.pdf");
}
}
}
if you find any problem or required API during you can comment here i will reply as comment in my inbox....
No comments:
Post a Comment