home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,516 of 10,840   
   Dean Earley to Tim Reed   
   Re: Invoking a PDF   
   21 Sep 07 08:45:53   
   
   From: dean.earley@icode.co.uk   
      
   Tim Reed wrote:   
   > Hello ... my Dad is dabbling in VB & has a question about invoking a PDF (to   
   > display a help file or manual).  Myself, I don't know VB - but I *do* know   
   > how to post to a NG .  If anyone has a solution, I would pass it on with   
   > appreciation.  Thanks!      - Tim   
   >   
   > =====================================   
   >   
   > I'd like to include in a Visual Basic (VB6) program a command that would   
   > bring up the User's Manual.  I'm pretty much settled on the idea that the   
   > manual should be an Acrobat .pdf file (as being the most common   
   > denominator).   
   >   
   > It's easy enough to have a statement like:   
   >   
   >      Shell ("... (tree path) ... Acrord32.exe  FileName.pdf,   
   > vbMaximizedFocus)   
   >   
   > which works fine on my machine, where I know what the pathname is, but the   
   > problem is, based on a review of our two computers and another, that the   
   > user's machine might have any of a half-dozen versions of acrobat's   
   > PDFreader.  So how to find the path and name?   
   >   
   > It occurs to me that Windows has some way of solving this.  Click on any   
   > .pdf file and Windows opens it with whatever Acrobat reader it chooses  (not   
   > neccessarily the latest version on the computer).  How does Windows locate a   
   > reader? Is there a simple way I can have my program find it?  Or better   
   > still, get it found by some Windows default?   
      
   Use ShellExecute :)   
   http://hashvb.earlsoft.co.uk/ShellExecute   
      
   This does all the stuff needed to find the app and open the document.   
      
   --   
   Dean Earley (dean.earley@icode.co.uk)   
   i-Catcher Development Team   
      
   iCode Systems   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca