Previous | Next | (P-PDF) Developers
Topic: ...but FilePrintTo does't work
Conf: (P-PDF) Developers, Msg: 32297
From: george
Date: 1/5/2002 09:21 AM
> It appears that you cannot use any spaces whatsoever
> in any of the DDE messages to Acrobat. Try altering
> your printer name to use '_'s instead of spaces.
Has anyone figured out how to specify FilePrintTo(Ex) parameters that happen to contain spaces (e.g., HP LaserJet 4)? It seems like it must be possible, since Windows uses DDE to send FilePrintToEx (WinNT4 at least) for the printto action, unless it's a VB limitation. Curiously, on Win 98 and Acrobat 4.05, and with Acrobat 5, the (unsupported?) /t command line method is used.
> BTW - you'll notice this when trying to open
> documents too.
I've worked around the problem of file paths that contain spaces by converting to a short path using the GetShortPathName Windows API function.
George