How to set printer's paper bins?

2001-10-18 Thread T. C. Huang
Hi, How can I change the printer's paper bin to non-default bin? In win32 API, there is DeviceCapabilities fuction to set printing bin, but I can't find the corresponding fuction in Pythonwin. Anu one know how to set printer's bin using Python(win)? Regards, Tsuangchi Huang _

RE: Where is wincerapi.pyd?

2001-10-18 Thread Mark Hammond
Building wincerapi requires that the Windows CE toolkit be installed on your PC. MS have made a complete hash of that, and it only works with the released version of MSVC - not with the service packs. As a result, neither ActiveState nor myself have an environment that can build it. I have not

RE: COM server implementing given Interface

2001-10-18 Thread Mark Hammond
> I thought what he wanted to know is if > he could write a non-IDispatch (e.g., v-table) > based server in Python. > I don't the the answer to that - does anyone? It can be done - see win32com\servers\test_pycomtest.py It is still not possible to *call* such interfaces - only to implement them.

RE: COM objects

2001-10-18 Thread Jim Kerr
Getting the contents of a Word document is pretty simple: >>> import pythoncom >>> from win32com.client import * >>> w = Dispatch("Word.Application") >>> doc = w.Documents.Open(r"C:\temp\testdoc.doc") >>> doc >>> r = doc.Sections(1).Range >>> r.Text u'This is a test document.\rThis paragraph i

Where is wincerapi.pyd?

2001-10-18 Thread Horkoff, Dave
Title: Where is wincerapi.pyd? I'm working on an program that needs to interface with a mobile version of the application on a Pocket PC. The library wincerapi looks like it is what I need to handle the communication with the mobile device, but I can't find the wincerapi.pyd library anywh

COM objects

2001-10-18 Thread Steven Cummings
Hi, I'm trying to write a program that opens a word file and gets all of the text in a python string, and then closes it again. Preferably, I'd like to also be able to get the formatting info that goes with each "segment" of the text. I couldn't find any documentation on MSDN (I may have not s

RE: COM server implementing given Interface

2001-10-18 Thread Michael Robin
I thought what he wanted to know is if he could write a non-IDispatch (e.g., v-table) based server in Python. I don't the the answer to that - does anyone? m -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Markus Daniel Sent: Thursday, October 18, 2001

Re: COM server implementing given Interface

2001-10-18 Thread Markus Daniel
Sorry, I wrote "expose" but I meant "extend". And to use the bandwidth useful, I will make a workaround for Kári Harðarson public. He got problems to profile the IIS via import profile profile.run() One easy solution for IIS, WSH or IE is this: # --- IIS-Code def test(): do_anything_u

Re: COM server implementing given Interface

2001-10-18 Thread Markus Daniel
Volker Siepmann wrote: > I'm unfortunately not a COM expert at all, so please keep it simple! ;-) But for your task you should! For example it is absolutely not allowed to expose or change an existing interface. And the IDispatch-Interface is based on COM-technologie but part of the OLE2-techn

Python script engine

2001-10-18 Thread A
Hello, In my application I would like to allow users to add/use basic python commands but I do not want users to change my code of application directly. For example my program expects telephone. number in format +442076812563 but a user sometimes may want to supply 0044 207 681 2563 (p