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


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

Re: Shell to print

From "Auric__" <not.my.real@email.address>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Shell to print
Date 2011-05-04 08:05 +0000
Organization A noiseless patient Spider
Message-ID <Xns9EDBB41A6B0Eauricauricauricauric@85.214.73.210> (permalink)
References <4dc09c4c$0$61662$c30e37c6@pit-reader.telstra.net>

Show all headers | View raw


"D&JG" <donandjane1@dodo.com.au> wrote:

> 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?

The only suggestion I have is to try running your program with administrator 
priveleges and see what happens.

NT6 (Vista & Win7) are pretty different from NT5 (2000 & XP). (Different 
enough that I avoid NT6. Any OS that gives me a headache is off my list.)

-- 
I want justice, I want you overthrown
  I want courage, I want to stand alone
I want your arrogance and I want your pain
  I want your everything and I want you dead

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