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,921 of 10,840   
   D & J G to donandjane@optusnet.com.au   
   Re: Set RTF file handling   
   26 Feb 06 16:32:12   
   
   From: donandjane@optusnet.com.au   
      
   "D & J G"  wrote in message   
   news:4400be46$0$20415$afc38c87@news.optusnet.com.au...   
   >   
   > "Steve Gerrard"  wrote in message   
   > news:Ob2dnTX5QMpUDJ3ZRVn-vg@comcast.com...   
   >>   
   >> "D & J G"  wrote in message   
   >> news:44003805$0$30820$afc38c87@news.optusnet.com.au...   
   >>   
   >>> Is there a way to instruct Windows file-handling - 'Opens with:'  - from   
   >>> within VB6?  I want to ensure that files with the .rtf (rich text)   
   >>> extension always go to Word Pad, no matter which future computer uses my   
   >>> program.   
   >>>   
   >>   
   >> Considering that some future computer may not even have Word Pad, this   
   >> seems like a bad idea.   
   >>   
   >> Surely you mean that you want *your* program to launch certain .rtf files   
   >> in WordPad? If so, then explicitly launching WordPad and passing it the   
   >> desired file would make more sense:   
   >>   
   >   
   > 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!   
      
   --- 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