Printing with PythonWin

Phil Mayes nospam at bitbucket.com
Fri Oct 15 23:02:27 EDT 1999


I'm trying to print using PythonWin, and when I do:
    import win32ui
    win32ui.CreatePrintDialog(1538).DoModal()

the OK button is inactive, maybe because MFC communicates via a
PRINTDLG structure for which there seems to be no PythonWin support.

There -is- documentation for a useful-looking PyCPrintInfo object
which:
  "Encapsulates an MFC CPrintInfo class, its member CPrintDialog
  class, and the PRINTDLG structure member of the CPrintDialog."

but I can't find any way to create one, and the source for the
member functions isn't linked in with the std PythonWin modules.

Have I overlooked something, or am I entering (da-da-da-dum)
the development zone?

[More background: I'm not using CView, the text to print is in a
RICHEDIT control.]

TIA,  Phil

Phil Mayes    pmayes AT olivebr DOT com







More information about the Python-list mailing list