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


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

Re: Shell to print

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Dee Earley <dee.earley@icode.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Shell to print
Date Wed, 04 May 2011 11:27:43 +0100
Organization Aioe.org NNTP Server
Lines 30
Message-ID <ipr9mt$cu3$1@speranza.aioe.org> (permalink)
References <4dc09c4c$0$61662$c30e37c6@pit-reader.telstra.net>
NNTP-Posting-Host rjApkXnSOjrT83QpZ8fKqg.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:118

Show key headers only | View raw


On 04/05/2011 01:22, 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?

When you try it, how does it not work?

What is RunShellExecute() (ShellExecute declare or a wrapper function?) 
and what values are you passing?

Does right click, print on the same file work as expected?

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)

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