print without choosing printer

Sarah Reichelt sarahr at genesearch.com.au
Thu Jan 27 21:51:18 EST 2005


> My app relies on pseudo-threading schemes, and thus, doing anything 
> that
> makes the engine stop and wait will not work for this app as it must
> continue to process many ongoing events.
>
> I can't print (on XP) without the printer being chosen via the printer
> dialog (either using answer printer or utilizing revShowPrintDialog).  
> The
> problem is that while the XP printer dialog box is up, the engine is
> froze...waiting for that dialog box to be dismissed...and thus all my
> ongoing realtime processing comes to a halt.
>
> I have written an external to get the device name for the default 
> printer,
> which is what (I'm thinking) answer printer is essentially doing.

Could you do "answer printer" when the app first starts, before it's 
threading gets going?

It doesn't solve the problem, but might be a viable workaround.

Sarah



More information about the Use-livecode mailing list