Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #120

Re: Shell to print

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews7.readnews.com!not-for-mail
Date Wed, 04 May 2011 12:11:55 -0400
Newsgroups comp.lang.basic.visual.misc
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding 8bit
X-Newsreader Virtual Access Open Source http://www.virtual-access.org/
Organization RDP
Message-Id <VA.000001d2.e865a28b@rdpslides.com>
Subject Re: Shell to print
From Steve Rindsberg <steve@rdpslides.com>
Reply-To steve@rdpslides.com
References <4dc09c4c$0$61662$c30e37c6@pit-reader.telstra.net>
Lines 23
NNTP-Posting-Host d95f4a8a.news.iglou.com
X-Trace DXC=7?QZWhd>n0cT\\2aA1_H?j?d1JL[FQ2ie@VQlR:g?X=`7Ngl4D9O_JldF8lWh]Z`SfP4l3Sd=9JOm
X-Complaints-To abuse@iglou.com
Xref x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:120

Show key headers only | View raw


In article <4dc09c4c$0$61662$c30e37c6@pit-reader.telstra.net>, D&Jg wrote:
> Hi all
> The following code has worked for years in sending a click-selected .doc 
> file to any default printer:
> sFile = Filename
> 
> Call RunShellExecute(sTopic, sFile, sParams, sDirectory, SW_SHOWDEFAULT)
> 
> The document loads into MSOffice Word 2007, prints, and the program returns 
> to continue as expected.  So far, this has been flawless in systems 
> operating with Win XP.  Since attempting to run this from Windows 7, 
> however, the function does not work.  Does Win 7 execute Shells differently?
> 
> Any ideas appreciated.

In addition to the other suggestions, try passing the path to a file that 
you've just created in Word 2007.  Office 2007 can be cranky about opening 
files from some earlier versions or files that have been downloaded from what 
it (often mistakenly) decides is "the internet".  



Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Shell to print "D&JG" <donandjane1@dodo.com.au> - 2011-05-04 10:22 +1000
  Re: Shell to print "Auric__" <not.my.real@email.address> - 2011-05-04 08:05 +0000
  Re: Shell to print Dee Earley <dee.earley@icode.co.uk> - 2011-05-04 11:27 +0100
  Re: Shell to print "Mayayana" <mayayana@invalid.nospam> - 2011-05-04 08:48 -0400
  Re: Shell to print Steve Rindsberg <steve@rdpslides.com> - 2011-05-04 12:11 -0400
  Re: Shell to print "D&JG" <donandjane1@dodo.com.au> - 2011-05-06 09:36 +1000
    Re: Shell to print Dee Earley <dee.earley@icode.co.uk> - 2011-05-06 08:57 +0100
      Re: Shell to print "D&JG" <donandjane1@dodo.com.au> - 2011-06-06 23:41 +1000

csiph-web