PassThru Printing with Embedded Spaces

Bill Campbell bill at celestial.com
Sat Apr 4 09:23:47 PDT 2015


On Sat, Apr 04, 2015, Kenneth Brody wrote:
...
> Bob said:
>
>> It needs:
>>    chr(28)
>> followed by
>>    printer "pdf://D:/AP_Images/AP/F/FILEP-01 - FilePro Mailing List/123456.pdf"
>> followed by
>>    chr(29)
>>
>> The quotes are necessary. There should be no linefeeds or carriage returns.
>
> So the answer is simple.  Just surround the filename with CHR("34"):
>
>     show raw chr("28") & "printer " & chr("34") & filename &
>          chr("34") & chr("29")

The answer is even simpler, don't put whitespace in file names as
they can cause problems with scripting.

It's one thing for clueless users to put whitespace in manually,
another for developers to do it intentionally.

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

In general, the art of government consists of taking as much money as
possible from one party of the citizens to give to the other.
 -- Voltaire (1764)


More information about the Filepro-list mailing list