<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'opening pdf`s' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'opening pdf`s' posted on the 'Visual Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Thu, 20 Jun 2013 01:47:11 -0700</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 01:47:11 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>opening pdf`s</title>
      <link>http://www.programmersheaven.com/mb/VBasic/290937/290937/opening-pdfs/</link>
      <description>Hiya i want to open pdf via VB.&lt;br /&gt;
i have the code were i can open certin files if i use this code :&lt;br /&gt;
Private Sub Command2_Click()&lt;br /&gt;
Dim RetVal&lt;br /&gt;
RetVal = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe d:\Till Manuals\120.pdf", vbMaximizedFocus)&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
But what i want to do is not have to type the location of the file in but for the code to pick it up from a txt box were the location is got from a database&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/290937/290937/opening-pdfs/</guid>
      <pubDate>Wed, 02 Feb 2005 13:46:59 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: opening pdf`s</title>
      <link>http://www.programmersheaven.com/mb/VBasic/290937/290980/re-opening-pdfs/#290980</link>
      <description>you'll want to do something like this&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Private Sub Command2_Click() 
Dim RetVal 
RetVal = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe &lt;span style="color: Blue;"&gt;" &amp;amp; Text1.Text&lt;/span&gt;, vbMaximizedFocus) 
End Sub &lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
to open the location that's in &lt;em&gt;Text1.Text&lt;/em&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/290937/290980/re-opening-pdfs/#290980</guid>
      <pubDate>Wed, 02 Feb 2005 23:26:33 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: opening pdf`s</title>
      <link>http://www.programmersheaven.com/mb/VBasic/290937/291054/re-opening-pdfs/#291054</link>
      <description>: you'll want to do something like this&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;Private Sub Command2_Click() 
: Dim RetVal 
: RetVal = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe &lt;span style="color: Blue;"&gt;" &amp;amp; Text1.Text&lt;/span&gt;, vbMaximizedFocus) 
: End Sub &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: to open the location that's in &lt;em&gt;Text1.Text&lt;/em&gt;&lt;br /&gt;
: &lt;br /&gt;
Thanks it worked&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/290937/291054/re-opening-pdfs/#291054</guid>
      <pubDate>Thu, 03 Feb 2005 11:15:18 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: opening pdf`s</title>
      <link>http://www.programmersheaven.com/mb/VBasic/290937/291442/re-opening-pdfs/#291442</link>
      <description>: you'll want to do something like this&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;Private Sub Command2_Click() 
: Dim RetVal 
: RetVal = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe &lt;span style="color: Blue;"&gt;" &amp;amp; Text1.Text&lt;/span&gt;, vbMaximizedFocus) 
: End Sub &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: to open the location that's in &lt;em&gt;Text1.Text&lt;/em&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
One warning, you want to be careful in 'hard-coding' and assuming the path for where acrobat [or any windows program] is installed.&lt;br /&gt;
What happens if the user did not install acrobat in the default \Program files\ folder?  By checking the registry you will be sure of the install path.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/290937/291442/re-opening-pdfs/#291442</guid>
      <pubDate>Mon, 07 Feb 2005 09:19:59 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: opening pdf`s</title>
      <link>http://www.programmersheaven.com/mb/VBasic/290937/291483/re-opening-pdfs/#291483</link>
      <description>: : you'll want to do something like this&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;Private Sub Command2_Click() 
: : Dim RetVal 
: : RetVal = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe &lt;span style="color: Blue;"&gt;" &amp;amp; Text1.Text&lt;/span&gt;, vbMaximizedFocus) 
: : End Sub &lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : to open the location that's in &lt;em&gt;Text1.Text&lt;/em&gt;&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: One warning, you want to be careful in 'hard-coding' and assuming the path for where acrobat [or any windows program] is installed.&lt;br /&gt;
: What happens if the user did not install acrobat in the default \Program files\ folder?  By checking the registry you will be sure of the install path.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
well the best way to do it would be to use the ShellExecute API to launch to pdf.  that way, whichever default application is set to be a pdf reader will open it, but the OP didn't sound like he was ready to get into API yet.  it made more sense just to show him how to concatenate strings.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/290937/291483/re-opening-pdfs/#291483</guid>
      <pubDate>Mon, 07 Feb 2005 17:32:53 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: opening pdf`s</title>
      <link>http://www.programmersheaven.com/mb/VBasic/290937/291565/re-opening-pdfs/#291565</link>
      <description>: : : you'll want to do something like this&lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;pre class="sourcecode"&gt;Private Sub Command2_Click() 
: : : Dim RetVal 
: : : RetVal = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe &lt;span style="color: Blue;"&gt;" &amp;amp; Text1.Text&lt;/span&gt;, vbMaximizedFocus) 
: : : End Sub &lt;/pre&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : : to open the location that's in &lt;em&gt;Text1.Text&lt;/em&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : One warning, you want to be careful in 'hard-coding' and assuming the path for where acrobat [or any windows program] is installed.&lt;br /&gt;
: : What happens if the user did not install acrobat in the default \Program files\ folder?  By checking the registry you will be sure of the install path.&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: well the best way to do it would be to use the ShellExecute API to launch to pdf.  that way, whichever default application is set to be a pdf reader will open it, but the OP didn't sound like he was ready to get into API yet.  it made more sense just to show him how to concatenate strings.&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks but i got a bit of code linking to a database so the user can change the location if they need to&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/290937/291565/re-opening-pdfs/#291565</guid>
      <pubDate>Tue, 08 Feb 2005 11:02:53 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
  </channel>
</rss>