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


Groups > comp.lang.python > #101750

Re: Python and Word OLE

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Newsgroups comp.lang.python
Subject Re: Python and Word OLE
Date 2016-01-15 08:02 -0500
Organization IISS Elusive Unicorn
Message-ID <mailman.10.1452862959.15297.python-list@python.org> (permalink)
References <d46c8767-f485-4589-8850-6e9fa372a3e9@googlegroups.com>

Show all headers | View raw


On Thu, 14 Jan 2016 22:03:37 -0800 (PST), tdsperth@gmail.com declaimed the
following:

>
>wordapp = win32com.client.Dispatch('Word.Application')
>worddoc = wordapp.Documents.Open(mypathfile)
>print(wordapp.ActivePrinter)
>"\\server\queries"
>wordapp.ActivePrinter = "\\server\letters" //fails on this line
>

	Which version of Python?

PythonWin 2.7.5 (default, Sep 16 2013, 23:11:01) [MSC v.1500 64 bit
(AMD64)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
>>> print "\\server\letters"
\server\letters
>>> 

>>> print r"\\server\letters"
\\server\letters
>>> 

	Note the difference?
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python and Word OLE tdsperth@gmail.com - 2016-01-14 22:03 -0800
  Re: Python and Word OLE Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-01-15 08:02 -0500
  Re: Python and Word OLE tdsperth@gmail.com - 2016-01-18 15:53 -0800

csiph-web