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 9,922 of 10,840   
   J French to donandjane@optusnet.com.au   
   Re: Set RTF file handling   
   26 Feb 06 09:14:27   
   
   From: erewhon@nowhere.uk   
      
   On Sun, 26 Feb 2006 16:32:12 +1000, "D & J G"   
    wrote:   
      
      
      
   >> I'm cheating!!   
   >> To simplify printing, the print instruction goes like this:   
   >> Call Shell("write.exe /p " + App.Path + "\filename.rtf")   
   >> If the rtf association isn't set, it doesn't work.   
   >> Too simple??   
   >PS. Call Shell("wordpad.exe /p " + App.Path + "\filename.rtf") doesn't work,   
   >either!   
      
   Why is that ?   
      
   Have you tried giving it the full path for WordPad ?   
      
   You might be able to get that using FindExecutable on: Dummy.WRI   
      
   If you don't get 'wordpad.exe' from FindExecutable then you can look   
   for it once and store the location.   
      
   It looks like Write.exe is a little loader for Wordpad.   
   While Wordpad.exe is normally in 'Program Files\Accessories'   
   - Write.exe is in the Windows directory, which is in the system's   
   'path'   
      
   --- 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