![]() |
Click here to advertise with us
|
|
|||||||
| Third Party Products Discussion on third party components for VB.NET |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
|
||||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
||||
|
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)
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
|
|||
|
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. |
|
|||
|
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 |
![]() |
| Bookmarks |
| Tags |
| highlighting, pdf, rendering |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|