IT Community - Software Programming, Web Development and Technical Support

cannot open pdf files in windows application using vb .net 2008

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 05-25-2009, 10:26 PM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default cannot open pdf files in windows application using vb .net 2008

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-25-2009, 10:27 PM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: cannot open pdf files in windows application using vb .net 2008

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-25-2009, 10:28 PM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Re: cannot open pdf files in windows application using vb .net 2008

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...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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

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


All times are GMT -7. The time now is 10:25 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0