This is a discussion on cannot open pdf files in windows application using vb .net 2008 within the C# Programming forums, part of the Software Development category; cannot open pdf files in windows application using vb .net 2008 how to view pdf files in windows applications using ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| cannot open pdf files in windows application using vb .net 2008 how to view pdf files in windows applications using vb .net 2008.? i need a sample code and step by step procedure...
__________________ A.Rajesh Khanna |
|
#2
| |||
| |||
| hi, If you want to read PDF file content, you need to use Adobe component in your winform application. If you have installed Adobe PDF reader, you can find components in COM page in Visual Studio. Microsoft hasn't tested these components and got special documents from Adobe of their usage. So you may try to contact Adobe company for help. Thank you for your understanding. |
|
#3
| |||
| |||
| Hi All, You can also view a PDF in VS2008 using a web browser control. For instance, if your web browser control is wbDocument then to load a file wbDocument.Navigate(FileName) The following I picked up recently (I completely forgotten who I got this from to give them credit) #Region " Required for view completion " ''' <summary> ''' This code helps to insure that the PDF document is completely released. ''' If these steps aren't taken the PDF file may be locked for some time or ''' even until this application is exited. ''' </summary> ''' <remarks></remarks> Private Sub DemoViewer_FormClosing() Handles Me.FormClosing If FileName.Length > 0 Then wbDocument.Hide() wbDocument.Navigate("about:blank") Do Until wbDocument.ReadyState = WebBrowserReadyState.Complete Application.DoEvents() System.Threading.Thread.Sleep(100) Loop wbDocument.Dispose() System.Threading.Thread.Sleep(100) End If End Sub #End Region
__________________ Shaalini.S ![]() Be the Best of Whatever you are... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to play video files in VB.NEt application | arjkhanna | VB.NET Programming | 3 | 10-02-2009 01:02 AM |
| upgrading windows 2003 to windows 2008 | bluesky | Operating Systems | 5 | 07-20-2009 08:31 PM |
| Application Security in Web.config Files | Venkat | C# Programming | 13 | 08-08-2007 07:22 AM |
| how to open and read data files with Perl | sivaramakrishnan | Perl | 1 | 07-23-2007 01:02 AM |
| Running DOS application without open Command window using C# .NET | oxygen | C# Programming | 0 | 07-16-2007 11:08 PM |
Our Partners |