Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > Third Party Products

Third Party Products Discussion on third party components for VB.NET

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2009, 10:02 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
selvamarcadu is on a distinguished programming path ahead
Default pdf rendering and text search

Hi all,

I am newbie in vb.net and have been involved in designing a windows application.

I want to render the pdf document within vb.net form and highlight certain keywords.I read about AxAcroPDFLib.AxAcroPDF and tested it, but it does not seem to give text searching capability.I will be happy to get your sugestions to render pdf pages, with text highlighted for certain keywords.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2009, 5:31 PM
ScottyB's Avatar
VB.NET Forum Enthusiast
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jan 2007
Location: Australia
Age: 40
Posts: 39
Reputation: 39
ScottyB is on a distinguished programming path ahead
Default

Two free alternatives that you could try for rendering a pdf are
itextsharp or pdfsharp.

Here are some links to the renderers listed above
PDFsharp & MigraDoc - Home
iTextSharp - Tutorial
iTextSharp | Get iTextSharp at SourceForge.net

As I have not had much to do with text search and pdf I do not know how these will fair, they are worth checking out though.

Regards

ScottyB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-08-2009, 2:05 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
selvamarcadu is on a distinguished programming path ahead
Default pdf rendering and text search

Thank you for your response,

itextsharp and pdfsharp seem to concentrate on pdf creation rather than rendering.

I found this link for acrobat reader, which i am exploring now

Adobe Acrobat Automation With VB and Windows API




thanks
Selvam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-08-2009, 4:53 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
selvamarcadu is on a distinguished programming path ahead
Default pdf rendering and text search

Hi all,

I just went to check AxAcroPDFLib.I added acrobat reader com object to tool box.Then dragged it to form.But simply running it gives "Windowless controls are not supported".What does it mean?,Do i need any additional dll?

I have Adobe 7.0 installed in my machine.


Thanks,
Selvam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-11-2009, 2:42 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
selvamarcadu is on a distinguished programming path ahead
Default pdf rendering and text search

Hi,


I installed adobe reader 9 version and it worked well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-13-2009, 11:13 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
selvamarcadu is on a distinguished programming path ahead
Default multiple pdf files in child forms

Hi,
After i used acrobat 9.x(AxAcroPDFLib.AxAcroPDF)

1)I included its com and added to toolbox

2)I dropped Acrobat Reader to My main form(frmMain)

3)Then i did, I frmMain.AxAcroPDF1.LoadFile(...)

4) ChildForm.Controls.Add(frmMain.AxAcroPDF1)

But the problem is there are multiple mdi childs for the main form.I need to load multiple pdf files for them.But when i load the second mdi child, the first mdi child's pdf content becomes empty.

Note:childforms are created dynamically

Help me to load multiple pdf files for each child form.

Thanks
Selvam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-13-2009, 2:46 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,173
Reputation: 1273
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

You'd want to create one control for each form, similar to this:
Code:
Dim pdf As New AxAcroPDF
pdf.Loadfile(...)
theForm.Controls.Add(pdf)
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-14-2009, 2:20 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
selvamarcadu is on a distinguished programming path ahead
Default pdf rendering and text search

Hi thanks JohnH,

I tried it,but "System.Windows.Forms.AxHost+InvalidActiveXStateEx ception" is thrown

My code looks as,

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)
pdf.LoadFile("path_to_pdf")
ChildForm.Controls.Add(pdf)
ChildForm.Show(DockPanel)


When i place the Adobe Reader control in frmMain ,i could access it.But,when i create a new one it throws such exception.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-14-2009, 2:37 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2009
Age: 22
Posts: 17
Reputation: 10
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
highlighting, pdf, rendering


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 12:18 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.