Thread-topic: Preview does nothing when printing in Leopard
User-agent: Microsoft-Entourage/12.0.0.071130
Hi David,
I posted an almost identical query on this a couple of weeks ago. I still
haven't figured it out. One difference I'm seeing is that the save as PDF
menu items continue to work for me. Just the Preview button and the Help
widgets are non-functional in my case. What I DO know is that when you press
the preview button, a command process event with an id of 'prvw' is sent to
your Application event handler.
At the very least, you need to make sure you return an event not handled
error whenever you get that command. Alas, I tried that very thing, but the
event still didn't make it back to the Print code, so my app must be
swallowing it up elsewhere. I haven't gotten around to doing an event trace
to see where its dying.
I assume this mechanism is to allow a pde to intercept the preview request
if it so desires. The same thing happens if you press the Help widget
(command id = 'help'). Oddly, this problem does not occur on Tiger.
Bob Easterday
On 4/30/08 1:22 PM, "David Sinclair" <email@hidden> wrote:
> Hi. I have some Carbon printing code (using PMSessionPrintDialog etc)
> that works fine when running under Tiger, including the Preview and
> Save as PDF functions. But when under Leopard, the Preview and Save
> as PDF functions do nothing when chosen (the Print panel remains on-
> screen). Printing to the printer still works fine.
>
> What could be causing that? Is there some new or previously optional
> call I need? The print routine mostly follows the examples in the
> Carbon Printing documentation, though always uses panels instead of
> sheets, which shouldn't matter.
>
> Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden