View Single Post
  #9 (permalink)  
Old 07-14-2009, 1:37 AM
selvamarcadu selvamarcadu is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 11
selvamarcadu is on a distinguished programming path ahead
Default pdf rendering and text search

Hi ,its working now,thanks for your support.

I first showed the form and then loaded the file.

Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMain))
Dim pdf As New AxAcroPDFLib.AxAcroPDF
pdf.OcxState = CType(resources.GetObject("AxAcroPDF1.OcxState"), System.Windows.Forms.AxHost.State)

ChildForm.Show(DockPanel) 'This is the line i brought up
pdf.LoadFile("path_to_pdf")

ChildForm.Controls.Add(pdf)


Thanks
Selvam
Reply With Quote