open a PDF file in visual basic

Reply

Join Date: Mar 2007
Posts: 2
Reputation: vienmarie is an unknown quantity at this point 
Solved Threads: 0
vienmarie vienmarie is offline Offline
Newbie Poster

open a PDF file in visual basic

 
0
  #1
Mar 5th, 2007
hi all! would just like to seek assistance... i am trying to open a pdf file in visual basic. if im trying to put it in as OLE it would only work if i have set the source file in the properties box. but if i put the source file in codes using app.path, it won't open. please help... thanks so much!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 32
Reputation: Marikanna is an unknown quantity at this point 
Solved Threads: 1
Marikanna Marikanna is offline Offline
Light Poster

Re: open a PDF file in visual basic

 
0
  #2
Mar 5th, 2007
Hi ,

I am not sure whether you like to open within a form or outside the vb app. If you like to open the pdf inside the form you can place a web browser control inside the form and use the url as "c:\...\file.pdf".

Regards
Marikanna Narayanan
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 2
Reputation: vienmarie is an unknown quantity at this point 
Solved Threads: 0
vienmarie vienmarie is offline Offline
Newbie Poster

Re: open a PDF file in visual basic

 
0
  #3
Mar 5th, 2007
Originally Posted by Marikanna View Post
Hi ,

I am not sure whether you like to open within a form or outside the vb app. If you like to open the pdf inside the form you can place a web browser control inside the form and use the url as "c:\...\file.pdf".

Regards
Marikanna Narayanan
i am trying to open the pdf file in the command button of the form... i dunno if there is another way to open it aside from OLE control. thanks so much!
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 1,515
Reputation: paramasivan is an unknown quantity at this point 
Solved Threads: 1
paramasivan's Avatar
paramasivan paramasivan is offline Offline
Posting Virtuoso

Re: open a PDF file in visual basic

 
0
  #4
Mar 6th, 2007
OLE1.OLETypeAllowed = acOLEEmbedded
OLE1.SourceDoc = "C:\1.pdf"
OLE1.Action = acOLECreateEmbed
Try with this one..
CHEERIO,
Paramasivan S.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC