|
Ian,
Thanks for testing it. It's very strange though, since I've been sending
Dolphin output, for some time, to the same printer using just #startDoc.
Now it wants to be an Epson 700? Go figure!
It does, though, make me wonder if #startDoc should just call #startDoc:,
with some default string.
> PS Have you managed to get PrintDialogs and PageSetupDialogs to work
> together?. I can get printing to work using either but have had problems
> using both with the same devmode. It is high on my list of things to look
> at but if you've already solved it ....
I'm not sure I understand the question. I'll have some sort of package in a
day or two, but in the meantime, here's the approach I took. I subclassed
PrinterCanvas (adding an instance variable that stores the devmode
structure), since that seemed the logical place to put this stuff, my
primary focus being on switching the printer orientation.
PrinterCanvas calls PrintDialog, so I precede that call with creation of the
devmode. Once I have the devmode, I can change the orientation, and create
new instances of (the subclassed PrinterCanvas) based on the current devmode
settings. I suspect that PageSetupDlg can be called in a similar way using
the devmode instance, but I haven't tried it ... yet. I'll take a look.
-- Louis
|